Open K1000flrm opened 2 years ago
Problem is there: plugin.py:75
Please try debug it - insert before line 75 and please submit log:
# TEST: Read and print DATA:
Domoticz.Log("TEST DATA registers: " + str(data))
return
hello the test return
2021-09-21 09:35:29.087 pzem: (pzem) TEST DATA registers: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 2 bytes (0 received) 2021-09-21 09:35:29.087 Error: pzem: (pzem) Modbus communication error - cannot decode data. Check it out! 2021-09-21 09:35:29.088 Error: pzem: (pzem) 'onHeartbeat' failed 'UnboundLocalError':'local variable 'dataDecoder' referenced before assignment'. 2021-09-21 09:35:29.088 Error: pzem: (pzem) ----> Line 114 in '/home/pi/domoticz/plugins/PZEM-017-master/plugin.py', function onHeartbeat 2021-09-21 09:35:29.088 Error: pzem: (pzem) ----> Line 82 in '/home/pi/domoticz/plugins/PZEM-017-master/plugin.py', function onHeartbeat
Le mar. 31 août 2021 à 14:11, Martin Svoboda @.***> a écrit :
Problem is there: plugin.py:75
Please try debug it - insert before line 75 and please submit log: TEST: Read and print DATA:
Domoticz.Log("TEST DATA registers: " + str(data)) return
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mar-svo/PZEM-017/issues/1#issuecomment-909178126, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVNPEZ6NPWRE2B43CZDFNBDT7TBFVANCNFSM5DD5P74A . 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.
It seems you have problem with your modbus connection to PZEM. It's not topic of this discuss, sorry.
but i have connect pzem with usb adapter it s possible to use gpio ?
Envoyé de mon iPhone
Le 21 sept. 2021 à 12:05, Martin Svoboda @.***> a écrit :
It seems you have problem with your modbus connection to PZEM. It's not topic of this discuss, sorry.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
2021-08-31 13:42:00.075 Error: pzem: (pzem) Modbus communication error - cannot decode data. Check it out! 2021-08-31 13:42:00.075 Error: pzem: (pzem) 'onHeartbeat' failed 'UnboundLocalError':'local variable 'dataDecoder' referenced before assignment'. 2021-08-31 13:42:00.076 Error: pzem: (pzem) ----> Line 112 in '/home/pi/domoticz/plugins/PZEM-017-master/plugin.py', function onHeartbeat 2021-08-31 13:42:00.076 Error: pzem: (pzem) ----> Line 80 in '/home/pi/domoticz/plugins/PZEM-017-master/plugin.py', function onHeartbeat