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
Support for Revolt NC-5461 energy meter #47
Comments
|
this is the raw output that i could receive with receive.py:
|
Hey. Then you have to add
here https://github.com/Danielhiversen/pyRFXtrx/blob/master/RFXtrx/lowlevel.py#L41. |
tnx. figured that out after studying the code and almost done, too. problem is: i’m a lousy programmer, there’s still something buggy. i’ll keep trying. |
You can open a pull request with you wip code. |
regarding: Danielhiversen#47 unfortunatly the addidion doesn’t work, though i think it should. can’t find the error, but i get this in the home assistant logs: ``` File "/Users/ix/.homeassistant/deps/RFXtrx/__init__.py", line 693, in _connect File "/Users/ix/.homeassistant/deps/RFXtrx/__init__.py", line 606, in receive_blocking File "/Users/ix/.homeassistant/deps/RFXtrx/__init__.py", line 550, in parse File "/Users/ix/.homeassistant/deps/RFXtrx/__init__.py", line 418, in __init__ File "/Users/ix/.homeassistant/deps/RFXtrx/lowlevel.py", line 134, in __getattr__ ``` also added this in __init__.py row 410: ``` if isinstance(pkt, lowlevel.Energy5): self.values['Energy usage'] = pkt.currentwatt self.values['Total usage'] = pkt.totalwatthours ```
* added ELEC5 paket type regarding: #47 unfortunatly the addidion doesn’t work, though i think it should. can’t find the error, but i get this in the home assistant logs: ``` File "/Users/ix/.homeassistant/deps/RFXtrx/__init__.py", line 693, in _connect File "/Users/ix/.homeassistant/deps/RFXtrx/__init__.py", line 606, in receive_blocking File "/Users/ix/.homeassistant/deps/RFXtrx/__init__.py", line 550, in parse File "/Users/ix/.homeassistant/deps/RFXtrx/__init__.py", line 418, in __init__ File "/Users/ix/.homeassistant/deps/RFXtrx/lowlevel.py", line 134, in __getattr__ ``` also added this in __init__.py row 410: ``` if isinstance(pkt, lowlevel.Energy5): self.values['Energy usage'] = pkt.currentwatt self.values['Total usage'] = pkt.totalwatthours ``` * added battery with that he battery attribute i got rid of the errors and it basically works now. * add attributes for energy5 * remove battery for revolt meter * remove battery for revolt meter * initial try to test Elec5 * correct voltage * another try to get the right values * this should fix the tests * remove trailing whitespace * fix blank lines and long lines * fix redundant backslash * fix trailing whitespace * use actual packet and values for testing
http://www.pearl.de/a-NC5462-5452.shtml
this is what rfxtrx reports:
i guess these are the parameters
pyRFXtrx
needs to recognise:Instant Power
total usage
would of course be nice to also get:
Voltage
Current
Frequency
right now rfxtrx reports the values every 4 seconds, but
pyRFXtrx
(and home assistant) don’t recognise it.if i knew how to get the raw output from rfxtrx, i’m glad to provide it.
The text was updated successfully, but these errors were encountered: