mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-02-11 22:50:00 +01:00
* [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>
70 lines
1.4 KiB
JSON
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"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|