You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I was playing with miio library and noticed that set_mode doesn't work:
from miio import*
pur = AirPurifier(ip='192.168.2.13', token="6106c6f3fa4357a1eacacc324685ac9a")
pur.set_mode(OperationMode.Silent)
Traceback (most recent call last):
File "", line 1, in
NameError: name 'OperationMode' is not defined
Am I missing something?
The text was updated successfully, but these errors were encountered:
Worked like a charm, Thanks!
from miio import*
from miio.airpurifier import AirPurifier, OperationMode
pur = AirPurifier(ip='192.168.2.120', token='1e0e11653f345434235345438e5435')
pur.set_mode(OperationMode.Auto)
['ok']
Hello,
I was playing with miio library and noticed that set_mode doesn't work:
from miio import*
pur = AirPurifier(ip='192.168.2.13', token="6106c6f3fa4357a1eacacc324685ac9a")
pur.set_mode(OperationMode.Silent)
Traceback (most recent call last):
File "", line 1, in
NameError: name 'OperationMode' is not defined
Am I missing something?
The text was updated successfully, but these errors were encountered: