Closed tehnoinstyle closed 4 years ago
The device isn't supported right now.
Hello.
Do you have the opportunity to add support for this model of device? I really need this. Thanks.
maybe this will help add support deerma.humidifier.mjjsq in HA: https://github.com/rytilahti/python-miio/issues/533
and: https://www.bountysource.com/issues/77742487-support-for-mi-smart-humidifier-deerma-humidifier-mjjsq
If you provide extensive testing we could give it a try! Do you own a linux host with pip3 installed?
I have very little knowledge of Linux (and in Pyton, etc.).
I have a linux host (Synology NAS). But I do not know what it is pip3 and how to install it. What is it needed pip3 ?
You must be able to install python packages. The package manager is called "pip". On some distributions the python3 version is valled pip3. Please install python-miio
by:
pip install python-miio
The package provides a command line tool called miiocli
. Please make sure you can executre the command line tool and query your device:
$ sudo pip3 install python-miio
Collecting python-miio
Downloading https://files.pythonhosted.org/packages/ce/d5/03b41ac79cb325f34a5b84875894fd3d1de18628fbb2d915fdb8ee2d6bd8/python_miio-0.4.7-py3-none-any.whl (160kB)
100% |████████████████████████████████| 163kB 1.8MB/s
Requirement already satisfied: pytz in /usr/lib/python3/dist-packages (from python-miio) (2019.1)
Collecting construct (from python-miio)
Using cached https://files.pythonhosted.org/packages/19/c0/f054941fa33d14378de66d2c0477d31f7ad97aa2e298a5771a7b20bc2039/construct-2.9.45.tar.gz
Requirement already satisfied: attrs in /usr/lib/python3/dist-packages (from python-miio) (18.2.0)
Requirement already satisfied: cryptography in /usr/lib/python3/dist-packages (from python-miio) (2.6.1)
Collecting click>=7 (from python-miio)
Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl
Collecting netifaces (from python-miio)
Downloading https://files.pythonhosted.org/packages/0d/18/fd6e9c71a35b67a73160ec80a49da63d1eed2d2055054cc2995714949132/netifaces-0.10.9.tar.gz
Collecting tqdm (from python-miio)
Downloading https://files.pythonhosted.org/packages/bb/62/6f823501b3bf2bac242bd3c320b592ad1516b3081d82c77c1d813f076856/tqdm-4.39.0-py2.py3-none-any.whl (53kB)
100% |████████████████████████████████| 61kB 5.9MB/s
Collecting zeroconf (from python-miio)
Downloading https://files.pythonhosted.org/packages/43/25/b6746049834c7ede865c3a3079d7bdb6f0a3cebdd6997eb916be3a647440/zeroconf-0.24.0-py3-none-any.whl (54kB)
100% |████████████████████████████████| 61kB 5.5MB/s
Collecting appdirs (from python-miio)
Downloading https://files.pythonhosted.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl
Collecting ifaddr (from zeroconf->python-miio)
Downloading https://files.pythonhosted.org/packages/9f/54/d92bda685093ebc70e2057abfa83ef1b3fb0ae2b6357262a3e19dfe96bb8/ifaddr-0.1.6.tar.gz
Building wheels for collected packages: construct, netifaces, ifaddr
Running setup.py bdist_wheel for construct ... done
Stored in directory: /root/.cache/pip/wheels/22/73/01/9e7468947349b14ce8f07c3fc7b430b3a4ddad0837cda6ea73
Running setup.py bdist_wheel for netifaces ... done
Stored in directory: /root/.cache/pip/wheels/23/8f/f3/7054578f04c904f70757c5c85a6e2823baa69d42365526e93d
Running setup.py bdist_wheel for ifaddr ... done
Stored in directory: /root/.cache/pip/wheels/1a/78/2c/a5bbe977f6d91039ddc1d657e780cb55a493aa5d2c0b64637a
Successfully built construct netifaces ifaddr
Installing collected packages: construct, click, netifaces, tqdm, ifaddr, zeroconf, appdirs, python-miio
Successfully installed appdirs-1.4.3 click-7.0 construct-2.9.45 ifaddr-0.1.6 netifaces-0.10.9 python-miio-0.4.7 tqdm-4.39.0 zeroconf-0.24.0
$ miiocli device
Usage: miiocli device [OPTIONS] COMMAND [ARGS]...
Options:
--ip TEXT [required]
--token TEXT [required]
--help Show this message and exit.
Commands:
info Get miIO protocol information from the device.
raw_command Send a raw command to the device.
$ miiocli device --ip 192.168.130.57 --token b051cd86f85996283d82ccf9d27bd2db info
Model: chuangmi.plug.m1
Hardware version: MW300
Firmware version: 1.2.4_17
Network: {'localIp': '192.168.130.57', 'mask': '255.255.255.0', 'gw': '192.168.130.1'}
AP: {'rssi': -59, 'ssid': 'XXX', 'bssid': 'XXX'}
As soon as you are able to talk to your device I will provide some commands / miIO requests. I'm interested in the responses of these requests provided by your device.
I have a screenshot from the MiHome application with information about the device (model, token, software version, etc.)
First I have to install the Python3 package on my Synology server. Yes? Which version?
Sorry. I cannot help here. Please make sure you've access to the mentioned command line tool. It could work on windows, too. Python >=3.6 is required. You could use a ubuntu VM, too. On ubuntu you've to install python + pip by:
$ sudo apt-get install python3-pip
$ sudo pip3 install python-miio
$ miiocli device
I'm now reading about installing Python On Windows 10, and if I can install pip3, I will write to you later. Which version of Python to install: x32 or x64 (laptop with OS Win10Pro x64) Thanks.
It doesn't matter. Take x64.
I was able to install Python 3.8 on a laptop.
But when installing the python-miio, I get the following error:
ERROR: Command errored out with exit status 1: 'c:\users\albina\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\albina\AppData\Local\Temp\pip-install-9_4jfu6k\netifaces\setup.py'"'"'; file='"'"'C:\Users\albina\AppData\Local\Temp\pip-install-9_4jfu6k\netifaces\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\albina\AppData\Local\Temp\pip-record-dkn_m0k9\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output. WARNING: You are using pip version 19.2.3, however version 19.3.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.`
I have now updated Visual Studio. How do I update the pip? What command is for Windows?
python -m pip install --upgrade pip
now:
`C:\Users\albina>python -m pip install --upgrade pip Collecting pip Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB) |████████████████████████████████| 1.4MB 384kB/s Installing collected packages: pip Found existing installation: pip 19.2.3 Uninstalling pip-19.2.3: Successfully uninstalled pip-19.2.3 Successfully installed pip-19.3.1
C:\Users\albina>pip3 install python-miio Collecting python-miio Using cached https://files.pythonhosted.org/packages/ce/d5/03b41ac79cb325f34a5b84875894fd3d1de18628fbb2d915fdb8ee2d6bd8/python_miio-0.4.7-py3-none-any.whl Collecting netifaces Using cached https://files.pythonhosted.org/packages/0d/18/fd6e9c71a35b67a73160ec80a49da63d1eed2d2055054cc2995714949132/netifaces-0.10.9.tar.gz Requirement already satisfied: click>=7 in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (7.0) Requirement already satisfied: zeroconf in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (0.24.0) Requirement already satisfied: attrs in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (19.3.0) Requirement already satisfied: pytz in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (2019.3) Requirement already satisfied: tqdm in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (4.39.0) Requirement already satisfied: construct in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (2.9.45) Requirement already satisfied: cryptography in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (2.8) Requirement already satisfied: appdirs in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from python-miio) (1.4.3) Requirement already satisfied: ifaddr in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from zeroconf->python-miio) (0.1.6) Requirement already satisfied: cffi!=1.11.3,>=1.8 in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from cryptography->python-miio) (1.13.2) Requirement already satisfied: six>=1.4.1 in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from cryptography->python-miio) (1.13.0) Requirement already satisfied: pycparser in c:\users\albina\appdata\local\programs\python\python38-32\lib\site-packages (from cffi!=1.11.3,>=1.8->cryptography->python-miio) (2.19) Installing collected packages: netifaces, python-miio Running setup.py install for netifaces ... done Successfully installed netifaces-0.10.9 python-miio-0.4.7`
Looks good to me.
now - device OFF state:
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d info ERROR:miio.device:Unable to discover a device at address 192.168.1.204 Error: Unable to discover the device 192.168.1.204
device ON state:
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d info ERROR:miio.device:Unable to discover a device at address 192.168.1.204 Error: Unable to discover the device 192.168.1.204
What's my error?
Are you sure your token is still valid? Did you reset the device in the meantime? The "info" command should respond everytime if the device is available (pingable).
You should disable your firewall. May be the UDP traffic is blocked?
Yes, token is still valid. But:
`C:\Users\albina>ping 192.168.1.204
Packet exchange from 192.168.1.204 to with 32 bytes of data: Reply from 192.168.1.200: The specified node is unavailable. Reply from 192.168.1.200: The specified node is unavailable. Reply from 192.168.1.200: The specified node is unavailable. Reply from 192.168.1.200: The specified node is unavailable.
Ping statistics for 192.168.1.204: Packets: sent = 4, received = 4, lost = 0 (0% loss)`
Both device (laptpop and deerma) connect to router Mikrotik (WiFi).
ip 192.168.1.200 - laptpop.
Yes, now I disable my firewall:
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d info
Model: deerma.humidifier.mjjsq
Hardware version: ESP8266
Firmware version: 1.4.0
Network: {'localIp': '192.168.1.204', 'mask': '255.255.255.0', 'gw': '192.168.1.1'}
AP: {'rssi': -57, 'ssid': 'Temponary', 'bssid': 'B8:69:F4:C7:12:CD'}
Perfect!
Now what? Is it possible to add this humidifier to HA? That would be very good !!!
I need the output/responses of the follow commands. I need this informations to extend python-miio and to extend this HA component.
# Query all status properties
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
### Set_OnOff
# Turn the device on
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_OnOff "[1]"
# Query all status properties again
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Turn the device off
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_OnOff "[0]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Turn the device on
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_OnOff "[1]"
### SetLedState
# Turn the status LED on
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d SetLedState "[1]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Turn the status LED off
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d SetLedState "[0]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
### SetTipSound_Status
# Turn beep on key press on
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d SetTipSound_Status "[1]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Turn beep on key press off
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d SetTipSound_Status "[0]"
### Set_HumidifierGears
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set speed: Low
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumidifierGears "[1]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set speed: Medium
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumidifierGears "[2]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set speed: High
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumidifierGears "[3]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set speed: Humidity (what does this mean??)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumidifierGears "[4]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Try to set invalid speed value 5
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumidifierGears "[5]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Try to set invalid speed value 0
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumidifierGears "[0]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set speed: Low
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumidifierGears "[1]"
### Set_HumiValue
# Set target humidity to 0%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumiValue "[0]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set target humidity to 25%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumiValue "[25]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set target humidity to 50%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumiValue "[50]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set target humidity to 75%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumiValue "[75]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set target humidity to 100%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumiValue "[100]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set invalid target humidity 110%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumiValue "[110]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
error:
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
`Usage: miiocli device [OPTIONS] COMMAND [ARGS]...
Try "miiocli device --help" for help.
Error: Unknown command (get_prop)`
Ups. I missed a parameter. Please try the updated commands:
I need the output/responses of the follow commands. I need this informations to extend python-miio and to extend this HA component.
# Query all status properties
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
### Set_OnOff
# Turn the device on
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_OnOff "[1]"
# Query all status properties again
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Turn the device off
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_OnOff "[0]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Turn the device on
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_OnOff "[1]"
### SetLedState
# Turn the status LED on
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command SetLedState "[1]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Turn the status LED off
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command SetLedState "[0]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
### SetTipSound_Status
# Turn beep on key press on
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command SetTipSound_Status "[1]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Turn beep on key press off
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command SetTipSound_Status "[0]"
### Set_HumidifierGears
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set speed: Low
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[1]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set speed: Medium
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[2]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set speed: High
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[3]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set speed: Humidity (what does this mean??)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[4]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Try to set invalid speed value 5
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[5]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Try to set invalid speed value 0
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[0]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set speed: Low
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[1]"
### Set_HumiValue
# Set target humidity to 0%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[0]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set target humidity to 25%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[25]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set target humidity to 50%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[50]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set target humidity to 75%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[75]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set target humidity to 100%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[100]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# Set invalid target humidity 110%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[110]"
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
Yes, I already understood. I got it:
# Query all status properties
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [4]
### Set_OnOff
# Turn the device on
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_OnOff "[1]" Running command raw_command ['ok']
# Query all status properties again
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [4]
# Turn the device off
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_OnOff "[0]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [4]
# Turn the device on
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_OnOff "[1]" Running command raw_command ['ok']
### SetLedState
# Turn the status LED on
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command SetLedState "[1]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [4]
# Turn the status LED off
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command SetLedState "[0]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [4]
### SetTipSound_Status
# Turn beep on key press on
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command SetTipSound_Status "[1]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [4]
# Turn beep on key press off
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command SetTipSound_Status "[0]" Running command raw_command ['ok']
### Set_HumidifierGears
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [4]
# Set speed: Low
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[1]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [1]
# Set speed: Medium
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[2]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [2]
# Set speed: High
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[3]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [3]
# Set speed: Humidity (what does this mean??)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[4]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [4]
# Try to set invalid speed value 5
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[5]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [5]
Device turn OFF
I turned it on again
# Try to set invalid speed value 0
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[0]" Running command raw_command ['ok']
not selecting HumidifierGears in MiHome app
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [0]
# Set speed: Low
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[1]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [1]
### Set_HumiValue
# Set target humidity to 0%
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[0]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [1]
# Set target humidity to 25%
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[25]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [1]
# Set target humidity to 50%
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[50]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [1]
# Set target humidity to 75%
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[75]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [1]
# Set target humidity to 100%
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[100]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [1]
# Set invalid target humidity 110%
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[110]" Running command raw_command ['ok']
# Query all status properties again(!)
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [1]
It's all.
It looks like it not possible to query all properties at once. Could you execute all commands again? Please replace this command
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
# by
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']"
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']"
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']"
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']"
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']"
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']"
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']"
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']"
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']"
I want to make sure every command works fine and updates the internal state of the device.
Hello. Thank you for your help.
I will execute all the commands again, but a little later. I'm not near the laptop right now. I will let you know. Thanks.
Take your time.
Should I complete to run list all commands?
And after each command, check with this list of commands?
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d info Model: deerma.humidifier.mjjsq Hardware version: ESP8266 Firmware version: 1.4.0 Network: {'localIp': '192.168.1.204', 'mask': '255.255.255.0', 'gw': '192.168.1.1'} AP: {'rssi': -55, 'ssid': 'Temponary', 'bssid': 'B8:69:F4:C7:12:CD'}
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']" Running command raw_command [4]
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [4]
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [54]
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [1]
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [0]
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [1]
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
Yes. I want to know the complete state of the device after each change request.
### Set_OnOff
# Turn the device off
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_OnOff "[0]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [4]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [54]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Turn the device on
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_OnOff "[1]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [4]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [54]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
### SetLedState
# Turn the status LED on
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command SetLedState "[1]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [4]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [54]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Turn the status LED off
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command SetLedState "[0]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [4]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [54]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
### SetTipSound_Status
# Turn beep on key press on
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command SetTipSound_Status "[1]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [4]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [54]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Turn beep on key press off
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command SetTipSound_Status "[0]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [4]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [54]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
### Set_HumidifierGears
# Set speed: Low
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[1]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [54]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Set speed: Medium
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[2]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [2]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [54]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Set speed: High
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[3]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [3]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [54]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Set speed: Humidity (what does this mean??)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[4]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [4]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [54]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Try to set invalid speed value 5
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[5]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [5]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Try to set invalid speed value 0
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[0]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Set speed: Low
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumidifierGears "[1]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
### Set_HumiValue
# Set target humidity to 0%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[0]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Set target humidity to 25%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[25]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [25]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Set target humidity to 50%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[50]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [50]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Set target humidity to 75%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[75]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [75]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Set target humidity to 100%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[100]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [10]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Set invalid target humidity 110%
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[110]" Running command raw_command ['ok']
# Query all status properties again(!)
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidity_Value']" Running command raw_command [44]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [11]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Led_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['OnOff_State']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TemperatureValue']" Running command raw_command [21]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['TipSound_State']" Running command raw_command [0]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['waterstatus']" Running command raw_command [1]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['watertankstatus']" Running command raw_command [1]
# Set_OnOff
-> Set_OnOff "[0]"
<- ['ok']
{
'Humidifier_Gear': 4,
'Humidity_Value': 44,
'HumiSet_Value': 54,
'Led_State': 1,
'OnOff_State': 0,
'TemperatureValue': 21,
'TipSound_State': 1,
'waterstatus': 1,
'watertankstatus': 1,
}
-> Set_OnOff "[1]"
<- ['ok']
{
'Humidifier_Gear': 4,
'Humidity_Value': 44,
'HumiSet_Value': 54,
'Led_State': 1,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 1,
'waterstatus': 1,
'watertankstatus': 1,
}
# SetLedState
-> SetLedState "[1]"
<- ['ok']
{
'Humidifier_Gear': 4,
'Humidity_Value': 44,
'HumiSet_Value': 54,
'Led_State': 1,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 1,
'waterstatus': 1,
'watertankstatus': 1,
}
-> SetLedState "[0]"
<- ['ok']
{
'Humidifier_Gear': 4,
'Humidity_Value': 44,
'HumiSet_Value': 54,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 1,
'waterstatus': 1,
'watertankstatus': 1,
}
# SetTipSound_Status
-> SetTipSound_Status "[1]"
<- ['ok']
{
'Humidifier_Gear': 4,
'Humidity_Value': 44,
'HumiSet_Value': 54,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 1,
'waterstatus': 1,
'watertankstatus': 1,
}
-> SetTipSound_Status "[0]"
<- ['ok']
{
'Humidifier_Gear': 4,
'Humidity_Value': 44,
'HumiSet_Value': 54,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
# Set_HumidifierGears
-> Set_HumidifierGears "[1]" # Low
<- ['ok']
{
'Humidifier_Gear': 1,
'Humidity_Value': 44,
'HumiSet_Value': 54,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
-> Set_HumidifierGears "[2]" # Medium
<- ['ok']
{
'Humidifier_Gear': 2,
'Humidity_Value': 44,
'HumiSet_Value': 54,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
-> Set_HumidifierGears "[3]" # High
<- ['ok']
{
'Humidifier_Gear': 3,
'Humidity_Value': 44,
'HumiSet_Value': 54,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
-> Set_HumidifierGears "[4]" # Humidity
<- ['ok']
{
'Humidifier_Gear': 4,
'Humidity_Value': 44,
'HumiSet_Value': 54,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
# Try to set invalid speed value 5
-> Set_HumidifierGears "[5]" # Invalid but valid? ;-)
<- ['ok']
{
'Humidifier_Gear': 5,
'Humidity_Value': 44,
'HumiSet_Value': 0,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
# Try to set invalid speed value 0
-> Set_HumidifierGears "[0]"
<- ['ok']
{
'Humidifier_Gear': 0,
'Humidity_Value': 44,
'HumiSet_Value': 0,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
# Set speed: Low
-> Set_HumidifierGears "[1]"
<- ['ok']
{
'Humidifier_Gear': 1,
'Humidity_Value': 44,
'HumiSet_Value': 0,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
# Set_HumiValue
-> Set_HumiValue "[0]" # 0%
<- ['ok']
{
'Humidifier_Gear': 1,
'Humidity_Value': 44,
'HumiSet_Value': 0,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
Set_HumiValue "[25]" # 25%
<- ['ok']
{
'Humidifier_Gear': 1,
'Humidity_Value': 44,
'HumiSet_Value': 25,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
-> Set_HumiValue "[50]" # 50%
<- ['ok']
{
'Humidifier_Gear': 1,
'Humidity_Value': 44,
'HumiSet_Value': 50,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
-> Set_HumiValue "[75]" # 75%
<- ['ok']
{
'Humidifier_Gear': 1,
'Humidity_Value': 44,
'HumiSet_Value': 75,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
-> Set_HumiValue "[100]" # 100%
<- ['ok']
{
'Humidifier_Gear': 1,
'Humidity_Value': 44,
'HumiSet_Value': 10, # ???
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
-> Set_HumiValue "[110]" # 110%
<- ['ok']
{
'Humidifier_Gear': 1,
'Humidity_Value': 44,
'HumiSet_Value': 11, # !!!
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
Could you discover the upper bound of Set_HumiValue? It looks like 100% isn't supported. Please test by:
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumiValue "[99]"
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']"
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d Set_HumiValue "[98]"
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']"
[...]
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[99]" Running command raw_command ['ok']
>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [99]
>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[98]" Running command raw_command ['ok']
>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [98]
Hello, Sebastian.
The rest of the commands in the range from 97 to 0 are executed normally (as in the post above), and the command responses are also right.
miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[97]" Running command raw_command ['ok']
>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [97]
...................
>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command Set_HumiValue "[0]" Running command raw_command ['ok']
>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['HumiSet_Value']" Running command raw_command [0]
Could you explain what "waterstatus" and "watertankstatus" is indicating?
Where is indicating "waterstatus" and "watertankstatus"?
In your tests
{
'Humidifier_Gear': 1,
'Humidity_Value': 44,
'HumiSet_Value': 11,
'Led_State': 0,
'OnOff_State': 1,
'TemperatureValue': 21,
'TipSound_State': 0,
'waterstatus': 1,
'watertankstatus': 1,
}
the properties waterstatus
and watertankstatus
were always 1
. If you remove the water does watertankstatus
return something else? Are there informations at the MiHome app which could explain the property waterstatus
?
No. In the MiHome app no there informations which could explain the property waterstatus. No pictures or data.
I will to try to remove the water from humidifier and see how changes status the properties waterstatus and watertankstatus from a value [1].
I've reverse engineered the MiHome plugin:
waterstatus
is 0
if the water tank is empty.watertankstatus
is 0
if the water tank is detached.The python-miio
implementation is ready. Please install the feature branch by:
pip3 install https://github.com/syssi/python-miio/archive/feature/deerma-humidifier-mjjsq-support.zip -U
There should show up a new device at miiocli
:
$ miiocli
Usage: miiocli [OPTIONS] COMMAND [ARGS]...
Options:
-d, --debug
-o, --output [default|json|json_pretty]
--help Show this message and exit.
Commands:
airconditioningcompanion
airconditioningcompanionv3
airdehumidifier
airfresh
airhumidifier
airhumidifierca1
airhumidifiercb1
airhumidifiermjjsq
[...]
# Please test all methods. Does the device turn on/off properly etc.
miiocli airhumidifiermjjsq --ip IP --token TOKEN info
miiocli airhumidifiermjjsq --ip IP --token TOKEN status
miiocli airhumidifiermjjsq --ip IP --token TOKEN on
miiocli airhumidifiermjjsq --ip IP --token TOKEN off
miiocli airhumidifiermjjsq --ip IP --token TOKEN set_buzzer 1
miiocli airhumidifiermjjsq --ip IP --token TOKEN set_buzzer 0
miiocli airhumidifiermjjsq --ip IP --token TOKEN set_led 1
miiocli airhumidifiermjjsq --ip IP --token TOKEN set_led 0
[...]
Please report errors/exceptions here.
Ok, good.
I will try this in the evening (now I'm not near the laptop and humidifier). I will try and let you know.
First: I have to update on a laptop (in Phyton) - pip3 install https://github.com/syssi/python-miio/archive/feature/deerma-humidifier-mjjsq-support.zip -U
Right?
Correct. This command needs to be executed to update the library/package/command line tool.
Yes, I understand, thanks. I will try and let you know.
Ok. Now I'm near the laptop and humidifier.
C:\Users\albina>pip3 install https://github.com/syssi/python-miio/archive/feature/deerma-humidifier-mjjsq-support.zip -U
`Collecting https://github.com/syssi/python-miio/archive/feature/deerma-humidifier-mjjsq-support.zip Downloading https://github.com/syssi/python-miio/archive/feature/deerma-humidifier-mjjsq-support.zip
C:\Users\albina>miiocli
`Usage: miiocli [OPTIONS] COMMAND [ARGS]...
Options: -d, --debug -o, --output [default|json|json_pretty] --help Show this message and exit.
Commands: airconditioningcompanion airconditioningcompanionv3 airdehumidifier airfresh airhumidifier airhumidifierca1 airhumidifiercb1 airhumidifiermjjsq airpurifier airqualitymonitor alarmclock aqaracamera ceil chuangmicamera chuangmiir chuangmiplug cooker device fan fanp5 fansa1 fanv2 fanza1 fanza3 fanza4 philipsbulb philipseyecare philipsmoonlight plug plugv1 plugv3 powerstrip pwznrelay toiletlid vacuum waterpurifier wifirepeater wifispeaker yeelight`
Now:
C:\Users\albina>miiocli airhumidifiermjjsq --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d info
ERROR:miio.device:Unable to discover a device at address 192.168.1.204 Error: Unable to discover the device 192.168.1.204
C:\Users\albina>miiocli airhumidifiermjjsq --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d status
ERROR:miio.device:Unable to discover a device at address 192.168.1.204 Error: Unable to discover the device 192.168.1.204
C:\Users\albina>miiocli device --ip 192.168.1.204 --token 1759ffeef59e788e2794e6d3632a554d raw_command get_prop "['Humidifier_Gear','Humidity_Value','HumiSet_Value','Led_State','OnOff_State','TemperatureValue','TipSound_State','waterstatus','watertankstatus']"
Running command raw_command
ERROR:miio.device:Unable to discover a device at address 192.168.1.204 Error: Unable to discover the device 192.168.1.204
?
Did you forget to disable the firewall again?
No, I disable.
Hello. Please, add support for deerma.humidifier.mjjsq
I have such a humidifier (deerma.humidifier.mjjsq). https://ru.aliexpress.com/item/4000056420604.html?spm=a2g0s.9042311.0.0.71e033ed6TUs5o
But I could not add it to the hass.io.
I get the following error:
2019-11-28 22:19:43 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for xiaomi_miio which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant. 2019-11-28 22:19:43 ERROR (MainThread) [custom_components.fan.fan] Unsupported device found! Please create an issue at https://github.com/syssi/xiaomi_airpurifier/issues and provide the following data: **deerma.humidifier.mjjsq**
How do I add it to hass.io? Thanks.