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

[miio] add support for nwt.derh.wdh318efw1 Internet Dehumidifier #9787

Merged
merged 3 commits into from
Jan 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 42 additions & 1 deletion bundles/org.openhab.binding.miio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ Currently the miio binding supports more than 250 different models.
| Mi AI Alarm | miio:unsupported | zimi.clock.myk01 | No | |
| Yeelight Smart Bath Heater | miio:unsupported | yeelight.bhf_light.v2 | No | |
| Gosund Smart Plug | miio:basic | [cuco.plug.cp1](#cuco-plug-cp1) | Yes | |
| WIDETECH WDH318EFW1 Internet Dehumidifier | miio:unsupported | nwt.derh.wdh318efw1 | No | |
| WIDETECH WDH318EFW1 Internet Dehumidifier | miio:basic | [nwt.derh.wdh318efw1](#nwt-derh-wdh318efw1) | Yes | |
| Mi Robot Vacuum Mop 1C STYTJ01ZHM | miio:basic | [dreame.vacuum.mc1808](#dreame-vacuum-mc1808) | Yes | Identified manual actions for execution<br />`action{"did":"battery-start-charge","siid":2,"aiid":1,"in":[]}`<br />`action{"did":"vacuum-start-sweep","siid":3,"aiid":1,"in":[]}`<br />`action{"did":"vacuum-stop-sweeping","siid":3,"aiid":2,"in":[]}`<br />`action{"did":"brush-cleaner-reset-brush-life","siid":26,"aiid":1,"in":[]}`<br />`action{"did":"filter-reset-filter-life","siid":27,"aiid":1,"in":[]}`<br />`action{"did":"brush-cleaner-reset-brush-life","siid":28,"aiid":1,"in":[]}`<br />`action{"did":"clean-start-clean","siid":18,"aiid":1,"in":[]}`<br />`action{"did":"clean-stop-clean","siid":18,"aiid":2,"in":[]}`<br />`action{"did":"remote-start-remote","siid":21,"aiid":1,"in":[1.0, 2.0]}`<br />`action{"did":"remote-stop-remote","siid":21,"aiid":2,"in":[]}`<br />`action{"did":"remote-exit-remote","siid":21,"aiid":3,"in":[]}`<br />`action{"did":"map-map-req","siid":23,"aiid":1,"in":[2.0]}`<br />`action{"did":"audio-position","siid":24,"aiid":1,"in":[]}`<br />`action{"did":"audio-set-voice","siid":24,"aiid":2,"in":[]}`<br />`action{"did":"audio-play-sound","siid":24,"aiid":3,"in":[]}`<br />Please test and feedback if they are working to they can be linked to a channel.<br />Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses |
| Dreame Robot Vacuum-Mop F9 | miio:basic | [dreame.vacuum.p2008](#dreame-vacuum-p2008) | Yes | Identified manual actions for execution<br />`action{"did":"vacuum-start-sweep","siid":2,"aiid":1,"in":[]}`<br />`action{"did":"vacuum-stop-sweeping","siid":2,"aiid":2,"in":[]}`<br />`action{"did":"battery-start-charge","siid":3,"aiid":1,"in":[]}`<br />`action{"did":"brush-cleaner-reset-brush-life","siid":9,"aiid":1,"in":[]}`<br />`action{"did":"brush-cleaner-reset-brush-life","siid":10,"aiid":1,"in":[]}`<br />`action{"did":"filter-reset-filter-life","siid":11,"aiid":1,"in":[]}`<br />`action{"did":"vacuum-extend-start-clean","siid":4,"aiid":1,"in":[10.0]}`<br />`action{"did":"vacuum-extend-stop-clean","siid":4,"aiid":2,"in":[]}`<br />`action{"did":"map-map-req","siid":6,"aiid":1,"in":[2.0]}`<br />`action{"did":"map-update-map","siid":6,"aiid":2,"in":[4.0]}`<br />`action{"did":"audio-position","siid":7,"aiid":1,"in":[]}`<br />`action{"did":"audio-play-sound","siid":7,"aiid":2,"in":[]}`<br />`action{"did":"time-delete-timer","siid":8,"aiid":1,"in":[3.0]}`<br />Please test and feedback if they are working to they can be linked to a channel.<br />Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses |
| Mi Air Purifier 2S | miio:basic | [zhimi.airpurifier.mb1](#zhimi-airpurifier-mb1) | Yes | |
Expand Down Expand Up @@ -1014,6 +1014,25 @@ e.g. `openhab:send actionCommand 'upd_timer["1498595904821", "on"]'` would enabl
| SerialNumber | String | Device Information-Device Serial Number | |
| On | Switch | Switch-Switch Status | |

### WIDETECH WDH318EFW1 Internet Dehumidifier (<a name="nwt-derh-wdh318efw1">nwt.derh.wdh318efw1</a>) Channels

| Channel | Type | Description | Comment |
|------------------|---------|-------------------------------------|------------|
| power | Switch | Power | |
| mode | String | Mode | |
| autohumidity | Number:Dimensionless | Auto humidity | |
| fanspeed | Number | Fan Speed | |
| buzzer | Switch | Buzzer | |
| led | Switch | LED | |
| childlock | Switch | Child Lock | |
| humidity | Number:Dimensionless | Humidity | |
| temperature | Number:Temperature | Temperature | |
| tankfull | Switch | Tank Full | |
| compressorstatus | Switch | Compressor Status | |
| defroststatus | Switch | Defrost Status | |
| fanst | Number | Fan St | |
| alarm | String | Alarm | |

### Mi Robot Vacuum Mop 1C STYTJ01ZHM (<a name="dreame-vacuum-mc1808">dreame.vacuum.mc1808</a>) Channels

| Channel | Type | Description | Comment |
Expand Down Expand Up @@ -4770,6 +4789,28 @@ String SerialNumber "Device Information-Device Serial Number" (G_plug) {channel=
Switch On "Switch-Switch Status" (G_plug) {channel="miio:basic:plug:On"}
```

### WIDETECH WDH318EFW1 Internet Dehumidifier (nwt.derh.wdh318efw1) item file lines

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

```java
Group G_derh "WIDETECH WDH318EFW1 Internet Dehumidifier" <status>
Switch power "Power" (G_derh) {channel="miio:basic:derh:power"}
String mode "Mode" (G_derh) {channel="miio:basic:derh:mode"}
Number:Dimensionless autohumidity "Auto humidity" (G_derh) {channel="miio:basic:derh:autohumidity"}
Number fanspeed "Fan Speed" (G_derh) {channel="miio:basic:derh:fanspeed"}
Switch buzzer "Buzzer" (G_derh) {channel="miio:basic:derh:buzzer"}
Switch led "LED" (G_derh) {channel="miio:basic:derh:led"}
Switch childlock "Child Lock" (G_derh) {channel="miio:basic:derh:childlock"}
Number:Dimensionless humidity "Humidity" (G_derh) {channel="miio:basic:derh:humidity"}
Number:Temperature temperature "Temperature" (G_derh) {channel="miio:basic:derh:temperature"}
Switch tankfull "Tank Full" (G_derh) {channel="miio:basic:derh:tankfull"}
Switch compressorstatus "Compressor Status" (G_derh) {channel="miio:basic:derh:compressorstatus"}
Switch defroststatus "Defrost Status" (G_derh) {channel="miio:basic:derh:defroststatus"}
Number fanst "Fan St" (G_derh) {channel="miio:basic:derh:fanst"}
String alarm "Alarm" (G_derh) {channel="miio:basic:derh:alarm"}
```

### Mi Robot Vacuum Mop 1C STYTJ01ZHM (dreame.vacuum.mc1808) item file lines

note: Autogenerated example. Replace the id (vacuum) 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 @@ -56,7 +56,7 @@ public enum MiIoDevices {
ZIMI_CLOCK_MYK01("zimi.clock.myk01", "Mi AI Alarm", THING_TYPE_UNSUPPORTED),
YEELIGHT_BHF_LIGHT_V2("yeelight.bhf_light.v2", "Yeelight Smart Bath Heater", THING_TYPE_UNSUPPORTED),
CUCO_PLUG_CP1("cuco.plug.cp1", "Gosund Smart Plug", THING_TYPE_BASIC),
NWT_DERH_WDH318EFW1("nwt.derh.wdh318efw1", "WIDETECH WDH318EFW1 Internet Dehumidifier", THING_TYPE_UNSUPPORTED),
NWT_DERH_WDH318EFW1("nwt.derh.wdh318efw1", "WIDETECH WDH318EFW1 Internet Dehumidifier", THING_TYPE_BASIC),
DREAME_VACUUM_MC1808("dreame.vacuum.mc1808", "Mi Robot Vacuum Mop 1C STYTJ01ZHM", THING_TYPE_BASIC),
DREAME_VACUUM_P2008("dreame.vacuum.p2008", "Dreame Robot Vacuum-Mop F9", THING_TYPE_BASIC),
ZHIMI_AIRPURIFIER_MB1("zhimi.airpurifier.mb1", "Mi Air Purifier 2S", THING_TYPE_BASIC),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
{
"deviceMapping": {
"id": [
"nwt.derh.wdh318efw1"
],
"channels": [
{
"property": "on_off",
"friendlyName": "Power",
"channel": "power",
"type": "Switch",
"refresh": true,
"ChannelGroup": "Power",
"actions": [
{
"command": "set_power",
"parameterType": "ONOFF"
}
],
"category": "switch",
"tags": [
"Switch"
]
},
{
"property": "mode",
"friendlyName": "Mode",
"channel": "mode",
"type": "String",
"refresh": true,
"ChannelGroup": "actions",
"actions": [
{
"command": "set_mode",
"parameterType": "STRING"
}
],
"tags": [
"Control"
]
},
{
"property": "auto",
"friendlyName": "Auto humidity",
"channel": "autohumidity",
"type": "Number:Dimensionless",
"unit": "PERCENT",
"refresh": true,
"ChannelGroup": "actions",
"actions": [
{
"command": "set_auto",
"parameterType": "NUMBER"
}
]
},
{
"property": "fan_speed",
"friendlyName": "Fan Speed",
"channel": "fanspeed",
"type": "Number",
"refresh": true,
"ChannelGroup": "actions",
"actions": [
{
"command": "set_fan_level",
"parameterType": "NUMBER"
}
],
"category": "fan_box",
"tags": [
"Setpoint"
]
},
{
"property": "buzzer",
"friendlyName": "Buzzer",
"channel": "buzzer",
"type": "Switch",
"refresh": true,
"ChannelGroup": "actions",
"actions": [
{
"command": "set_buzzer",
"parameterType": "ONOFF"
}
]
},
{
"property": "led",
"friendlyName": "LED",
"channel": "led",
"type": "Switch",
"refresh": true,
"ChannelGroup": "actions",
"actions": [
{
"command": "set_led",
"parameterType": "ONOFF"
}
]
},
{
"property": "child_lock",
"friendlyName": "Child Lock",
"channel": "childlock",
"type": "Switch",
"refresh": true,
"ChannelGroup": "actions",
"actions": [
{
"command": "set_child_lock",
"parameterType": "ONOFF"
}
]
},
{
"property": "humidity",
"friendlyName": "Humidity",
"channel": "humidity",
"type": "Number:Dimensionless",
"unit": "PERCENT",
"refresh": true,
"ChannelGroup": "Status",
"actions": [],
"category": "humidity",
"tags": [
"Measurement",
"Humidity"
]
},
{
"property": "temp",
"friendlyName": "Temperature",
"channel": "temperature",
"type": "Number:Temperature",
"unit": "CELCIUS",
"refresh": true,
"ChannelGroup": "Status",
"actions": [],
"category": "temperature",
"tags": [
"Measurement",
"Temperature"
]
},
{
"property": "tank_full",
"friendlyName": "Tank Full",
"channel": "tankfull",
"type": "Switch",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "compressor_status",
"friendlyName": "Compressor Status",
"channel": "compressorstatus",
"type": "Switch",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "defrost_status",
"friendlyName": "Defrost Status",
"channel": "defroststatus",
"type": "Switch",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "fan_st",
"friendlyName": "Fan St",
"channel": "fanst",
Comment on lines +176 to +177
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these good friendly names for fan speed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@feodor85 What is the friedly name you see in the app UI for Fan St? any idea what it is.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fan Speed is OK

"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "alarm",
"friendlyName": "Alarm",
"channel": "alarm",
"type": "String",
"refresh": true,
"ChannelGroup": "Status",
"actions": [],
"tags": [
"Alarm"
]
}
]
}
}