Skip to content

Commit

Permalink
[miio] add support for Smartmi Standing Fan 3 zhimi.fan.za5 (openhab#…
Browse files Browse the repository at this point in the history
…10229)

Signed-off-by: Marcel Verpaalen <[email protected]>
  • Loading branch information
marcelrv authored and thinkingstone committed Nov 7, 2021
1 parent 9b27679 commit 5e44ad9
Show file tree
Hide file tree
Showing 3 changed files with 410 additions and 0 deletions.
48 changes: 48 additions & 0 deletions bundles/org.openhab.binding.miio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ Currently the miio binding supports more than 270 different models.
| Smartmi Inverter Pedestal Fan | miio:basic | [zhimi.fan.za1](#zhimi-fan-za1) | Yes | |
| Smartmi Standing Fan 2 | miio:basic | [zhimi.fan.za3](#zhimi-fan-za3) | Yes | |
| Smartmi Standing Fan 2S | miio:basic | [zhimi.fan.za4](#zhimi-fan-za4) | Yes | |
| 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 |
| 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 |
| 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 |
| 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 |
Expand Down Expand Up @@ -4378,6 +4379,28 @@ e.g. `openhab:send actionCommand 'upd_timer["1498595904821", "on"]'` would enabl
| naturalLevel | Number | Natural Level | |
| move | String | Move Direction | |

### Smartmi Standing Fan 3 (<a name="zhimi-fan-za5">zhimi.fan.za5</a>) Channels

| Channel | Type | Description | Comment |
|----------------------|----------------------|------------------------------------------|------------|
| on | Switch | Fan - Power | |
| fan_level | Number | Fan - Fan Level | Value mapping ["1"="Level 1","2"="Level 2","3"="Level 3","4"="Level 4"] |
| horizontal_swing | Switch | Fan - Horizontal Swing | |
| horizontal_angle | Number | Fan - Horizontal Angle | |
| mode | Number | Fan - Mode | Value mapping ["0"="Natural Wind","1"="Straight Wind"] |
| off_delay | Number | Fan - Power Off Delay | |
| anion | Switch | Fan - Anion | |
| physical_controls_locked | Switch | Physical Control Locked - Physical Control Locked | |
| brightness | Number:Dimensionless | Indicator Light - Brightness | |
| alarm | Switch | Alarm - Alarm | |
| relative_humidity | Number:Dimensionless | Environment - Relative Humidity | |
| temperature | Number:Temperature | Environment - Temperature | |
| button_press | Number | Custom Service - Button Press | Value mapping ["1"="power","2"="swing","0"="No Button Pressed"] |
| battery_state | Switch | Custom Service - Battery State | |
| speed_now | Number | Custom Service - Speed Now | |
| ac_state | Switch | Custom Service - Ac State | |
| speed_level | Number:Dimensionless | Custom Service - Speed Level | |

### Smartmi Radiant Heater Smart Version (<a name="zhimi-heater-za1">zhimi.heater.za1</a>) Channels

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

### Smartmi Standing Fan 3 (zhimi.fan.za5) item file lines

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.

```
Group G_fan "Smartmi Standing Fan 3 " <status>
Switch on "Fan - Power" (G_fan) {channel="miio:basic:fan:on"}
Number fan_level "Fan - Fan Level" (G_fan) {channel="miio:basic:fan:fan_level"}
Switch horizontal_swing "Fan - Horizontal Swing" (G_fan) {channel="miio:basic:fan:horizontal_swing"}
Number horizontal_angle "Fan - Horizontal Angle" (G_fan) {channel="miio:basic:fan:horizontal_angle"}
Number mode "Fan - Mode" (G_fan) {channel="miio:basic:fan:mode"}
Number off_delay "Fan - Power Off Delay" (G_fan) {channel="miio:basic:fan:off_delay"}
Switch anion "Fan - Anion" (G_fan) {channel="miio:basic:fan:anion"}
Switch physical_controls_locked "Physical Control Locked - Physical Control Locked" (G_fan) {channel="miio:basic:fan:physical_controls_locked"}
Number:Dimensionless brightness "Indicator Light - Brightness" (G_fan) {channel="miio:basic:fan:brightness"}
Switch alarm "Alarm - Alarm" (G_fan) {channel="miio:basic:fan:alarm"}
Number:Dimensionless relative_humidity "Environment - Relative Humidity" (G_fan) {channel="miio:basic:fan:relative_humidity"}
Number:Temperature temperature "Environment - Temperature" (G_fan) {channel="miio:basic:fan:temperature"}
Number button_press "Custom Service - Button Press" (G_fan) {channel="miio:basic:fan:button_press"}
Switch battery_state "Custom Service - Battery State" (G_fan) {channel="miio:basic:fan:battery_state"}
Number speed_now "Custom Service - Speed Now" (G_fan) {channel="miio:basic:fan:speed_now"}
Switch ac_state "Custom Service - Ac State" (G_fan) {channel="miio:basic:fan:ac_state"}
Number:Dimensionless speed_level "Custom Service - Speed Level" (G_fan) {channel="miio:basic:fan:speed_level"}
```

### Smartmi Radiant Heater Smart Version (zhimi.heater.za1) item file lines

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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ public enum MiIoDevices {
ZHIMI_FAN_ZA1("zhimi.fan.za1", "Smartmi Inverter Pedestal Fan", THING_TYPE_BASIC),
ZHIMI_FAN_ZA3("zhimi.fan.za3", "Smartmi Standing Fan 2", THING_TYPE_BASIC),
ZHIMI_FAN_ZA4("zhimi.fan.za4", "Smartmi Standing Fan 2S", THING_TYPE_BASIC),
ZHIMI_FAN_ZA5("zhimi.fan.za5", "Smartmi Standing Fan 3 ", THING_TYPE_BASIC),
ZHIMI_HEATER_ZA1("zhimi.heater.za1", "Smartmi Radiant Heater Smart Version", THING_TYPE_BASIC),
ZHIMI_HEATER_ZA2("zhimi.heater.za2", "Smartmi Smart Convector Heater 1S", THING_TYPE_BASIC),
ZHIMI_HEATER_ZB1("zhimi.heater.zb1", "Smartmi Smart Convector Heater 1S", THING_TYPE_BASIC),
Expand Down
Loading

0 comments on commit 5e44ad9

Please sign in to comment.