Python Plugin : Broadlink
Moderator: leecollings
-
- Posts: 822
- Joined: Wednesday 12 November 2014 15:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest b
- Contact:
Re: Python Plugin : Broadlink
Thats great!
If somebody can adjust the dockerfile that uses the original domoticz image/container then i can publish one procedure to install domoticz with lots of related components....
I already made a first concept of this dockerfile, but that did not work..
If somebody can adjust the dockerfile that uses the original domoticz image/container then i can publish one procedure to install domoticz with lots of related components....
I already made a first concept of this dockerfile, but that did not work..
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Jablotron connection, Ikea
-
- Posts: 822
- Joined: Wednesday 12 November 2014 15:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest b
- Contact:
Re: Python Plugin : Broadlink
@skwi
Which docker image did you use ?
And did you have to install a newer version of python or did you use the default image/container...
With other words do you have a description which comand you executed in thne docker container, perhaps i can make a dockerfile with this commands that uses the original image and add these after downloading...
Which docker image did you use ?
And did you have to install a newer version of python or did you use the default image/container...
With other words do you have a description which comand you executed in thne docker container, perhaps i can make a dockerfile with this commands that uses the original image and add these after downloading...
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Jablotron connection, Ikea
Re: Python Plugin : Broadlink
[update] : after
sudo nano /usr/local/lib/python3.7/dist-packages/broadlink/__init__.py and adding line 0x6539 to rm4 series
and selecting "remote controle RM4" instead of "remote control mini RM4" it worked.
pfff, one of the more difficult plugins to install.
Help is appreciated. Started yesterday with setup RM4C mini on Rpi.
got custom page working
button scan comes up with one device
learn does not work, results into ERR : learnir--Not able to enter learning mode--21
sudo nano /usr/local/lib/python3.7/dist-packages/broadlink/__init__.py and adding line 0x6539 to rm4 series
and selecting "remote controle RM4" instead of "remote control mini RM4" it worked.
pfff, one of the more difficult plugins to install.
Help is appreciated. Started yesterday with setup RM4C mini on Rpi.
got custom page working
button scan comes up with one device
learn does not work, results into ERR : learnir--Not able to enter learning mode--21
Code: Select all
2021-05-10 18:46:23.867 Error: (broadlink) Traceback (most recent call last):
2021-05-10 18:46:23.867 File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 1825, in read_type
2021-05-10 18:46:23.867 brotype = int(value[0], base=16)
2021-05-10 18:46:23.867 ValueError: invalid literal for int() with base 16: ''
2021-05-10 18:46:23.867
2021-05-10 18:46:23.867 Error: (broadlink) Error to retrieve type from this file : /home/pi/domoticz/plugins/Broadlink/log/30RM24M.txt
2021-05-10 18:46:23.872 Error: (broadlink) Traceback (most recent call last):
2021-05-10 18:46:23.872 File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 1803, in broadlink_connect
2021-05-10 18:46:23.872 DEVICE.auth()
2021-05-10 18:46:23.872 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 270, in auth
2021-05-10 18:46:23.872 response = self.send_packet(0x65, payload)
2021-05-10 18:46:23.872 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 323, in send_packet
2021-05-10 18:46:23.872 packet[0x25] = self.devtype >> 8
2021-05-10 18:46:23.872 ValueError: byte must be in range(0, 256)
2021-05-10 18:46:23.872
2021-05-10 18:46:23.872 Error: (broadlink) Error to connect to Broadlink device: 192.168.0.126
2021-05-10 18:46:24.163 Error: dzVents: Error: (3.0.16) Discarding device. No last update info found: {["subType"]="Selector Switch", ["deviceID"]="", ["name"]="broadlink - IR Commands", ["lastLevel"]=255, ["batteryLevel"]=1916105152, ["description"]="", ["changed"]=true, ["protected"]=false, ["signalLevel"]=112, ["switchType"]="Selector", ["lastUpdate"]="", ["data"]={["hardwareType"]="Broadlink with Kodi Remote", ["hardwareName"]="broadlink", ["hardwareID"]=4, ["protected"]=false, ["levelOffHidden"]=true, ["_nValue"]=0, ["unit"]=2, ["maxDimLevel"]=100, ["usedByCamera"]=false, ["levelNames"]="Off|Learn|Test|Save|Reset", ["levelVal"]=0, ["hardwareTypeValue"]=94, ["_state"]="Off", ["icon"]="Light", ["levelActions"]="||||"}, ["id"]=1608, ["switchTypeValue"]=18, ["deviceType"]="Light/Switch", ["rawData"]={"Off"}, ["baseType"]="device", ["timedOut"]=true}
2021-05-10 18:46:24.575 Error: dzVents: Error: (3.0.16) Discarding device. No last update info found: {["changed"]=true, ["description"]="", ["rawData"]={"Off"}, ["baseType"]="device", ["deviceID"]="", ["batteryLevel"]=11612396, ["name"]="broadlink - RM24M-Status", ["protected"]=false, ["switchTypeValue"]=17, ["lastUpdate"]="", ["data"]={["hardwareName"]="broadlink", ["icon"]="Media", ["hardwareID"]=0, ["hardwareTypeValue"]=94, ["_nValue"]=0, ["_state"]="Off", ["usedByCamera"]=false, ["protected"]=false, ["hardwareType"]="Broadlink with Kodi Remote", ["maxDimLevel"]=15, ["levelVal"]=0, ["unit"]=1}, ["lastLevel"]=255, ["signalLevel"]=1, ["subType"]="AC", ["deviceType"]="Lighting 2", ["timedOut"]=true, ["switchType"]="Media Player", ["id"]=1607}
2021-05-10 18:46:24.578 Error: dzVents: Error: (3.0.16) Discarding device. No last update info found: {["changed"]=true, ["description"]="", ["rawData"]={"Off"}, ["baseType"]="device", ["deviceID"]="", ["batteryLevel"]=1915754368, ["name"]="broadlink - RF Commands", ["protected"]=false, ["switchTypeValue"]=18, ["lastUpdate"]="", ["data"]={["hardwareName"]="broadlink", ["icon"]="Light", ["hardwareID"]=4, ["usedByCamera"]=false, ["hardwareTypeValue"]=94, ["protected"]=false, ["_nValue"]=0, ["levelOffHidden"]=true, ["_state"]="Off", ["unit"]=3, ["maxDimLevel"]=100, ["levelVal"]=0, ["levelActions"]="|||||", ["hardwareType"]="Broadlink with Kodi Remote", ["levelNames"]="Off|Sweep|Learn|Test|Save|Reset"}, ["lastLevel"]=255, ["signalLevel"]=120, ["subType"]="Selector Switch", ["deviceType"]="Light/Switch", ["timedOut"]=false, ["switchType"]="Selector", ["id"]=1609}
2021-05-10 18:46:28.515 (stroommeter-USB1) P1 Smart Meter (Stroom)
2021-05-10 18:46:28.541 (stroommeter-USB1) Usage (Usage L1)
2021-05-10 18:46:28.561 (stroommeter-USB1) Usage (Delivery L1)
Code: Select all
2021-05-10 19:41:02.456 Error: (broadlink) ERR : broadlink_connect--Error Connecting to Broadlink device....--21
2021-05-10 19:41:02.509 Error: (broadlink) ERR : learnir--Not able to enter learning mode--21
Code: Select all
2021-05-10 20:15:22.763 ValueError: invalid literal for int() with base 16: ''
2021-05-10 20:15:22.763
2021-05-10 20:15:22.763 Error: (broadlink) Error to retrieve type from this file : /home/pi/domoticz/plugins/Broadlink/log/30RM24M.txt
2021-05-10 20:15:22.765 Error: (broadlink) Traceback (most recent call last):
2021-05-10 20:15:22.765 File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 1803, in broadlink_connect
2021-05-10 20:15:22.765 DEVICE.auth()
2021-05-10 20:15:22.765 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 270, in auth
2021-05-10 20:15:22.765 response = self.send_packet(0x65, payload)
2021-05-10 20:15:22.765 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 323, in send_packet
2021-05-10 20:15:22.765 packet[0x25] = self.devtype >> 8
2021-05-10 20:15:22.765 ValueError: byte must be in range(0, 256)
2021-05-10 20:15:22.765
2021-05-10 20:15:22.766 Error: (broadlink) Error to connect to Broadlink device: 192.168.0.126
2021-05-10 20:15:23.395 (stroommeter-USB1) P1 Smart Meter (Stroom)
-
- Posts: 822
- Joined: Wednesday 12 November 2014 15:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest b
- Contact:
Re: Python Plugin : Broadlink
I am trying to make a one click docker installation for this plugin.
I use the original domoticz docker and add the plugin to it.
I am almost there but one of the last commands gives an error, so i must overlook something...
The error is during executing of setup.py
sudo -H python -m pip install python-broadlink-master/.
see below log
Somebody? @zak45
I use the original domoticz docker and add the plugin to it.
I am almost there but one of the last commands gives an error, so i must overlook something...
The error is during executing of setup.py
sudo -H python -m pip install python-broadlink-master/.
see below log
Somebody? @zak45
Code: Select all
# We need Domoticz Net info
----------------------------------------
ENTER Domoticz IP address (e.g. 192.168.1.45): 192.168.20.38
ENTER Domoticz Port Number (e.g. 8080): 8080
IP/PORT OK
Installation initialized ......
________________________________________
# we retrieve Domoticz language
Request from domoticz to : type=settings
We work with this language : nl
On this platform : Linux
________________________________________
# we install necessary modules
----------------------------------------
-*-
We execute this command : sudo -H python -m pip install setuptools
We have installed : setuptools
-*-
We execute this command : sudo -H python -m pip install wheel
We have installed : wheel
-*-
We execute this command : sudo -H python -m pip install googletrans
We have installed : googletrans
-*-
We execute this command : sudo -H python -m pip install translate
We have installed : translate
-*-
We execute this command : sudo -H python -m pip install requests
We have installed : requests
-*-
We execute this command : sudo -H python -m pip install requests_toolbelt
We have installed : requests_toolbelt
-*-
We execute this command : sudo -H python -m pip install irgen
We have installed : irgen
________________________________________
# we download plugin files from DropBox (zip format)PVK UITGEZET INSTALLED WITH DOCKER!!!
----------------------------------------
________________________________________
# we extract necessary plugin files PVK UITGEZET INSTALLED WITH DOCKER
----------------------------------------
-*-
We execute this command : sudo -H python -m pip install python-broadlink-master/.
Command "/usr/bin/python -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ovuqhdud --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.12; platform_python_implementation != 'PyPy'" setuptools-rust>=0.11.4" failed with error code 1 in None
ERROR to start subprocess
1
sudo -H python -m pip install python-broadlink-master/.
b'Processing ./python-broadlink-master\nCollecting cryptography>=2.1.1 (from broadlink==0.14.1)\n Downloading https://files.pythonhosted.org/packages/9b/77/461087a514d2e8ece1c975d8216bc03f7048e6090c5166bc34115afdaa53/cryptography-3.4.7.tar.gz (546kB)\n Installing build dependencies: started\n Installing build dependencies: finished with status \'error\'\n Complete output from command /usr/bin/python -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ovuqhdud --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0 wheel "cffi>=1.12; platform_python_implementation != \'PyPy\'" setuptools-rust>=0.11.4:\n Collecting setuptools>=40.6.0\n Using cached https://files.pythonhosted.org/packages/d0/15/5041473f5d142ee93bf1593deb8f932e27a078f6f04e2020cf44044f72c5/setuptools-56.2.0-py3-none-any.whl\n Collecting wheel\n Using cached https://files.pythonhosted.org/packages/65/63/39d04c74222770ed1589c0eaba06c05891801219272420b40311cd60c880/wheel-0.36.2-py2.py3-none-any.whl\n Collecting cffi>=1.12\n Downloading https://files.pythonhosted.org/packages/a8/20/025f59f929bbcaa579704f443a438135918484fffaacfaddba776b374563/cffi-1.14.5.tar.gz (475kB)\n Collecting setuptools-rust>=0.11.4\n Downloading https://files.pythonhosted.org/packages/82/2b/349ad916a2f032506a2c7c0810950a299f96e05d88b21797c2170bd6b2c6/setuptools_rust-0.12.1-py3-none-any.whl\n Collecting pycparser (from cffi>=1.12)\n Downloading https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl (112kB)\n Collecting semantic-version>=2.6.0 (from setuptools-rust>=0.11.4)\n Downloading https://files.pythonhosted.org/packages/a5/15/00ef3b7888a10363b7c402350eda3acf395ff05bebae312d1296e528516a/semantic_version-2.8.5-py2.py3-none-any.whl\n Collecting toml>=0.9.0 (from setuptools-rust>=0.11.4)\n Using cached https://files.pythonhosted.org/packages/44/6f/7120676b6d73228c96e17f1f794d8ab046fc910d781c8d151120c3f1569e/toml-0.10.2-py2.py3-none-any.whl\n Building wheels for collected packages: cffi\n Running setup.py bdist_wheel for cffi: started\n Running setup.py bdist_wheel for cffi: finished with status \'error\'\n Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__=\'/tmp/pip-install-0gtnafcm/cffi/setup.py\';f=getattr(tokenize, \'open\', open)(__file__);code=f.read().replace(\'\\r\\n\', \'\\n\');f.close();exec(compile(code, __file__, \'exec\'))" bdist_wheel -d /tmp/pip-wheel-wkvf6xlj --python-tag cp37:\n running bdist_wheel\n running build\n running build_py\n creating build\n creating build/lib.linux-armv7l-3.7\n creating build/lib.linux-armv7l-3.7/cffi\n copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi\n running build_ext\n building \'_cffi_backend\' extension\n creating build/temp.linux-armv7l-3.7\n creating build/temp.linux-armv7l-3.7/c\n arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o\n c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory\n #include <ffi.h>\n ^~~~~~~\n compilation terminated.\n error: command \'arm-linux-gnueabihf-gcc\' failed with exit status 1\n \n ----------------------------------------\n Failed building wheel for cffi\n Running setup.py clean for cffi\n Failed to build cffi\n Installing collected packages: setuptools, wheel, pycparser, cffi, semantic-version, toml, setuptools-rust\n Running setup.py install for cffi: started\n Running setup.py install for cffi: finished with status \'error\'\n Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__=\'/tmp/pip-install-0gtnafcm/cffi/setup.py\';f=getattr(tokenize, \'open\', open)(__file__);code=f.read().replace(\'\\r\\n\', \'\\n\');f.close();exec(compile(code, __file__, \'exec\'))" install --record /tmp/pip-record-slcjsqul/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-ovuqhdud --compile:\n running install\n running build\n running build_py\n creating build\n creating build/lib.linux-armv7l-3.7\n creating build/lib.linux-armv7l-3.7/cffi\n copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi\n copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi\n running build_ext\n building \'_cffi_backend\' extension\n creating build/temp.linux-armv7l-3.7\n creating build/temp.linux-armv7l-3.7/c\n arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o\n c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory\n #include <ffi.h>\n ^~~~~~~\n compilation terminated.\n error: command \'arm-linux-gnueabihf-gcc\' failed with exit status 1\n \n ----------------------------------------\n Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__=\'/tmp/pip-install-0gtnafcm/cffi/setup.py\';f=getattr(tokenize, \'open\', open)(__file__);code=f.read().replace(\'\\r\\n\', \'\\n\');f.close();exec(compile(code, __file__, \'exec\'))" install --record /tmp/pip-record-slcjsqul/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-ovuqhdud --compile" failed with error code 1 in /tmp/pip-install-0gtnafcm/cffi/\n \n ----------------------------------------\n'
ERROR to install : python-broadlink-master/.
could be normal if already exist, continue in anyway....
________________________________________
# We do necessary modifications depend of Platform
----------------------------------------
put *.py files executable (+x) OK
put *.sh files executable (+x) OK
________________________________________
Checking installation ....
----------------------------------------
Successfully imported googletrans
Successfully imported translate
Successfully imported requests
Successfully imported requests_toolbelt
Successfully imported irgen
Error importing broadlink
root@raspberrypi:/opt/domoticz/plugins/Broadlink#
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Jablotron connection, Ikea
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : Broadlink
try this at first:pvklink wrote: ↑Friday 14 May 2021 9:51 I am trying to make a one click docker installation for this plugin.
I use the original domoticz docker and add the plugin to it.
I am almost there but one of the last commands gives an error, so i must overlook something...
The error is during executing of setup.py
sudo -H python -m pip install python-broadlink-master/.
see below log
Somebody? @zak45
alias py=python3
alias python=python3
apt install libssl-dev
apt install rustc
-
- Posts: 22
- Joined: Thursday 12 July 2018 20:19
- Target OS: Windows
- Domoticz version: 2021.1
- Contact:
Re: Python Plugin : Broadlink
hello everyone
I used the old plugin and I was fine. after refreshing my OS and installing new domoticz I noticed the old version is gone. I have tried many times to install this new plugin but no luck.
I get the installation ok prompt:
how can I fix this?
the python version is 3.9.6
and OS is windows 10 21H1
I used the old plugin and I was fine. after refreshing my OS and installing new domoticz I noticed the old version is gone. I have tried many times to install this new plugin but no luck.
I get the installation ok prompt:
- Spoiler: show
how can I fix this?
the python version is 3.9.6
and OS is windows 10 21H1
-
- Posts: 22
- Joined: Thursday 12 July 2018 20:19
- Target OS: Windows
- Domoticz version: 2021.1
- Contact:
Re: Python Plugin : Broadlink
Changed python to 3.7.0
still the same
still the same
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : Broadlink
be sure to follow this ?:
https://www.domoticz.com/wiki/Using_Python_plugins
https://www.domoticz.com/wiki/Using_Python_plugins
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python Plugin : Broadlink
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- waltervl
- Posts: 5149
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python Plugin : Broadlink
I thought you were referring to the wiki link but also that synnas link is working for me.siklosi wrote: ↑Sunday 11 July 2021 18:00
https://synnas.publicvm.com:4430/s/Czn9r8G8QwrZ7ji this one from the first post? It's not working for me on two computers and even tried using VPN.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 47
- Joined: Tuesday 24 November 2020 17:57
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin : Broadlink
I have learnt all the IR that I want to learn on one domoticz installation. Now I want to move it to another installation without learning again.
How do I move the learnt IR codes? And I how do I link those codes to the switches that I will create in the new installation?
Lastly, is there a way to have some meaningful names for the ini files instead of the Broadlink-1-7.ini like SonyTV-OK.ini or something?
How do I move the learnt IR codes? And I how do I link those codes to the switches that I will create in the new installation?
Lastly, is there a way to have some meaningful names for the ini files instead of the Broadlink-1-7.ini like SonyTV-OK.ini or something?
-
- Posts: 952
- Joined: Sunday 22 January 2017 11:37
- Target OS: Windows
- Domoticz version: V2024.4
- Contact:
Re: Python Plugin : Broadlink
Copy the ini files from old to new under the ini/import folder e.g. : C:\Program Files (x86)\Domoticz\plugins\Broadlink\/ini/import/extremeaudio wrote: ↑Friday 16 July 2021 17:32 I have learnt all the IR that I want to learn on one domoticz installation. Now I want to move it to another installation without learning again.
How do I move the learnt IR codes? And I how do I link those codes to the switches that I will create in the new installation?
Lastly, is there a way to have some meaningful names for the ini files instead of the Broadlink-1-7.ini like SonyTV-OK.ini or something?
and click on the import button.
Once imported, choose one ini and click on create device, be sure to have enabled 'new device creation' on Domoticz settings.
The ini file name could not be changed but you can put custom name inside the ini file e.g.
-
- Posts: 47
- Joined: Tuesday 24 November 2020 17:57
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin : Broadlink
I am using this with domoticz docker on coreelec. I have installed the plugin successfully. But when I add the hardware I get an error in log as below
which is correctly an error because the python path on my system is not at
but at
What file do I need to edit to replace this path?
EDIT:
On second thoughts, I can see that in docker my volume /config is mapped to the /storage/.kodi/userdata/domoticz
then shouldnt it work?
Code: Select all
Error: (Broadlink) failed to load 'plugin.py', Python Path used was '/config/plugins/Broadlink/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/lib/python3.7/site-packages'.
Code: Select all
/config/plugins/Broadlink
Code: Select all
/storage/.kodi/userdata/domoticz/plugins/Broadlink
EDIT:
On second thoughts, I can see that in docker my volume /config is mapped to the /storage/.kodi/userdata/domoticz
then shouldnt it work?
-
- Posts: 47
- Joined: Tuesday 24 November 2020 17:57
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin : Broadlink
As mentioned, using the linuxserver docker version of domoticz in portainer.
After creating hardware now there is no mention whatsoever in the logs of any broadlink activity, neither errors nor successful devvice creation, nor are the switches created within domoticz
After creating hardware now there is no mention whatsoever in the logs of any broadlink activity, neither errors nor successful devvice creation, nor are the switches created within domoticz
-
- Posts: 39
- Joined: Friday 19 February 2016 14:47
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin : Broadlink
Issues with the download link: synnas.publicvm.com
Seems that DNS is not working from all regions globally for synnas.publicvm.com. See attaches screenshot.
As a workaround i've done the following. Added a host file entry as follows: 77.199.125.38 synnas.publicvm.com
Problem number 2. The HTTPS certificate expired 2 days ago. So you have to accept the cert warning to get past that issue.
Seems that DNS is not working from all regions globally for synnas.publicvm.com. See attaches screenshot.
As a workaround i've done the following. Added a host file entry as follows: 77.199.125.38 synnas.publicvm.com
Problem number 2. The HTTPS certificate expired 2 days ago. So you have to accept the cert warning to get past that issue.
-
- Posts: 47
- Joined: Tuesday 24 November 2020 17:57
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin : Broadlink
This seems to be an issue very similar to mine. Anyone have any idea how to resolve this when using the docker container of domoticz?extremeaudio wrote: ↑Saturday 17 July 2021 18:55 I am using this with domoticz docker on coreelec. I have installed the plugin successfully. But when I add the hardware I get an error in log as below
which is correctly an error because the python path on my system is not atCode: Select all
Error: (Broadlink) failed to load 'plugin.py', Python Path used was '/config/plugins/Broadlink/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/lib/python3.7/site-packages'.
but atCode: Select all
/config/plugins/Broadlink
What file do I need to edit to replace this path?Code: Select all
/storage/.kodi/userdata/domoticz/plugins/Broadlink
EDIT:
On second thoughts, I can see that in docker my volume /config is mapped to the /storage/.kodi/userdata/domoticz
then shouldnt it work?
https://github.com/stas-demydiuk/domoti ... /issues/16
-
- Posts: 47
- Joined: Tuesday 24 November 2020 17:57
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin : Broadlink
Any tips on how to use this plugin when using domoticz docker please?
No matter what I try I get errors saying
No matter what I try I get errors saying
Code: Select all
2021-07-26 21:24:04.980 Error: IR: (Broadlink) failed to load 'plugin.py', Python Path used was '/opt/domoticz/userdata/plugins/Broadlink/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2021-07-26 21:24:04.980 Error: IR: (IR) Module Import failed, exception: 'ModuleNotFoundError'
2021-07-26 21:24:04.980 Error: IR: (IR) Module Import failed: ' Name: broadlink'
2021-07-26 21:24:04.980 Error: IR: (IR) Error Line details not available.
-
- Posts: 5
- Joined: Friday 08 November 2019 0:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.3
- Contact:
Re: Python Plugin : Broadlink
Hi
I wonder if you could help please
[update]
I got it working by creating manually folder named "log" in ".......plugins/Broadlink "
running on Raspberry PI 4 and trying to get a RM Pro to work I'm getting the following in Domoticz Log :
Can you please help
also I cannot see the web interface under "Custom" menu
P.S. is the first time I'm using a Linux system so please bare with me .....
Thanks !
I wonder if you could help please
[update]
I got it working by creating manually folder named "log" in ".......plugins/Broadlink "
running on Raspberry PI 4 and trying to get a RM Pro to work I'm getting the following in Domoticz Log :
Code: Select all
2021-07-29 23:32:52.523 Error: Broadlink RM2: (Broadlink RM2) Error to create device file : /home/pi/domoticz/plugins/Broadlink/log/13RM2.txt
2021-07-29 23:32:52.524 Error: Broadlink RM2: (Broadlink RM2) Traceback (most recent call last):
2021-07-29 23:32:52.524 File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 1823, in read_type
2021-07-29 23:32:52.524 with open(devfile, 'r', encoding='utf-8') as f:
2021-07-29 23:32:52.524 FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/domoticz/plugins/Broadlink/log/13RM2.txt'
2021-07-29 23:32:52.524
2021-07-29 23:32:52.524 Error: Broadlink RM2: (Broadlink RM2) Error to retrieve type from this file : /home/pi/domoticz/plugins/Broadlink/log/13RM2.txt
2021-07-29 23:32:52.525 Error: Broadlink RM2: (Broadlink RM2) Traceback (most recent call last):
2021-07-29 23:32:52.525 File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 1803, in broadlink_connect
2021-07-29 23:32:52.525 DEVICE.auth()
2021-07-29 23:32:52.525 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 270, in auth
2021-07-29 23:32:52.525 response = self.send_packet(0x65, payload)
2021-07-29 23:32:52.525 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 323, in send_packet
2021-07-29 23:32:52.525 packet[0x25] = self.devtype >> 8
2021-07-29 23:32:52.525 ValueError: byte must be in range(0, 256)
2021-07-29 23:32:52.525
2021-07-29 23:32:52.525 Error: Broadlink RM2: (Broadlink RM2) Error to connect to Broadlink device: 192.168.1.101
Can you please help
also I cannot see the web interface under "Custom" menu
P.S. is the first time I'm using a Linux system so please bare with me .....
Thanks !
-
- Posts: 1
- Joined: Wednesday 18 August 2021 13:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin : Broadlink
Hi,
Link seems to be broken?
anyone have a source for the files?
tnx
Link seems to be broken?
anyone have a source for the files?
tnx
Who is online
Users browsing this forum: No registered users and 1 guest