openhab-addons/bundles/org.openhab.binding.miio/src/main/resources/database/zhimi.airmonitor.v1.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

95 lines
1.8 KiB
JSON

{
"deviceMapping": {
"id": [
"zhimi.airmonitor.v1"
],
"channels": [
{
"property": "power",
"friendlyName": "Power",
"channel": "power",
"channelType": "power",
"type": "Switch",
"refresh": true,
"ChannelGroup": "",
"actions": [
{
"command": "set_power",
"parameterType": "ONOFF"
}
]
},
{
"property": "aqi",
"friendlyName": "Air Quality Index",
"channel": "aqi",
"channelType": "aqi",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "battery",
"friendlyName": "Battery",
"channel": "battery",
"channelType": "system:battery-level",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "usb_state",
"friendlyName": "USB State",
"channel": "usb_state",
"type": "Switch",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "time_state",
"friendlyName": "Time State",
"channel": "time_state",
"type": "Switch",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "night_state",
"friendlyName": "Night State",
"channel": "night_state",
"type": "Switch",
"refresh": true,
"ChannelGroup": "",
"actions": [
{
"command": "set_night_state",
"parameterType": "ONOFF"
}
]
},
{
"property": "night_beg_time",
"friendlyName": "Night Begin Time",
"channel": "night_begin",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
},
{
"property": "night_end_time",
"friendlyName": "Night End Time",
"channel": "night_end",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
}
]
}
}