[miio] add support for zhimi.humidifier.cb2 Smartmi Evaporative Humidifier (#9968)
* [miio] add support for zhimi.humidifier.cb2 Smartmi Evaporative Humidifier Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com> * [miio] remove java notation from readme Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
parent
5a7be93670
commit
e4ac982119
File diff suppressed because it is too large
Load Diff
|
@ -351,6 +351,7 @@ public enum MiIoDevices {
|
|||
ZHIMI_HUMIDIFIER_CA1("zhimi.humidifier.ca1", "Smartmi Evaporative Humidifier", THING_TYPE_BASIC),
|
||||
ZHIMI_HUMIDIFIER_CA4("zhimi.humidifier.ca4", "Smartmi Evaporative Humidifer 2", THING_TYPE_BASIC),
|
||||
ZHIMI_HUMIDIFIER_CB1("zhimi.humidifier.cb1", "Smartmi Evaporative Humidifier", THING_TYPE_BASIC),
|
||||
ZHIMI_HUMIDIFIER_CB2("zhimi.humidifier.cb2", "Smartmi Evaporative Humidifier", THING_TYPE_BASIC),
|
||||
ZHIMI_HUMIDIFIER_V1("zhimi.humidifier.v1", "Smartmi Humidifier", THING_TYPE_BASIC),
|
||||
ZIMI_CLOCK_MYK01("zimi.clock.myk01", "Mi AI Alarm", THING_TYPE_UNSUPPORTED),
|
||||
ZIMI_POWERSTRIP_V2("zimi.powerstrip.v2", "Mi Smart Power Strip", THING_TYPE_BASIC),
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"deviceMapping": {
|
||||
"id": [
|
||||
"zhimi.humidifier.cb1"
|
||||
"zhimi.humidifier.cb1",
|
||||
"zhimi.humidifier.cb2"
|
||||
],
|
||||
"channels": [
|
||||
{
|
||||
"property": "power",
|
||||
"friendlyName": "Power",
|
||||
"channel": "power",
|
||||
"channelType": "power",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
|
@ -59,8 +59,15 @@
|
|||
"property": "limit_hum",
|
||||
"friendlyName": "Humidity Set",
|
||||
"channel": "setHumidity",
|
||||
"channelType": "setHumidity",
|
||||
"type": "Number",
|
||||
"type": "Number:Dimensionless",
|
||||
"unit": "PERCENT",
|
||||
"stateDescription": {
|
||||
"minimum": 10,
|
||||
"maximum": 100,
|
||||
"step": 1,
|
||||
"pattern": "%.1f %unit%",
|
||||
"readOnly": false
|
||||
},
|
||||
"refresh": true,
|
||||
"ChannelGroup": "Status",
|
||||
"actions": [
|
||||
|
@ -88,7 +95,6 @@
|
|||
"property": "buzzer",
|
||||
"friendlyName": "Buzzer Status",
|
||||
"channel": "buzzer",
|
||||
"channelType": "buzzer",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"ChannelGroup": "actions",
|
||||
|
@ -103,8 +109,11 @@
|
|||
"property": "depth",
|
||||
"friendlyName": "Depth",
|
||||
"channel": "depth",
|
||||
"channelType": "depth",
|
||||
"type": "Number",
|
||||
"stateDescription": {
|
||||
"pattern": "%.1f %unit%",
|
||||
"readOnly": true
|
||||
},
|
||||
"refresh": true,
|
||||
"ChannelGroup": "Status",
|
||||
"actions": []
|
||||
|
@ -113,7 +122,6 @@
|
|||
"property": "dry",
|
||||
"friendlyName": "Dry",
|
||||
"channel": "dry",
|
||||
"channelType": "dry",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"ChannelGroup": "Status",
|
||||
|
@ -128,9 +136,12 @@
|
|||
"property": "use_time",
|
||||
"friendlyName": "Run Time",
|
||||
"channel": "usedhours",
|
||||
"channelType": "usedhours",
|
||||
"type": "Number:Time",
|
||||
"unit": "hours",
|
||||
"stateDescription": {
|
||||
"pattern": "%.1f %unit%",
|
||||
"readOnly": true
|
||||
},
|
||||
"refresh": true,
|
||||
"transformation": "SecondsToHours",
|
||||
"ChannelGroup": "Status",
|
||||
|
@ -141,8 +152,11 @@
|
|||
"property": "speed",
|
||||
"friendlyName": "Motor Speed",
|
||||
"channel": "motorspeed",
|
||||
"channelType": "motorspeed",
|
||||
"type": "Number",
|
||||
"stateDescription": {
|
||||
"pattern": "%.0f rpm",
|
||||
"readOnly": true
|
||||
},
|
||||
"refresh": true,
|
||||
"ChannelGroup": "Status",
|
||||
"actions": []
|
||||
|
@ -170,7 +184,6 @@
|
|||
"property": "child_lock",
|
||||
"friendlyName": "Child Lock",
|
||||
"channel": "childlock",
|
||||
"channelType": "childlock",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"ChannelGroup": "Status",
|
||||
|
@ -179,6 +192,10 @@
|
|||
"command": "set_child_lock",
|
||||
"parameterType": "ONOFF"
|
||||
}
|
||||
],
|
||||
"category": "switch",
|
||||
"tags": [
|
||||
"Switch"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
|
@ -196,7 +196,7 @@ public class ReadmeHelper {
|
|||
String gr = "G_" + id;
|
||||
sw.write("note: Autogenerated example. Replace the id (" + id
|
||||
+ ") in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered.\n");
|
||||
sw.write("\n```java\n");
|
||||
sw.write("\n```\n");
|
||||
sw.write("Group " + gr + " \"" + device.getDescription() + "\" <status>\n");
|
||||
|
||||
for (MiIoBasicChannel ch : dev.getDevice().getChannels()) {
|
||||
|
|
Loading…
Reference in New Issue