openhab-addons/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airpurifier.m1.json
Marcel 998d11455c
[miio] Allow for custom refresh commands (#8796)
* [miio] Allow for custom refresh commands

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-10-21 14:01:22 -07:00

212 lines
4.4 KiB
JSON

{
"deviceMapping": {
"id": [
"zhimi.airpurifier.m1",
"zhimi.airpurifier.m2",
"zhimi.airpurifier.v1",
"zhimi.airpurifier.v2",
"zhimi.airpurifier.v3",
"zhimi.airpurifier.v5",
"zhimi.airpurifier.ma1",
"zhimi.airpurifier.sa1",
"zhimi.airpurifier.sa2",
"zhimi.airpurifier.mb1",
"zhimi.airpurifier.mc1",
"zhimi.airpurifier.mc2"
],
"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": "aqi",
"friendlyName": "Air Quality Index",
"channel": "aqi",
"channelType": "aqi",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "average_aqi",
"friendlyName": "Average Air Quality Index",
"channel": "averageaqi",
"channelType": "averageaqi",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "led",
"friendlyName": "LED Status",
"channel": "led",
"channelType": "led",
"type": "Switch",
"refresh": true,
"ChannelGroup": "actions",
"actions": [
{
"command": "set_led",
"parameterType": "ONOFF"
}
]
},
{
"property": "buzzer",
"friendlyName": "Buzzer Status",
"channel": "buzzer",
"channelType": "buzzer",
"type": "Switch",
"refresh": true,
"ChannelGroup": "actions",
"actions": [
{
"command": "set_buzzer",
"parameterType": "ONOFF"
}
]
},
{
"property": "f1_hour",
"friendlyName": "Filter Max Life",
"channel": "filtermaxlife",
"channelType": "filtermaxlife",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "f1_hour_used",
"friendlyName": "Filter Hours used",
"channel": "filterhours",
"channelType": "filterhours",
"type": "Number",
"refresh": true,
"transformation": "SecondsToHours",
"ChannelGroup": "Status",
"actions": []
},
{
"property": "use_time",
"friendlyName": "Run Time",
"channel": "usedhours",
"channelType": "usedhours",
"type": "Number",
"refresh": true,
"transformation": "SecondsToHours",
"ChannelGroup": "Status",
"actions": []
},
{
"property": "motor1_speed",
"friendlyName": "Motor Speed",
"channel": "motorspeed",
"channelType": "motorspeed",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "filter1_life",
"friendlyName": "Filter Life",
"channel": "filterlife",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "favorite_level",
"friendlyName": "Favorite Level",
"channel": "favoritelevel",
"channelType": "favoritelevel",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": [
{
"command": "set_level_favorite",
"parameterType": "NUMBER"
}
]
},
{
"property": "temp_dec",
"friendlyName": "Temperature",
"channel": "temperature",
"channelType": "temperature",
"type": "Number",
"refresh": true,
"transformation": "/10",
"ChannelGroup": "Status",
"actions": []
},
{
"property": "purify_volume",
"friendlyName": "Purivied Volume",
"channel": "purifyvolume",
"channelType": "purifyvolume",
"type": "Number",
"refresh": true,
"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"
}
]
}
]
}
}