did chmod 777 for the Broadlink folder and all files in the folder.
Still get :
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: (Broadlink) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/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'.
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: Module Import failed, exception: 'InternalError'
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: Error Line details not available.
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: Exception traceback:
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 129 in '/home/pi/domoticz/plugins/Broadlink/plugin.py', function <module>
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 12 in '/usr/local/lib/python3.7/dist-packages/requests_toolbelt/__init__.py', function <module>
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 12 in '/usr/local/lib/python3.7/dist-packages/requests_toolbelt/adapters/__init__.py', function <module>
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 12 in '/usr/local/lib/python3.7/dist-packages/requests_toolbelt/adapters/ssl.py', function <module>
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 55 in '/usr/lib/python3/dist-packages/requests/__init__.py', function <module>
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 59 in '/usr/lib/python3/dist-packages/requests/packages/__init__.py', function <module>
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 49 in '/usr/lib/python3/dist-packages/requests/packages/__init__.py', function vendored
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 47 in '/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py', function <module>
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 8 in '/usr/lib/python3/dist-packages/OpenSSL/__init__.py', function <module>
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 12 in '/usr/lib/python3/dist-packages/OpenSSL/rand.py', function <module>
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 6 in '/usr/lib/python3/dist-packages/OpenSSL/_util.py', function <module>
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 195 in '/usr/local/lib/python3.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py', function <module>
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 151 in '/usr/local/lib/python3.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py', function init_static_locks
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 134 in '/usr/local/lib/python3.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py', function _ensure_ffi_initialized
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 120 in '/usr/local/lib/python3.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py', function _register_osrandom_engine
2022-01-28 23:37:10.633 Error: Broadlink TV woonkamer: ----> Line 78 in '/usr/local/lib/python3.7/dist-packages/cryptography/hazmat/bindings/openssl/binding.py', function _openssl_assert
NB !!
I have created two Broadlink hardware components, one for the Slaapkamer tv and one for the Woonkamer tv.
I noticed that the error at startup only happens randomly for one tv. In the above only for the Woonkamer tv.
The startup for the Slaapkamer tv does not give any problem. However at a next reboot the error could come for the Slaapkamer tv.
I have two Broadlink devices, one in front of the Woonkamer tv and one in front of the Slaapkamer tv.
Both do work fine. Only have after reboot to deactivate and then to activate the hardware of the Broadlink which gave the error.
See below the pip3 list.
A suggestion: could the problem be caused by the fact that two hardwares, one for the Slaapkamer broadlink device and one for the Woonkamer
Broadlink device are use the same plugins/broadlink directory and maybe a simultaneous start by Domotics of the two hardwares does cause the error ?
Ok, thanks.
To have several times the plugin should not be a problem (but not have been able to test it).
Maybe upgrade your cryptography module to see if it's better :
Is there anybody who has two or more Broadlink devices connected succesfully to Domoticz on a Raspberry pi using the plugin created by Zak45?
My feeling is that having two Broadlink hardware devices defined in Domoticz, using the same plugins/Broadlink directory is causing problems.
hello to all
i bought a broadklink rm4 pro today and im trying to conect to my domoticz in docker (oficial docker image).
I modify some things:
- on the setup.py (remove the sudo, because in docker the sudo not works).
- create manually de log folder in the plugin folder
and seems to work, i can acces to the portal in port 9000 and apears in the custom seccion (my docker is in host network)
the problem for me is i run the broadklink_discovery.py and returns a device thant not apears in the combo to overwrite it in domoticz.
the device type is 0x649b
any help with this?
thanks a lot!
EDIT:
when the setup.py launch this comand "python -m pip install python-broadlink-master/." it install the python-broadlink version 0.14.1 but if i go to https://github.com/mjg59/python-broadlink i can see that the master version is = "0.18.0"
is this correct?
or im making something wrong?
DAVIZINHO wrote: ↑Wednesday 02 February 2022 17:46
when the setup.py launch this comand "python -m pip install python-broadlink-master/." it install the python-broadlink version 0.14.1 but if i go to https://github.com/mjg59/python-broadlink i can see that the master version is = "0.18.0"
is this correct?
or im making something wrong?
Correct.
the problem for me is i run the broadklink_discovery.py and returns a device thant not apears in the combo to overwrite it in domoticz.
the device type is 0x649b
Do you have tried with the default value ? or maybe some others ?
zak45 wrote: ↑Thursday 03 February 2022 0:17
Do you have tried with the default value ? or maybe some others ?
yes, but not change. i aply a rm4pro, but nothing ocurs, no change
why the version is diferent? , its posible that this was my problem?
its posible to update the version?
maybe my problem is the ini file in the remote folder is a file empty (not empty but only this:
[Custom]
command = 0,
DAVIZINHO wrote: ↑Thursday 03 February 2022 0:21
why the version is diferent? , its posible that this was my problem?
its posible to update the version?
- Plugin has been made with this version.
- This is the problem, have seen that on new one this device has been added.
- yes, with some time.
DAVIZINHO wrote: ↑Thursday 03 February 2022 0:21
why the version is diferent? , its posible that this was my problem?
its posible to update the version?
- Plugin has been made with this version.
- This is the problem, have seen that on new one this device has been added.
- yes, with some time.
ok thanks for the reply!.
tomorrow i will try with the cli and try to launch the rf comands with the cli. if this works i can use scripts for my use.
thanks again
DAVIZINHO wrote: ↑Thursday 03 February 2022 0:30
tomorrow i will try with the cli and try to launch the rf comands with the cli. if this works i can use scripts for my use.
Great, let us know if this work.. should help others.
Have seen that version 0.18.0 has been there still long time... will try to update the plugin
but there is a lot of "breaking" changes ..; !!!