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>
109 lines
2.0 KiB
JSON
109 lines
2.0 KiB
JSON
{
|
|
"deviceMapping": {
|
|
"id": [
|
|
"philips.light.ceiling",
|
|
"philips.light.zyceiling"
|
|
],
|
|
"channels": [
|
|
{
|
|
"property": "power",
|
|
"friendlyName": "Power",
|
|
"channel": "power",
|
|
"channelType": "power",
|
|
"type": "Switch",
|
|
"refresh": true,
|
|
"ChannelGroup": "",
|
|
"actions": [
|
|
{
|
|
"command": "set_power",
|
|
"parameterType": "ONOFF"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"property": "bright",
|
|
"friendlyName": "Brightness",
|
|
"channel": "brightness",
|
|
"channelType": "brightness",
|
|
"type": "Dimmer",
|
|
"refresh": true,
|
|
"ChannelGroup": "actions",
|
|
"actions": [
|
|
{
|
|
"command": "set_bright",
|
|
"parameterType": "NUMBER",
|
|
"condition": {
|
|
"name": "BrightnessExisting"
|
|
}
|
|
},
|
|
{
|
|
"command": "set_power",
|
|
"parameterType": "ONOFF",
|
|
"condition": {
|
|
"name": "BrightnessOnOff"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"property": "cct",
|
|
"friendlyName": "Correlated Color Temperature",
|
|
"channel": "cct",
|
|
"channelType": "cct",
|
|
"type": "Dimmer",
|
|
"refresh": true,
|
|
"ChannelGroup": "actions",
|
|
"actions": [
|
|
{
|
|
"command": "set_cct",
|
|
"parameterType": "NUMBER"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"property": "snm",
|
|
"friendlyName": "Scene",
|
|
"channel": "scene",
|
|
"channelType": "scene",
|
|
"type": "Number",
|
|
"refresh": true,
|
|
"ChannelGroup": "actions",
|
|
"actions": [
|
|
{
|
|
"command": "apply_fixed_scene",
|
|
"parameterType": "NUMBER"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"property": "",
|
|
"friendlyName": "Switch Scene",
|
|
"channel": "switchscene",
|
|
"type": "Switch",
|
|
"refresh": false,
|
|
"ChannelGroup": "actions",
|
|
"actions": [
|
|
{
|
|
"command": "switch_the_scene",
|
|
"parameterType": "EMPTY"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"property": "",
|
|
"friendlyName": "Toggle",
|
|
"channel": "toggle",
|
|
"type": "Switch",
|
|
"refresh": false,
|
|
"ChannelGroup": "actions",
|
|
"actions": [
|
|
{
|
|
"command": "toggle",
|
|
"parameterType": "EMPTY"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|