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

Power Strip support extended by additional attributes #288

Merged
merged 4 commits into from
Mar 31, 2018

Conversation

syssi
Copy link
Collaborator

@syssi syssi commented Mar 30, 2018

(Closes: #286)

"""The method is open-loop. The new state cannot be retrieved."""
self.device.set_realtime_power(True)
self.device.set_realtime_power(False)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blank line at end of file

@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 71.169% when pulling c5f0369 on syssi:feature/powerstrip-extended into 056954c on rytilahti:master.

@coveralls
Copy link

coveralls commented Mar 30, 2018

Coverage Status

Coverage increased (+0.09%) to 71.169% when pulling d6dceba on syssi:feature/powerstrip-extended into 056954c on rytilahti:master.

@rytilahti
Copy link
Owner

Looks ok to me, unfortunately my strip (zimi v2) doesn't support any of these new ones, here's the complete output:
{'power_price': 999, 'power_factor': 0.0, 'power_consume_rate': 4.19, 'temperature': 53.89, 'elec_leakage': None, 'voltage': None, 'mode': None, 'power': 'on', 'current': 0.05, 'wifi_led': 'off'}

@syssi syssi merged commit 1e789fa into rytilahti:master Mar 31, 2018
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

Successfully merging this pull request may close these issues.

4 participants