-
-
Notifications
You must be signed in to change notification settings - Fork 561
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 for leshow.fan.ss4 (xiaomi Rosou SS4 Ventilator) #806
Comments
Is no help available for this device? |
Do you like to provide some testing? |
Of course! |
Could you install this library and provide some responses of miiocli calls? |
I have already installed the python-miio and can send the answers from miiocli! |
miiocli airpurifier --ip 192.168.178.44 --token 2312f9556355a647d717cc38fba3641a info |
miiocli airpurifier --ip 192.168.178.44 --token 2312f9556355a647d717cc38fba3641a status |
miiocli airpurifier --ip 192.168.178.44 --token 2312f9556355a647d717cc38fba3641a on However, the fan does not start, but the display lights up with the number 0, i.e. fan off. |
Please try to retrieve the supported properties of the device:
Please try to explain the different meanings for the properties. Which modes are supported? What happens if "blow" is active? Does the device has key tones which can disabled and are off if Try to control the following method via the miiocli:
It looks like the device is a miot device. This are the miot specs: https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:fan:0000A005:leshow-ss4:1
I will provide some concrete miiocli calls tomorrow for testing. |
Please provide the output of every command.
|
I have executed all commands! No reaction at the fan:
|
By the way, you can switch off the fan with this command! This works!
This command switches the fan on, but sets the speed to 0, so the motor will not start! |
Okay, lets play around with some miio commands. Try to retrieve all properties after each command to check something has changed:
|
Power On/ Offmiiocli device --ip IP --token TOKEN raw_command set_power "[False]" <--- False do not work and 0 is working
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
miiocli device --ip IP --token TOKEN raw_command set_power "[True]" <--- True do not work and 1 is working
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
sleep modemiiocli device --ip IP --token TOKEN raw_command set_mode "[1]" <--- WORKING
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
strong modemiiocli device --ip IP --token TOKEN raw_command set_mode "[2]" <--- WORKING
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
naturla modemiiocli device --ip IP --token TOKEN raw_command set_mode "[3]" <--- WORKING
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
fan speed 10%miiocli device --ip IP --token TOKEN raw_command set_blow "[10]" <--- WORKING
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
fan speed 50%miiocli device --ip IP --token TOKEN raw_command set_blow "[50]" <--- WORKING
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
fan speed 100%miiocli device --ip IP --token TOKEN raw_command set_blow "[100]" <--- WORKING
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
try to turn on and off the LEDmiiocli device --ip IP --token TOKEN raw_command set_lamp "[True]" <--- NOT WORKING
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
miiocli device --ip IP --token TOKEN raw_command set_lamp "[False]" <--- NOT WORKING
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
try to turn on and off the buzzermiiocli device --ip IP --token TOKEN raw_command set_sound "[True]" <--- True do not work and 1 is working
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
miiocli device --ip IP --token TOKEN raw_command set_sound "[False]" <--- False do not work and 0 is working
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
try to retrieve the device status whatever it ismiiocli device --ip IP --token TOKEN raw_command get_device_status "[]"
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
try to enable the swing modemiiocli device --ip IP --token TOKEN raw_command set_yaw "[True]" <--- True do not work and 1 is working
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
miiocli device --ip IP --token TOKEN raw_command set_yaw "[False]" <--- False do not work and 0 is working
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'mode', 'blow', 'timer', 'sound', 'yaw', 'fault']"
|
Last step: Could you try to control the LED ( |
|
But
is working!
|
Perfect. It's possible to reset the timer by |
yes! |
Why does it not work?
|
Could you try to find the upper bound of the timer? 100 minutes? 999 minutes? The device firmware doesn't support/know a ´set_prop` command. |
I've implemented a first draft:
|
The highest value is 540 |
Thank you so much! |
One last question! How can I install the new version? I have tried pip3 install phyton-miio, previously uninstall. But I can't choose the new device yet? Thanks again! Volker |
I prepared a pull request. As soon the PR is merged and a new version of python-miio is release the new device will be available. You could download my feature branch and install this development version by |
Alas, no. Here's a flow I usually use for testing (requires git-extras installation: https://github.com/tj/git-extras/blob/master/Installation.md):
and then using
|
Many thanks for the instructions! I am not that deep into the matter! I just wanted to get the fan running with the IOBroker! Fortunately this is now possible! Many thanks again! |
@hilde0407 Thanks for you support! |
hello @syssi can you add this working code for integration (Xiaomi Mi Air Purifier & Xiaomi Mi Air Humidifier) with HACS? |
@djmalin Just track the progress here: syssi/xiaomi_airpurifier#112 |
Model: leshow.fan.ss4
Hardware version: esp32
Firmware version: 2.1.3
The text was updated successfully, but these errors were encountered: