openhab-addons/bundles/org.openhab.binding.miio/src/main/resources/database/philips.light.ceiling.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

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"
}
]
}
]
}
}