openhab-addons/bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3fw.json
Marcel 918408eac1
[miio] Allow for quantity Type (#8756)
* [miio] Allow for quantity Type in the basic handler

This extends the miio:basic handler with the option to define channels
with QuantityType e.g. to use number:temperature

* [miio] add missing breaks

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
2020-11-09 08:39:50 -08:00

70 lines
1.4 KiB
JSON

{
"deviceMapping": {
"id": [
"chuangmi.plug.v3",
"chuangmi.plug.v3fw",
"chuangmi.plug.hmi206",
"chuangmi.plug.hmi208"
],
"channels": [
{
"property": "power",
"friendlyName": "Power",
"channel": "power",
"channelType": "power",
"type": "Switch",
"refresh": true,
"ChannelGroup": "",
"actions": [
{
"command": "set_power",
"parameterType": "ONOFF"
}
],
"readmeComment": "If this channel does not respond to on/off replace the model with chuangmi.plug.v3old in the config or upgrade firmware"
},
{
"property": "usb_on",
"friendlyName": "USB",
"channel": "usb",
"channelType": "usb",
"type": "Switch",
"refresh": true,
"ChannelGroup": "actions",
"actions": [
{
"command": "set_usb_*",
"parameterType": "ONOFFPARA"
}
]
},
{
"property": "temperature",
"friendlyName": "Temperature",
"channel": "temperature",
"channelType": "temperatureC",
"unit": "CELCIUS",
"type": "Number:Temperature",
"refresh": true,
"ChannelGroup": "",
"actions": []
},
{
"property": "wifi_led",
"friendlyName": "Wifi LED",
"channel": "led",
"channelType": "led",
"type": "Switch",
"refresh": true,
"ChannelGroup": "actions",
"actions": [
{
"command": "set_wifi_led",
"parameterType": "ONOFF"
}
]
}
]
}
}