sudo nano /usr/local/lib/python3.7/dist-packages/broadlink/__init__.py and adding line 0x6539 to rm4 series
.
pfff, one of the more difficult plugins to install.
Help is appreciated. Started yesterday with setup RM4C mini on Rpi.
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)