I have a problem with the python script.
If I try to emit an IR code immediately after the device learns that code it works, but after that itâs not working no matter how many times I try to emit the code.
If the device learns the code again, it works again but only the first time.
From the Wiwo app is working perfectly.
Well it can hapen the device is not found. either its the time issue, you then have to wait a bit or keep trying. Did u try with sudo? You did check the ip and made it staic in your router did you? It can depend on the pythion versionâŠdid you try python3 and 2?
It is the case that the binding does not provide commands following each other in a cirtain amount of time, I had to build in a buffertime from 1-2 secs.
And with the exec-binding 2 there are always problems, use the binding for oh 1.x.
I myself had a âghostâ switching the tv on and off all 10 secs.
I tried with sudo and without sudo, the result is the same.
It works the first time after the code is learned, and after that is not working anymore.
The IP is static (DHCP with static lease) and the device is discovered correctly every time.
Even when the emit command is not working, the python orvibo.py returns the correct IP and mac.
Is not related with the openhab binding.
Is not working directly from the command line either.
I just read the tutorial again and since this explicitly says use python3 Iâd advise to give this a shot.
There are often cases you have to use python2 or python3, not even openhab-related. Give it a shot, even the python2-way works once.
Iâve tried all above and device still not discovered. Can you confirm model number you have working is VS20RB-1GO? Not sure if there are different models.
I tried with python 3 and itâs working. Thanks.
Also, like you said, the script from this tutorial is working only with exec binding 1.x
With exec binding 2 itâs not working at all.
I have a problem with the ON/OFF switch item.
If the item is OFF when I press ON the exec-binding runs the python script with no problems but the item remains ON only for 30-60 sec when automatically is changed to OFF.
When the item is changed automatically to OFF the python script is not executed but it bothers me that the status is not preserved.
Below is the event log
2017-07-05 20:16:20.225 [ItemCommandEvent ] - Item âAirConditionerâ received command ON
2017-07-05 20:16:20.392 [ItemStateChangedEvent ] - AirConditioner changed from OFF to ON
2017-07-05 20:16:50.365 [ItemStateChangedEvent ] - AirConditioner changed from ON to OFF
2017-07-05 20:34:51.365 [ItemCommandEvent ] - Item âAirConditionerâ received command ON
2017-07-05 20:34:51.395 [ItemStateChangedEvent ] - AirConditioner changed from OFF to ON
2017-07-05 20:35:50.327 [ItemStateChangedEvent ] - AirConditioner changed from ON to OFF
I have been informed by Orvibo support that the Orvibo allone pro(VS20RB-1GO) does not support learning. I guess this was not the model I needed to buy to make this work with the python lib.
Hi Wolfgang,
I have encountered the same problem as you did in March 2016, concerning the port 10000 being already in use. Do you still remember what you did to solve this problem - I know its quite a long time since your postâŠ
Using the command netstat -nulp, I found out that openhab itself is using that port, but I have not found out how to change it, using grep I could not find any config file containing that number.
Even worse, if I stop the openhab process to release the port 10000, the script orvibo.py still does not find my âorvibo allone proâ. I also tried to pass the IP adress of my orvibo using the -i option, but no success.
I can access the âorvibo allone proâ using the homeMate app. Is there a newer firmware on the device, using a different port or a different âmagic wordâ ?
Later on, I tried the same from .items and sitemap it was not working.
hence I tried again from command prompt and it started giving below error.
getting below errors
[21:33:11] openhabian@Raiba-SmartHome:/etc/openhab2/orvibo$ python3 orvibo.py -i 192.168.1.103 -x irda -e test-TV-on.ir
Traceback (most recent call last):
File "orvibo.py", line 715, in <module>
d = Orvibo.discover(o.ip)
File "orvibo.py", line 330, in discover
with _orvibo_socket() as s:
File "/usr/lib/python3.4/contextlib.py", line 59, in __enter__
return next(self.gen)
File "orvibo.py", line 135, in _orvibo_socket
sock = _create_orvibo_socket() if external_socket is None else external_socket
File "orvibo.py", line 130, in _create_orvibo_socket
sock.bind((ip, PORT))
OSError: [Errno 98] Address already in use
I have the same problem. I have Orvibo AllOne Pro and it works well with HomeMate App but running âpython3 orvibo.pyâ nothing happens. Also I set a static IP Address for AllOne pro and running âorvibo.py -i 192.168.0.10â the result is âDevice ip=192.168.0.10 not found in dict_keys([])â.