Re: Python Plugin : Broadlink
Posted: Sunday 09 January 2022 12:47
Thank you, what’s my domoticzplugin/import directory ? You mentioned android in your reply, am i missing something ?
when you install the Broadlink plugin, severals directories should be created under your domoticz plugin directory, "import" should be one if them.
that's strange, if it work with broadlink_cli.py this should work with the GUI, same program used !!!??albebert wrote: ↑Wednesday 12 January 2022 0:12 Hi,
Learn RF is not working for me.
i've an hex code for my remote from Broadlink Manager :
JgA6AAsSDBIMEgsHFwcXBhcHFwcXBxcGGAYXBxcHFwcXBhcHFwcXEwsHFxILEwsTCxMLBxYTCwcXBxAADQUAAAAAAAAAAAAAAAAAAA==
anyone can send me a sample ini file for RF command please ?
edit :
with broadlink_cli.py i can learn RF and send it !
so just need to make a corect ini file for the plugin
yes it's strange ^^ same program yes, i use the cli from plugin folder (fresh install with install.py and fresh domoticz install on a debian 9 )zak45 wrote: ↑Wednesday 12 January 2022 11:43that's strange, if it work with broadlink_cli.py this should work with the GUI, same program used !!!??albebert wrote: ↑Wednesday 12 January 2022 0:12 Hi,
Learn RF is not working for me.
i've an hex code for my remote from Broadlink Manager :
JgA6AAsSDBIMEgsHFwcXBhcHFwcXBxcGGAYXBxcHFwcXBhcHFwcXEwsHFxILEwsTCxMLBxYTCwcXBxAADQUAAAAAAAAAAAAAAAAAAA==
anyone can send me a sample ini file for RF command please ?
edit :
with broadlink_cli.py i can learn RF and send it !
so just need to make a corect ini file for the plugin
Code: Select all
2022-01-18 17:18:09.815 Error: BR3: Traceback (most recent call last):
2022-01-18 17:18:09.815 File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 1746, in send
2022-01-18 17:18:09.815 DEVICE.send_data(SENDCOMMAND)
2022-01-18 17:18:09.815 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 639, in send_data
2022-01-18 17:18:09.815 response = self.send_packet(0x6a, packet)
2022-01-18 17:18:09.815 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 349, in send_packet
2022-01-18 17:18:09.815 payload = self.encrypt(payload)
2022-01-18 17:18:09.815 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 236, in encrypt
2022-01-18 17:18:09.815 encryptor = self.aes.encryptor()
2022-01-18 17:18:09.815 File "/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/base.py", line 121, in encryptor
2022-01-18 17:18:09.815 self.algorithm, self.mode
2022-01-18 17:18:09.815 File "/usr/lib/python3/dist-packages/cryptography/hazmat/backends/openssl/backend.py", line 295, in create_symmetric_encryption_ctx
2022-01-18 17:18:09.815 return _CipherContext(self, cipher, mode, _CipherContext._ENCRYPT)
2022-01-18 17:18:09.815 File "/usr/lib/python3/dist-packages/cryptography/hazmat/backends/openssl/ciphers.py", line 112, in __init__
2022-01-18 17:18:09.815 self._backend._ffi.from_buffer(cipher.key),
2022-01-18 17:18:09.815 TypeError: from_buffer() cannot return the address of the raw string within a bytes or unicode object
2022-01-18 17:18:09.815
2022-01-18 17:18:09.815 Error: BR3: Warning : Code sent ....Probably timeout
please how to reinstall the cryptography module.
Code: Select all
2022-01-19 12:15:01.942 Error: BR3: ERR : remote_plugin--_Error receive / save file from Cloud Drive : https://synnas.publicvm.com:4430/s/pNbw6pD7w33TTQX/download_--21
2022-01-19 12:15:01.943 Error: BR3: No transport, write directive to '127.0.0.1:47058' ignored.
2022-01-19 12:15:12.767 Error: Error opening url: http://127.0.0.1:8080/json.htm?type=command¶m=switchlight&idx=711&switchcmd=On
2022-01-19 12:15:36.977 Error: Error opening url: http://127.0.0.1:8080/json.htm?type=command¶m=switchlight&idx=712&switchcmd=On
2022-01-19 12:15:44.076 Error: Error opening url: http://127.0.0.1:8080/json.htm?type=command¶m=switchlight&idx=711&switchcmd=On
2022-01-19 12:17:09.936 Error: Error opening url: http://127.0.0.1:8080/json.htm?type=command¶m=switchlight&idx=712&switchcmd=On
2022-01-19 12:20:11.083 Error: BR3: Traceback (most recent call last):
2022-01-19 12:20:11.083 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 369, in send_packet
2022-01-19 12:20:11.083 response = cs.recvfrom(2048)
2022-01-19 12:20:11.083 socket.timeout: timed out
2022-01-19 12:20:11.083
2022-01-19 12:20:11.083 During handling of the above exception, another exception occurred:
2022-01-19 12:20:11.083
2022-01-19 12:20:11.083 Traceback (most recent call last):
2022-01-19 12:20:11.083 File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 1803, in broadlink_connect
2022-01-19 12:20:11.083 DEVICE.auth()
2022-01-19 12:20:11.083 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 270, in auth
2022-01-19 12:20:11.083 response = self.send_packet(0x65, payload)
2022-01-19 12:20:11.083 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 374, in send_packet
2022-01-19 12:20:11.083 raise exception(0xfffd)
2022-01-19 12:20:11.083 broadlink.exceptions.DeviceOfflineError: The device is offline
2022-01-19 12:20:11.083
2022-01-19 12:20:11.083 Error: BR3: Error to connect to Broadlink device: 192.168.1.117
2022-01-19 12:23:00.658 Error: Error opening url: http://127.0.0.1:8080/json.htm?type=command¶m=switchlight&idx=951&switchcmd=On
2022-01-19 12:23:04.079 Error: Error opening url: http://127.0.0.1:8080/json.htm?type=command¶m=switchlight&idx=951&switchcmd=On
2022-01-19 12:23:07.612 Error: Error opening url: http://127.0.0.1:8080/json.htm?type=command¶m=switchlight&idx=951&switchcmd=On
2022-01-19 12:25:11.294 Error: BR3: Traceback (most recent call last):
2022-01-19 12:25:11.294 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 369, in send_packet
2022-01-19 12:25:11.294 response = cs.recvfrom(2048)
2022-01-19 12:25:11.294 socket.timeout: timed out
2022-01-19 12:25:11.294
2022-01-19 12:25:11.294 During handling of the above exception, another exception occurred:
2022-01-19 12:25:11.294
2022-01-19 12:25:11.294 Traceback (most recent call last):
2022-01-19 12:25:11.294 File "/home/pi/domoticz/plugins/Broadlink/plugin.py", line 1803, in broadlink_connect
2022-01-19 12:25:11.294 DEVICE.auth()
2022-01-19 12:25:11.294 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 270, in auth
2022-01-19 12:25:11.294 response = self.send_packet(0x65, payload)
2022-01-19 12:25:11.294 File "/usr/local/lib/python3.7/dist-packages/broadlink/__init__.py", line 374, in send_packet
2022-01-19 12:25:11.294 raise exception(0xfffd)
2022-01-19 12:25:11.294 broadlink.exceptions.DeviceOfflineError: The device is offline
2022-01-19 12:25:11.294
2022-01-19 12:25:11.294 Error: BR3: Error to connect to Broadlink device: 192.168.1.117