bbqkees / ems-esp-domoticz-plugin

Domoticz plugin for the EMS Wi-Fi Gateway with Proddy's EMS-ESP firmware
MIT License
7 stars 8 forks source link

some errors in domoticz log #39

Closed Bartekn86 closed 2 years ago

Bartekn86 commented 2 years ago

hi, i get some errors, could you tell what should do to fix ? tkanks

2021-09-12 11:52:21.876 Error: ems: (ems) ----> Line 1070 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2021-09-12 11:52:21.876 Error: ems: (ems) ----> Line 1013 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2021-09-12 11:52:21.876 Error: ems: (ems) ----> Line 114 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py', function onMessage 2021-09-12 11:52:21.876 Error: ems: (ems) ----> Line 1046 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMQTTPublish 2021-09-12 11:52:21.876 Error: ems: (ems) ----> Line 796 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMqttMessage 2021-09-12 11:52:21.876 Error: ems: (ems) ----> Line 1121 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function updateDevice 2021-09-12 12:00:01.871 Error: mqtt: (mqtt) 'onCommand' failed 'TypeError':''NoneType' object is not subscriptable'.

Bartekn86 commented 2 years ago

now i see that after upgrade esp, after remove and add plugin to domoticz, there is only 6 devices 1 is there any known problem with it ? thank you

bbqkees commented 2 years ago

Which version of the plugin are you using?

On Wed, 15 Sep 2021, 22:41 Bartekn86, @.***> wrote:

now i see that after upgrade esp, after remove and add plugin to domoticz, there is only 6 devices [image: 1] https://user-images.githubusercontent.com/69695376/133506268-fb2f52cb-f52a-4bed-8a78-0b4f7249fdb1.png is there any known problem with it ? thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bbqkees/ems-esp-domoticz-plugin/issues/39#issuecomment-920360711, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACSGZAXGR4UEVWTHQ3MTUSTUCEAF7ANCNFSM5D35YKPQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Bartekn86 commented 2 years ago

latest dev, thank you

Bartekn86 commented 2 years ago

i've understood now, changed version to multi, :-)

Bartekn86 commented 2 years ago

1 boiler seems to be ok in domoticz, also thermostat is ok, can not see dallas sensors, and sm200 solar module, could you look at it please ?

2021-09-16 15:54:09.865 Error: ems bojler: (ems bojler) ----> Line 1081 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2021-09-16 15:54:09.865 Error: ems bojler: (ems bojler) ----> Line 162 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2021-09-16 15:54:09.865 Error: ems bojler: (ems bojler) ----> Line 114 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py', function onMessage 2021-09-16 15:54:09.865 Error: ems bojler: (ems bojler) ----> Line 195 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMQTTPublish 2021-09-16 15:54:09.865 Error: ems bojler: (ems bojler) ----> Line 207 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMqttMessage 2021-09-16 15:54:12.304 Error: ems termostat: (ems termostat) 'onMessage' failed 'AttributeError':''str' object has no attribute 'items''. 2021-09-16 15:54:12.304 Error: ems termostat: (ems termostat) Exception traceback: 2021-09-16 15:54:12.304 Error: ems termostat: (ems termostat) ----> Line 1081 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2021-09-16 15:54:12.304 Error: ems termostat: (ems termostat) ----> Line 162 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2021-09-16 15:54:12.304 Error: ems termostat: (ems termostat) ----> Line 114 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py', function onMessage 2021-09-16 15:54:12.304 Error: ems termostat: (ems termostat) ----> Line 195 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMQTTPublish 2021-09-16 15:54:12.304 Error: ems termostat: (ems termostat) ----> Line 207 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMqttMessage

Bartekn86 commented 2 years ago

1

bbqkees commented 2 years ago

For Dallas to work you need to set the Dallas sensor format to 'by number'.

Can you post a payload and list of the MQTT topics? You can do that with f.i. http://mqtt-explorer.com/

I assume some names or the format for solar changed in the firmware.

bbqkees commented 2 years ago

Wait I found a type in the code. update the plugin and the solar stuff should appear again.

Bartekn86 commented 2 years ago

all works ok thank you