mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-02-11 22:50:00 +01:00
* [miio] Allow for custom refresh commands Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
186 lines
3.7 KiB
JSON
186 lines
3.7 KiB
JSON
{
|
|
"deviceMapping": {
|
|
"id": [
|
|
"zhimi.humidifier.v1",
|
|
"zhimi.humidifier.ca1"
|
|
],
|
|
"channels": [
|
|
{
|
|
"property": "power",
|
|
"friendlyName": "Power",
|
|
"channel": "power",
|
|
"channelType": "power",
|
|
"type": "Switch",
|
|
"refresh": true,
|
|
"actions": [
|
|
{
|
|
"command": "set_power",
|
|
"parameterType": "ONOFF"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"property": "mode",
|
|
"friendlyName": "Mode",
|
|
"channel": "mode",
|
|
"channelType": "mode",
|
|
"type": "String",
|
|
"refresh": true,
|
|
"ChannelGroup": "actions",
|
|
"actions": [
|
|
{
|
|
"command": "set_mode",
|
|
"parameterType": "STRING"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"property": "humidity",
|
|
"friendlyName": "Humidity",
|
|
"channel": "humidity",
|
|
"channelType": "humidity",
|
|
"type": "Number",
|
|
"refresh": true,
|
|
"ChannelGroup": "Status",
|
|
"actions": []
|
|
},
|
|
{
|
|
"property": "limit_hum",
|
|
"friendlyName": "Humidity Set",
|
|
"channel": "setHumidity",
|
|
"channelType": "setHumidity",
|
|
"type": "Number",
|
|
"refresh": true,
|
|
"ChannelGroup": "Status",
|
|
"actions": [
|
|
{
|
|
"command": "set_limit_hum",
|
|
"parameterType": "NUMBER"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"property": "aqi",
|
|
"friendlyName": "Air Quality Index",
|
|
"channel": "aqi",
|
|
"channelType": "aqi",
|
|
"type": "Number",
|
|
"refresh": true,
|
|
"ChannelGroup": "Status",
|
|
"actions": []
|
|
},
|
|
{
|
|
"property": "trans_level",
|
|
"friendlyName": "Trans_level",
|
|
"channel": "translevel",
|
|
"channelType": "translevel",
|
|
"type": "Number",
|
|
"refresh": true,
|
|
"ChannelGroup": "Status",
|
|
"actions": []
|
|
},
|
|
{
|
|
"property": "led_b",
|
|
"friendlyName": "LED Brightness",
|
|
"channel": "bright",
|
|
"type": "Number",
|
|
"refresh": true,
|
|
"ChannelGroup": "actions",
|
|
"actions": [
|
|
{
|
|
"command": "set_led_b",
|
|
"parameterType": "NUMBER"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"property": "buzzer",
|
|
"friendlyName": "Buzzer Status",
|
|
"channel": "buzzer",
|
|
"channelType": "buzzer",
|
|
"type": "Switch",
|
|
"refresh": true,
|
|
"ChannelGroup": "actions",
|
|
"actions": [
|
|
{
|
|
"command": "set_buzzer",
|
|
"parameterType": "ONOFF"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"property": "depth",
|
|
"friendlyName": "Depth",
|
|
"channel": "depth",
|
|
"channelType": "depth",
|
|
"type": "Number",
|
|
"refresh": true,
|
|
"ChannelGroup": "Status",
|
|
"actions": []
|
|
},
|
|
{
|
|
"property": "dry",
|
|
"friendlyName": "Dry",
|
|
"channel": "dry",
|
|
"channelType": "dry",
|
|
"type": "Switch",
|
|
"refresh": true,
|
|
"ChannelGroup": "Status",
|
|
"actions": [
|
|
{
|
|
"command": "set_dry",
|
|
"parameterType": "ONOFF"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"property": "use_time",
|
|
"friendlyName": "Run Time",
|
|
"channel": "usedhours",
|
|
"channelType": "usedhours",
|
|
"type": "Number",
|
|
"refresh": true,
|
|
"transformation": "SecondsToHours",
|
|
"ChannelGroup": "Status",
|
|
"actions": []
|
|
},
|
|
{
|
|
"property": "speed",
|
|
"friendlyName": "Motor Speed",
|
|
"channel": "motorspeed",
|
|
"channelType": "motorspeed",
|
|
"type": "Number",
|
|
"refresh": true,
|
|
"ChannelGroup": "Status",
|
|
"actions": []
|
|
},
|
|
{
|
|
"property": "temp_dec",
|
|
"friendlyName": "Temperature",
|
|
"channel": "temperature",
|
|
"channelType": "temperature",
|
|
"type": "Number",
|
|
"refresh": true,
|
|
"transformation": "/10",
|
|
"ChannelGroup": "Status",
|
|
"actions": []
|
|
},
|
|
{
|
|
"property": "child_lock",
|
|
"friendlyName": "Child Lock",
|
|
"channel": "childlock",
|
|
"channelType": "childlock",
|
|
"type": "Switch",
|
|
"refresh": true,
|
|
"ChannelGroup": "Status",
|
|
"actions": [
|
|
{
|
|
"command": "set_child_lock",
|
|
"parameterType": "ONOFF"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|