stas-demydiuk / domoticz-zigbee2mqtt-plugin

zigbee2mqtt plugin for domoticz
MIT License
136 stars 98 forks source link

Aqara Opple switches stopped working after updating to latest beta (TypeError - unsupported operand types) #745

Closed odelma closed 2 years ago

odelma commented 2 years ago

Issue description started seeing this after recent update: image

The switches do not work when seeing this. Once I press the activation button in the back, they work for a short while.

Additional information image image

Logs Attach any additional logs here which might be useful: mqtt, domoticz, plugin logs

odelma commented 2 years ago

Well, it turned out that there was a mistake made in the bridge with latest changes in how Aqara Opple's were handled. Now I'm back to this:

2021-12-07 14:35:30.027 Error: Zigbee2MQTT: 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'startswith''.
2021-12-07 14:35:30.027 Error: Zigbee2MQTT: Exception traceback:
2021-12-07 14:35:30.027 Error: Zigbee2MQTT: ----> Line 298 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onMessage
2021-12-07 14:35:30.027 Error: Zigbee2MQTT: ----> Line 137 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onMessage
2021-12-07 14:35:30.027 Error: Zigbee2MQTT: ----> Line 167 in '/home/pi/domoticz/plugins/zigbee2mqtt/mqtt.py', function onMessage
2021-12-07 14:35:30.027 Error: Zigbee2MQTT: ----> Line 214 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onMQTTPublish
2021-12-07 14:35:30.027 Error: Zigbee2MQTT: ----> Line 61 in '/home/pi/domoticz/plugins/zigbee2mqtt/devices_manager.py', function handle_mqtt_message
2021-12-07 14:35:30.027 Error: Zigbee2MQTT: ----> Line 45 in '/home/pi/domoticz/plugins/zigbee2mqtt/adapters/lumi/aqara_opple_switch.py', function handle_mqtt_message 

The fix that was made on the bridge: https://github.com/Koenkk/zigbee-herdsman-converters/commit/edea8525dcf5653e4eea8cd1655c25a9156c8e0a (related issue: https://github.com/Koenkk/zigbee2mqtt/issues/10033)

odelma commented 2 years ago

@stas-demydiuk - anything you could do about this error still appearing:

2021-12-29 10:43:22.661 Error: Zigbee2MQTT: 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'startswith''.
2021-12-29 10:43:22.661 Error: Zigbee2MQTT: Exception traceback:
2021-12-29 10:43:22.661 Error: Zigbee2MQTT: ----> Line 298 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onMessage
2021-12-29 10:43:22.661 Error: Zigbee2MQTT: ----> Line 137 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onMessage
2021-12-29 10:43:22.661 Error: Zigbee2MQTT: ----> Line 167 in '/home/pi/domoticz/plugins/zigbee2mqtt/mqtt.py', function onMessage
2021-12-29 10:43:22.661 Error: Zigbee2MQTT: ----> Line 214 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onMQTTPublish
2021-12-29 10:43:22.661 Error: Zigbee2MQTT: ----> Line 61 in '/home/pi/domoticz/plugins/zigbee2mqtt/devices_manager.py', function handle_mqtt_message
2021-12-29 10:43:22.661 Error: Zigbee2MQTT: ----> Line 45 in '/home/pi/domoticz/plugins/zigbee2mqtt/adapters/lumi/aqara_opple_switch.py', function handle_mqtt_message

Thanks 👍

snorro80 commented 2 years ago

@stas-demydiuk Could you please re-open and review this issue as it isn't solved yet.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.