-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
Powerstrip support improved #239
Powerstrip support improved #239
Conversation
1 similar comment
Thanks for extending the support :-) The mode is missing on this device, and the temperature output is probably used for something else as that temperature does not make sense. |
Could you try to set a float?
|
would be interesting too. Do you have the 1st or 2gen of the powerstrip? |
It accepts floats, but rounds them down:
Values with quotes is not accepted and will result in This is the v2 of zimi:
|
The power mode can be None.
miio/tests/test_powerstrip.py
Outdated
@@ -87,3 +91,40 @@ def mode(): | |||
assert mode() == PowerMode.Eco | |||
self.device.set_power_mode(PowerMode.Normal) | |||
assert mode() == PowerMode.Normal | |||
|
|||
def test_status_without_mode(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redefinition of unused 'test_status_without_mode' from line 80
New properties and commands added: wifi_led, power_price.
@rytilahti Could you provide a response example for
Thanks!