Skip to content

Commit e86cc6b

Browse files
authored
[miio] add support for Smartmi Standing Fan 3 zhimi.fan.za5 (#10229)
Signed-off-by: Marcel Verpaalen <[email protected]>
1 parent 50a01b4 commit e86cc6b

File tree

3 files changed

+410
-0
lines changed

3 files changed

+410
-0
lines changed

bundles/org.openhab.binding.miio/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ Currently the miio binding supports more than 270 different models.
465465
| Smartmi Inverter Pedestal Fan | miio:basic | [zhimi.fan.za1](#zhimi-fan-za1) | Yes | |
466466
| Smartmi Standing Fan 2 | miio:basic | [zhimi.fan.za3](#zhimi-fan-za3) | Yes | |
467467
| Smartmi Standing Fan 2S | miio:basic | [zhimi.fan.za4](#zhimi-fan-za4) | Yes | |
468+
| Smartmi Standing Fan 3 | miio:basic | [zhimi.fan.za5](#zhimi-fan-za5) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses |
468469
| Smartmi Radiant Heater Smart Version | miio:basic | [zhimi.heater.za1](#zhimi-heater-za1) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses |
469470
| Smartmi Smart Convector Heater 1S | miio:basic | [zhimi.heater.za2](#zhimi-heater-za2) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses |
470471
| Smartmi Smart Convector Heater 1S | miio:basic | [zhimi.heater.zb1](#zhimi-heater-zb1) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses |
@@ -4378,6 +4379,28 @@ e.g. `openhab:send actionCommand 'upd_timer["1498595904821", "on"]'` would enabl
43784379
| naturalLevel | Number | Natural Level | |
43794380
| move | String | Move Direction | |
43804381

4382+
### Smartmi Standing Fan 3 (<a name="zhimi-fan-za5">zhimi.fan.za5</a>) Channels
4383+
4384+
| Channel | Type | Description | Comment |
4385+
|----------------------|----------------------|------------------------------------------|------------|
4386+
| on | Switch | Fan - Power | |
4387+
| fan_level | Number | Fan - Fan Level | Value mapping ["1"="Level 1","2"="Level 2","3"="Level 3","4"="Level 4"] |
4388+
| horizontal_swing | Switch | Fan - Horizontal Swing | |
4389+
| horizontal_angle | Number | Fan - Horizontal Angle | |
4390+
| mode | Number | Fan - Mode | Value mapping ["0"="Natural Wind","1"="Straight Wind"] |
4391+
| off_delay | Number | Fan - Power Off Delay | |
4392+
| anion | Switch | Fan - Anion | |
4393+
| physical_controls_locked | Switch | Physical Control Locked - Physical Control Locked | |
4394+
| brightness | Number:Dimensionless | Indicator Light - Brightness | |
4395+
| alarm | Switch | Alarm - Alarm | |
4396+
| relative_humidity | Number:Dimensionless | Environment - Relative Humidity | |
4397+
| temperature | Number:Temperature | Environment - Temperature | |
4398+
| button_press | Number | Custom Service - Button Press | Value mapping ["1"="power","2"="swing","0"="No Button Pressed"] |
4399+
| battery_state | Switch | Custom Service - Battery State | |
4400+
| speed_now | Number | Custom Service - Speed Now | |
4401+
| ac_state | Switch | Custom Service - Ac State | |
4402+
| speed_level | Number:Dimensionless | Custom Service - Speed Level | |
4403+
43814404
### Smartmi Radiant Heater Smart Version (<a name="zhimi-heater-za1">zhimi.heater.za1</a>) Channels
43824405

43834406
| Channel | Type | Description | Comment |
@@ -9199,6 +9222,31 @@ Number naturalLevel "Natural Level" (G_fan) {channel="miio:basic:fan:naturalLeve
91999222
String move "Move Direction" (G_fan) {channel="miio:basic:fan:move"}
92009223
```
92019224

9225+
### Smartmi Standing Fan 3 (zhimi.fan.za5) item file lines
9226+
9227+
note: Autogenerated example. Replace the id (fan) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered.
9228+
9229+
```
9230+
Group G_fan "Smartmi Standing Fan 3 " <status>
9231+
Switch on "Fan - Power" (G_fan) {channel="miio:basic:fan:on"}
9232+
Number fan_level "Fan - Fan Level" (G_fan) {channel="miio:basic:fan:fan_level"}
9233+
Switch horizontal_swing "Fan - Horizontal Swing" (G_fan) {channel="miio:basic:fan:horizontal_swing"}
9234+
Number horizontal_angle "Fan - Horizontal Angle" (G_fan) {channel="miio:basic:fan:horizontal_angle"}
9235+
Number mode "Fan - Mode" (G_fan) {channel="miio:basic:fan:mode"}
9236+
Number off_delay "Fan - Power Off Delay" (G_fan) {channel="miio:basic:fan:off_delay"}
9237+
Switch anion "Fan - Anion" (G_fan) {channel="miio:basic:fan:anion"}
9238+
Switch physical_controls_locked "Physical Control Locked - Physical Control Locked" (G_fan) {channel="miio:basic:fan:physical_controls_locked"}
9239+
Number:Dimensionless brightness "Indicator Light - Brightness" (G_fan) {channel="miio:basic:fan:brightness"}
9240+
Switch alarm "Alarm - Alarm" (G_fan) {channel="miio:basic:fan:alarm"}
9241+
Number:Dimensionless relative_humidity "Environment - Relative Humidity" (G_fan) {channel="miio:basic:fan:relative_humidity"}
9242+
Number:Temperature temperature "Environment - Temperature" (G_fan) {channel="miio:basic:fan:temperature"}
9243+
Number button_press "Custom Service - Button Press" (G_fan) {channel="miio:basic:fan:button_press"}
9244+
Switch battery_state "Custom Service - Battery State" (G_fan) {channel="miio:basic:fan:battery_state"}
9245+
Number speed_now "Custom Service - Speed Now" (G_fan) {channel="miio:basic:fan:speed_now"}
9246+
Switch ac_state "Custom Service - Ac State" (G_fan) {channel="miio:basic:fan:ac_state"}
9247+
Number:Dimensionless speed_level "Custom Service - Speed Level" (G_fan) {channel="miio:basic:fan:speed_level"}
9248+
```
9249+
92029250
### Smartmi Radiant Heater Smart Version (zhimi.heater.za1) item file lines
92039251

92049252
note: Autogenerated example. Replace the id (heater) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered.

bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ public enum MiIoDevices {
349349
ZHIMI_FAN_ZA1("zhimi.fan.za1", "Smartmi Inverter Pedestal Fan", THING_TYPE_BASIC),
350350
ZHIMI_FAN_ZA3("zhimi.fan.za3", "Smartmi Standing Fan 2", THING_TYPE_BASIC),
351351
ZHIMI_FAN_ZA4("zhimi.fan.za4", "Smartmi Standing Fan 2S", THING_TYPE_BASIC),
352+
ZHIMI_FAN_ZA5("zhimi.fan.za5", "Smartmi Standing Fan 3 ", THING_TYPE_BASIC),
352353
ZHIMI_HEATER_ZA1("zhimi.heater.za1", "Smartmi Radiant Heater Smart Version", THING_TYPE_BASIC),
353354
ZHIMI_HEATER_ZA2("zhimi.heater.za2", "Smartmi Smart Convector Heater 1S", THING_TYPE_BASIC),
354355
ZHIMI_HEATER_ZB1("zhimi.heater.zb1", "Smartmi Smart Convector Heater 1S", THING_TYPE_BASIC),

0 commit comments

Comments
 (0)