[miio] update zhimi humiddifier ca4 (#10032)

https://community.openhab.org/t/zhimi-humidifier-ca4-issue/116009

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
Marcel 2021-02-03 11:05:03 +01:00 committed by GitHub
parent e037c1be91
commit 056e4c4103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 105 additions and 46 deletions

View File

@ -4329,12 +4329,12 @@ e.g. `openhab:send actionCommand 'upd_timer["1498595904821", "on"]'` would enabl
| Channel | Type | Description | Comment | | Channel | Type | Description | Comment |
|------------------|---------|-------------------------------------|------------| |------------------|---------|-------------------------------------|------------|
| power | Switch | Power | | | power | Switch | Power | |
| mode | Number | Mode | | | mode | Number | Mode - Fan Level | Value mapping ["0"="Auto","1"="Silent","2"="Normal","3"="Maximum"] |
| Fault | Number | Humidifier Device Fault | | | Fault | Number | Humidifier Device Fault | |
| humidity | Number:Dimensionless | Humidity | | | humidity | Number:Dimensionless | Humidity | |
| targetHumidity | Number | Target Humidity | | | targetHumidity | Number:Dimensionless | Target Humidity | |
| waterlevel | Number | Water Level | | | waterlevel | Number | Water Level | |
| bright | Dimmer | LED Brightness | | | bright | Number | LED Brightness | Value mapping ["0"="Dark","1"="Dimmed","2"="Brightest"] |
| buzzer | Switch | Buzzer Status | | | buzzer | Switch | Buzzer Status | |
| dry | Switch | Dry | | | dry | Switch | Dry | |
| usedhours | Number:Time | Run Time | | | usedhours | Number:Time | Run Time | |
@ -4343,9 +4343,8 @@ e.g. `openhab:send actionCommand 'upd_timer["1498595904821", "on"]'` would enabl
| actualmotorspeed | Number | Actual Motor Speed | | | actualmotorspeed | Number | Actual Motor Speed | |
| temperature | Number:Temperature | Temperature | | | temperature | Number:Temperature | Temperature | |
| childlock | Switch | Child Lock | | | childlock | Switch | Child Lock | |
| ButtonPressed | Number | Button Pressed | | | ButtonPressed | Number | Button Pressed | Value mapping ["0"="none","1"="led","2"="power"] |
| clean | Switch | Clean Mode | | | clean | Switch | Clean Mode | |
| countryCode | Number | Country Code | |
### Smartmi Evaporative Humidifier (<a name="zhimi-humidifier-cb1">zhimi.humidifier.cb1</a>) Channels ### Smartmi Evaporative Humidifier (<a name="zhimi-humidifier-cb1">zhimi.humidifier.cb1</a>) Channels
@ -9022,12 +9021,12 @@ note: Autogenerated example. Replace the id (humidifier) in the channel with you
``` ```
Group G_humidifier "Smartmi Evaporative Humidifer 2" <status> Group G_humidifier "Smartmi Evaporative Humidifer 2" <status>
Switch power "Power" (G_humidifier) {channel="miio:basic:humidifier:power"} Switch power "Power" (G_humidifier) {channel="miio:basic:humidifier:power"}
Number mode "Mode" (G_humidifier) {channel="miio:basic:humidifier:mode"} Number mode "Mode - Fan Level" (G_humidifier) {channel="miio:basic:humidifier:mode"}
Number Fault "Humidifier Device Fault" (G_humidifier) {channel="miio:basic:humidifier:Fault"} Number Fault "Humidifier Device Fault" (G_humidifier) {channel="miio:basic:humidifier:Fault"}
Number:Dimensionless humidity "Humidity" (G_humidifier) {channel="miio:basic:humidifier:humidity"} Number:Dimensionless humidity "Humidity" (G_humidifier) {channel="miio:basic:humidifier:humidity"}
Number targetHumidity "Target Humidity" (G_humidifier) {channel="miio:basic:humidifier:targetHumidity"} Number:Dimensionless targetHumidity "Target Humidity" (G_humidifier) {channel="miio:basic:humidifier:targetHumidity"}
Number waterlevel "Water Level" (G_humidifier) {channel="miio:basic:humidifier:waterlevel"} Number waterlevel "Water Level" (G_humidifier) {channel="miio:basic:humidifier:waterlevel"}
Dimmer bright "LED Brightness" (G_humidifier) {channel="miio:basic:humidifier:bright"} Number bright "LED Brightness" (G_humidifier) {channel="miio:basic:humidifier:bright"}
Switch buzzer "Buzzer Status" (G_humidifier) {channel="miio:basic:humidifier:buzzer"} Switch buzzer "Buzzer Status" (G_humidifier) {channel="miio:basic:humidifier:buzzer"}
Switch dry "Dry" (G_humidifier) {channel="miio:basic:humidifier:dry"} Switch dry "Dry" (G_humidifier) {channel="miio:basic:humidifier:dry"}
Number:Time usedhours "Run Time" (G_humidifier) {channel="miio:basic:humidifier:usedhours"} Number:Time usedhours "Run Time" (G_humidifier) {channel="miio:basic:humidifier:usedhours"}
@ -9038,7 +9037,6 @@ Number:Temperature temperature "Temperature" (G_humidifier) {channel="miio:basic
Switch childlock "Child Lock" (G_humidifier) {channel="miio:basic:humidifier:childlock"} Switch childlock "Child Lock" (G_humidifier) {channel="miio:basic:humidifier:childlock"}
Number ButtonPressed "Button Pressed" (G_humidifier) {channel="miio:basic:humidifier:ButtonPressed"} Number ButtonPressed "Button Pressed" (G_humidifier) {channel="miio:basic:humidifier:ButtonPressed"}
Switch clean "Clean Mode" (G_humidifier) {channel="miio:basic:humidifier:clean"} Switch clean "Clean Mode" (G_humidifier) {channel="miio:basic:humidifier:clean"}
Number countryCode "Country Code" (G_humidifier) {channel="miio:basic:humidifier:countryCode"}
``` ```
### Smartmi Evaporative Humidifier (zhimi.humidifier.cb1) item file lines ### Smartmi Evaporative Humidifier (zhimi.humidifier.cb1) item file lines

View File

@ -12,7 +12,6 @@
"piid": 1, "piid": 1,
"friendlyName": "Power", "friendlyName": "Power",
"channel": "power", "channel": "power",
"channelType": "power",
"type": "Switch", "type": "Switch",
"refresh": true, "refresh": true,
"actions": [ "actions": [
@ -30,10 +29,29 @@
"property": "mode", "property": "mode",
"siid": 2, "siid": 2,
"piid": 5, "piid": 5,
"friendlyName": "Mode", "friendlyName": "Mode - Fan Level",
"channel": "mode", "channel": "mode",
"channelType": "humidifierOperationMode",
"type": "Number", "type": "Number",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Auto"
},
{
"value": "1",
"label": "Silent"
},
{
"value": "2",
"label": "Normal"
},
{
"value": "3",
"label": "Maximum"
}
]
},
"refresh": true, "refresh": true,
"ChannelGroup": "actions", "ChannelGroup": "actions",
"actions": [ "actions": [
@ -44,7 +62,8 @@
], ],
"tags": [ "tags": [
"Control" "Control"
] ],
"readmeComment": "Value mapping [\"0\"\u003d\"Auto\",\"1\"\u003d\"Silent\",\"2\"\u003d\"Normal\",\"3\"\u003d\"Maximum\"]"
}, },
{ {
"property": "fault", "property": "fault",
@ -52,8 +71,14 @@
"piid": 2, "piid": 2,
"friendlyName": "Humidifier Device Fault", "friendlyName": "Humidifier Device Fault",
"channel": "Fault", "channel": "Fault",
"channelType": "miot_uint8",
"type": "Number", "type": "Number",
"stateDescription": {
"minimum": 0,
"maximum": 15,
"step": 1,
"pattern": "%.0f",
"readOnly": true
},
"refresh": true, "refresh": true,
"actions": [] "actions": []
}, },
@ -80,8 +105,14 @@
"piid": 6, "piid": 6,
"friendlyName": "Target Humidity", "friendlyName": "Target Humidity",
"channel": "targetHumidity", "channel": "targetHumidity",
"channelType": "humidity", "type": "Number:Dimensionless",
"type": "Number", "unit": "percentage",
"stateDescription": {
"minimum": 30,
"maximum": 80,
"step": 1,
"pattern": "%.0f %unit%"
},
"refresh": true, "refresh": true,
"ChannelGroup": "Status", "ChannelGroup": "Status",
"actions": [ "actions": [
@ -97,8 +128,14 @@
"piid": 7, "piid": 7,
"friendlyName": "Water Level", "friendlyName": "Water Level",
"channel": "waterlevel", "channel": "waterlevel",
"channelType": "waterlevel",
"type": "Number", "type": "Number",
"stateDescription": {
"minimum": 0,
"maximum": 100,
"step": 1,
"pattern": "%.0f %%",
"readOnly": true
},
"refresh": true, "refresh": true,
"transformation": "tankLevel", "transformation": "tankLevel",
"ChannelGroup": "Status", "ChannelGroup": "Status",
@ -111,7 +148,23 @@
"piid": 2, "piid": 2,
"friendlyName": "LED Brightness", "friendlyName": "LED Brightness",
"channel": "bright", "channel": "bright",
"type": "Dimmer", "type": "Number",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Dark"
},
{
"value": "1",
"label": "Dimmed"
},
{
"value": "2",
"label": "Brightest"
}
]
},
"refresh": true, "refresh": true,
"ChannelGroup": "actions", "ChannelGroup": "actions",
"actions": [ "actions": [
@ -124,7 +177,8 @@
"tags": [ "tags": [
"Control", "Control",
"Light" "Light"
] ],
"readmeComment": "Value mapping [\"0\"\u003d\"Dark\",\"1\"\u003d\"Dimmed\",\"2\"\u003d\"Brightest\"]"
}, },
{ {
"property": "buzzer", "property": "buzzer",
@ -132,7 +186,6 @@
"piid": 1, "piid": 1,
"friendlyName": "Buzzer Status", "friendlyName": "Buzzer Status",
"channel": "buzzer", "channel": "buzzer",
"channelType": "buzzer",
"type": "Switch", "type": "Switch",
"refresh": true, "refresh": true,
"ChannelGroup": "actions", "ChannelGroup": "actions",
@ -149,7 +202,6 @@
"piid": 8, "piid": 8,
"friendlyName": "Dry", "friendlyName": "Dry",
"channel": "dry", "channel": "dry",
"channelType": "dry",
"type": "Switch", "type": "Switch",
"refresh": true, "refresh": true,
"ChannelGroup": "Status", "ChannelGroup": "Status",
@ -166,7 +218,6 @@
"piid": 9, "piid": 9,
"friendlyName": "Run Time", "friendlyName": "Run Time",
"channel": "usedhours", "channel": "usedhours",
"channelType": "usedhours",
"type": "Number:Time", "type": "Number:Time",
"unit": "hours", "unit": "hours",
"refresh": true, "refresh": true,
@ -181,7 +232,6 @@
"piid": 3, "piid": 3,
"friendlyName": "Power Time", "friendlyName": "Power Time",
"channel": "powerhours", "channel": "powerhours",
"channelType": "powerhours",
"type": "Number:Time", "type": "Number:Time",
"unit": "hours", "unit": "hours",
"refresh": true, "refresh": true,
@ -196,8 +246,13 @@
"piid": 11, "piid": 11,
"friendlyName": "Target Motor Speed", "friendlyName": "Target Motor Speed",
"channel": "targetmotorspeed", "channel": "targetmotorspeed",
"channelType": "motorspeed",
"type": "Number", "type": "Number",
"stateDescription": {
"minimum": 200,
"maximum": 2000,
"step": 10,
"pattern": "%.0f"
},
"refresh": true, "refresh": true,
"ChannelGroup": "Status", "ChannelGroup": "Status",
"actions": [] "actions": []
@ -208,8 +263,14 @@
"piid": 1, "piid": 1,
"friendlyName": "Actual Motor Speed", "friendlyName": "Actual Motor Speed",
"channel": "actualmotorspeed", "channel": "actualmotorspeed",
"channelType": "motorspeed",
"type": "Number", "type": "Number",
"stateDescription": {
"minimum": 0,
"maximum": 2000,
"step": 1,
"pattern": "%.0f",
"readOnly": true
},
"refresh": true, "refresh": true,
"ChannelGroup": "Status", "ChannelGroup": "Status",
"actions": [] "actions": []
@ -223,6 +284,8 @@
"type": "Number:Temperature", "type": "Number:Temperature",
"unit": "CELCIUS", "unit": "CELCIUS",
"stateDescription": { "stateDescription": {
"minimum": -40,
"maximum": 125,
"pattern": "%.1f %unit%", "pattern": "%.1f %unit%",
"readOnly": true "readOnly": true
}, },
@ -241,7 +304,6 @@
"piid": 1, "piid": 1,
"friendlyName": "Child Lock", "friendlyName": "Child Lock",
"channel": "childlock", "channel": "childlock",
"channelType": "childlock",
"type": "Switch", "type": "Switch",
"refresh": true, "refresh": true,
"ChannelGroup": "Status", "ChannelGroup": "Status",
@ -258,10 +320,27 @@
"piid": 10, "piid": 10,
"friendlyName": "Button Pressed", "friendlyName": "Button Pressed",
"channel": "ButtonPressed", "channel": "ButtonPressed",
"channelType": "humidifierLastPressedButton",
"type": "Number", "type": "Number",
"stateDescription": {
"readOnly": true,
"options": [
{
"value": "0",
"label": "none"
},
{
"value": "1",
"label": "led"
},
{
"value": "2",
"label": "power"
}
]
},
"refresh": true, "refresh": true,
"actions": [] "actions": [],
"readmeComment": "Value mapping [\"0\"\u003d\"none\",\"1\"\u003d\"led\",\"2\"\u003d\"power\"]"
}, },
{ {
"property": "clean", "property": "clean",
@ -269,7 +348,6 @@
"piid": 5, "piid": 5,
"friendlyName": "Clean Mode", "friendlyName": "Clean Mode",
"channel": "clean", "channel": "clean",
"channelType": "clean",
"type": "Switch", "type": "Switch",
"refresh": true, "refresh": true,
"actions": [ "actions": [
@ -278,23 +356,6 @@
"parameterType": "ONOFFBOOL" "parameterType": "ONOFFBOOL"
} }
] ]
},
{
"property": "country_code",
"siid": 7,
"piid": 4,
"friendlyName": "Country Code",
"channel": "countryCode",
"channelType": "countryCode",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
]
} }
] ]
} }