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 device model zhimi.fan.za4 #29

Closed
Flehm opened this issue May 14, 2019 · 8 comments
Closed

Support device model zhimi.fan.za4 #29

Flehm opened this issue May 14, 2019 · 8 comments

Comments

@Flehm
Copy link

Flehm commented May 14, 2019

Hi, today I received my "Smartmi Standing Fan 2S" (Model: ZLBPLDS03ZM Battery: 2800mAh)
(https://www.gearbest.com/air-cooler-fan/pp_009305221654.html)
Sadly it is not yet recognised by your component. Could you please integrate it?

I try to give the same information which you required in similar requests, let me know if you need more information:
Mi Home App doesn't seem to display battery stats


mirobo --ip IP --token TOKEN info
zhimi.fan.za4 v2.0.2 (40:31:3C:xx:yy:74) @ IP - token: TOKEN

mirobo --ip IP --token TOKEN raw-command get_prop "['led', 'bat_state', 'temp_dec', 'humidity', 'angle', 'speed', 'poweroff_time', 'power', 'ac_power', 'battery', 'angle_enable', 'speed_level', 'natural_level', 'child_lock', 'buzzer', 'led_b', 'use_time', 'bat_charge', 'button_pressed']"
Sending cmd get_prop with params ['led', 'bat_state', 'temp_dec', 'humidity', 'angle', 'speed', 'poweroff_time', 'power', 'ac_power', 'battery', 'angle_enable', 'speed_level', 'natural_level', 'child_lock', 'buzzer', 'led_b', 'use_time', 'bat_charge', 'button_pressed']
['null']

mirobo --ip IP --token TOKEN raw-command get_prop "['temp_dec', 'humidity', 'angle', 'speed', 'poweroff_time', 'power', 'ac_power', 'battery', 'angle_enable', 'speed_level', 'natural_level', 'child_lock', 'buzzer', 'led_b', 'use_time', 'bat_charge', 'button_pressed']"
Sending cmd get_prop with params ['temp_dec', 'humidity', 'angle', 'speed', 'poweroff_time', 'power', 'ac_power', 'battery', 'angle_enable', 'speed_level', 'natural_level', 'child_lock', 'buzzer', 'led_b', 'use_time', 'bat_charge', 'button_pressed']
['null']

mirobo --ip IP --token TOKEN raw-command get_prop "['angle', 'speed', 'poweroff_time', 'power', 'ac_power', 'angle_enable', 'speed_level', 'natural_level', 'child_lock', 'buzzer', 'led_b', 'use_time']"
Sending cmd get_prop with params ['angle', 'speed', 'poweroff_time', 'power', 'ac_power', 'angle_enable', 'speed_level', 'natural_level', 'child_lock', 'buzzer', 'led_b', 'use_time']
[120]

for PROP in ac_power angle angle_enable bat_charge bat_state battery button_pressed buzzer child_lock humidity led led_b natural_level power poweroff_time speed speed_level temp_dec use_time
do
  mirobo --ip IP --token TOKEN raw-command get_prop "['$PROP']"
done
Sending cmd get_prop with params ['ac_power']
['on']
Sending cmd get_prop with params ['angle']
[120]
Sending cmd get_prop with params ['angle_enable']
['off']
Sending cmd get_prop with params ['bat_charge']
['null']
Sending cmd get_prop with params ['bat_state']
['null']
Sending cmd get_prop with params ['battery']
['null']
Sending cmd get_prop with params ['button_pressed']
['null']
Sending cmd get_prop with params ['buzzer']
[2]
Sending cmd get_prop with params ['child_lock']
['off']
Sending cmd get_prop with params ['humidity']
['null']
Sending cmd get_prop with params ['led']
['null']
Sending cmd get_prop with params ['led_b']
[0]
Sending cmd get_prop with params ['natural_level']
[0]
Sending cmd get_prop with params ['power']
['on']
Sending cmd get_prop with params ['poweroff_time']
[0]
Sending cmd get_prop with params ['speed']
[327]
Sending cmd get_prop with params ['speed_level']
[1]
Sending cmd get_prop with params ['temp_dec']
['null']
Sending cmd get_prop with params ['use_time']
[85]
@ankitmehtame
Copy link

Yes, please add support for the new model zhimi.fan.za4

@syssi
Copy link
Owner

syssi commented Jun 2, 2019

I will add this device soon!

@ankitmehtame
Copy link

Thanks. Looking forward to it.

@syssi
Copy link
Owner

syssi commented Jun 2, 2019

@Flehm @ankit-mehta-developer Could you provide the mDNS name of the device?

@ankitmehtame
Copy link

How do I go about it?

@syssi
Copy link
Owner

syssi commented Jun 2, 2019

It's normally the DHCP hostname listed at your router/dhcp server.

@syssi syssi closed this as completed in 2ae2551 Jun 2, 2019
@syssi
Copy link
Owner

syssi commented Jun 2, 2019

Your device should be supported now. Please update the custom component and give it a try!

@ankitmehtame
Copy link

Thanks. I see the model is auto-detected now. By the way the DNS name is zhimi-fan-za4_mibtXXXX

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

3 participants