domoticz-zigbee2mqtt-plugin icon indicating copy to clipboard operation
domoticz-zigbee2mqtt-plugin copied to clipboard

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

Open odelma opened this issue 3 years ago • 3 comments

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 avatar Dec 05 '21 15:12 odelma

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 avatar Dec 07 '21 12:12 odelma

@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 👍

odelma avatar Dec 29 '21 09:12 odelma

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

snorro80 avatar Jan 11 '22 06:01 snorro80

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.

stale[bot] avatar Aug 30 '22 17:08 stale[bot]