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

Support Xiaomi Air Purifier v3 #231

Closed
syssi opened this issue Feb 22, 2018 · 2 comments
Closed

Support Xiaomi Air Purifier v3 #231

syssi opened this issue Feb 22, 2018 · 2 comments

Comments

@syssi
Copy link
Collaborator

syssi commented Feb 22, 2018

zhimi.airpurifier.v3

{'power': 'off', 'aqi': 0, 'humidity': None, 'temp_dec': None, 'mode': 'idle', 'led': 'off', 'led_b': 10, 'buzzer': 'on', 'child_lock': 'off', 'bright': 43, 'favorite_level': None, 'filter1_life': 26, 'f1_hour_used': 2573, 'use_time': None, 'motor1_speed': 0,

{‘power’: 'on', ‘aqi’: 18, ‘humidity’: None, ‘temp_dec’: None, ‘mode’: 'silent', ‘led’: 'off', ‘led_b’: 10, ‘buzzer’: 'on', ‘child_lock’: 'off', ‘bright’: 4, ‘favorite_level’: None, ‘filter1_life’: 26, ‘f1_hour_used’: 2574, ‘use_time’: None, ‘motor1_speed’: 648}

set_mode returns ok for: auto, silent, favorite, medium, high, strong, idle

cp. https://community.home-assistant.io/t/xiaomi-mi-wifi-plug-air-purifier/16189/244

@syssi
Copy link
Collaborator Author

syssi commented Feb 22, 2018

if state.led_brightness:
File “/srv/homeassistant/lib/python3.4/site-packages/mirobo/airpurifier.py”, line 138, in led_brightness
return LedBrightness(self.data[“led_b”])
File “/usr/lib/python3.4/enum.py”, line 222, in call
return cls.new(cls, value)
File “/usr/lib/python3.4/enum.py”, line 457, in new
raise ValueError("%r is not a valid %s" % (value, cls.name))
ValueError: 10 is not a valid LedBrightness

@syssi
Copy link
Collaborator Author

syssi commented Feb 22, 2018

It’s possible to control the brightness of the led?

No,only on or off.

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

1 participant