Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

domoticz problem #1

Open
K1000flrm opened this issue Aug 31, 2021 · 4 comments
Open

domoticz problem #1

K1000flrm opened this issue Aug 31, 2021 · 4 comments

Comments

@K1000flrm
Copy link

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

@mar-svo
Copy link
Owner

mar-svo commented Aug 31, 2021

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

@K1000flrm
Copy link
Author

K1000flrm commented Sep 21, 2021 via email

@mar-svo
Copy link
Owner

mar-svo commented Sep 21, 2021

It seems you have problem with your modbus connection to PZEM. It's not topic of this discuss, sorry.

@K1000flrm
Copy link
Author

K1000flrm commented Sep 21, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants