stas-demydiuk / domoticz-ewpe-smart-mqtt-plugin

Python plugin for Domoticz to control ewpe-smart powered air conditioners
MIT License
11 stars 6 forks source link

'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'nValue'' #10

Closed harolds closed 2 years ago

harolds commented 3 years ago

Last time I got this error I think I got it fixed by installing node v14 (and removing nodejs). But it does not help anymore now.

=== 2021-09-30 21:21:14.934 Error: AircoWoonkamer: (AircoWoonkamer) 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'nValue''. 2021-09-30 21:21:14.934 Error: AircoWoonkamer: (AircoWoonkamer) Exception traceback: 2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 138 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/plugin.py', function onMessage 2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 106 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/plugin.py', function onMessage 2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 168 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/mqtt.py', function onMessage 2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 84 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/plugin.py', function onMQTTPublish 2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 188 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/device.py', function handle_message 2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 137 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/device.py', function _update_state 2021-09-30 21:21:14.935 Error: AircoWoonkamer: (AircoWoonkamer) ----> Line 125 in '/home/pi/domoticz/plugins/ewpe-smart-mqtt/device.py', function _update_device

harolds commented 2 years ago

The problem seemed to be that the ewpe-smart-mqtt bridge was not working correctly. I checked out this branch in that directory. Bit confusing that they both have ewpe-smart-mqtt as name :-)