ajay10000 / domoticz_hs110_plugin

0 stars 0 forks source link

Issue with (very) recent domoticz build and the plugin #1

Open 7h3Cub3 opened 3 years ago

7h3Cub3 commented 3 years ago

Hello,

First thanks for this nice plugin that has served me well for a while now

domoticz build #13034

Since a few build of domoticz the plugin is behaving incorrectly there seems to be issue with some python function of the plugin

2021-03-02 21:37:39.072 Python Plugin System: (xxx) Python exception set prior to callback 'onHeartbeat' 2021-03-02 21:37:39.097 Error: Python Plugin System: (xxx) 'onHeartbeat' failed 'KeyError'. 2021-03-02 21:37:39.097 Error: Python Plugin System: (xxx) ----> Line 287 in '/home/xxxx/domoticz/plugins/domoticz_hs110_plugin/plugin.py', function onHeartbeat 2021-03-02 21:37:39.097 Error: Python Plugin System: (xxx) ----> Line 140 in '/home/xxxx/domoticz/plugins/domoticz_hs110_plugin/plugin.py', function onHeartbeat 2021-03-02 21:37:39.097 Error: Python Plugin System: (xxx) ----> Line 223 in '/home/xxxx/domoticz/plugins/domoticz_hs110_plugin/plugin.py', function update_emeter_values

Thanks in advance, cheers.

ajay10000 commented 3 years ago

Hi @7h3Cub3, have a look at my response for the same error in this thread and see if it helps to resolve your issue: https://www.domoticz.com/forum/viewtopic.php?p=197241&sid=82f199a99fe5715d788b0e709c0fed06#p197241 I have answered many questions in that topic, so feel free to post there if you can't find an answer for your issue. Cheers - Andrew

carlofrc commented 3 years ago

Same problem:

2021-06-23 19:30:08.110 switch001: (switch001) got response: {'emeter': {'get_realtime': {'current': 0.012171, 'voltage': 225.971747, 'power': 0, 'total': 0, 'err_code': 0}}} 2021-06-23 19:30:08.110 Error: switch001: (switch001) 'onHeartbeat' failed 'KeyError'. 2021-06-23 19:30:08.110 Error: switch001: (switch001) ----> Line 287 in '/opt/domoticz/userdata/plugins/tplink/plugin.py', function onHeartbeat 2021-06-23 19:30:08.110 Error: switch001: (switch001) ----> Line 140 in '/opt/domoticz/userdata/plugins/tplink/plugin.py', function onHeartbeat 2021-06-23 19:30:08.110 Error: switch001: (switch001) ----> Line 223 in '/opt/domoticz/userdata/plugins/tplink/plugin.py', function update_emeter_values

Read all the post but not find a solution.

On/off work but not report the voltage/current/power on the panel.

docker version domoticz/domoticz x86-64 Version: 2021.1 (build 13251) Build Hash: 2c0402c53 Compile Date: 2021-05-06 14:57:41 dzVents Version: 3.1.8 Python Version: 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]