[miio] Add several Philips ceiling lights (#8681)
Adding philips.light.bceiling1 philips.light.bceiling2 philips.light.lnblight1 philips.light.lnblight2 philips.light.lnlrlight philips.light.lrceiling Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
@@ -96,6 +96,12 @@ public enum MiIoDevices {
|
||||
PHILIPS_CANDLE("philips.light.candle", "PHILIPS Zhirui Smart LED Bulb E14 Candle Lamp", THING_TYPE_BASIC),
|
||||
PHILIPS_DOWN("philips.light.downlight", "Xiaomi Philips Downlight", THING_TYPE_BASIC),
|
||||
PHILIPS_MOON("philips.light.moonlight", "Xiaomi Philips ZhiRui bedside lamp", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_BCEILING1("philips.light.bceiling1", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_BCEILING2("philips.light.bceiling2", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_LNBLIGHT1("philips.light.lnblight1", "Philips Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_LNBLIGHT2("philips.light.lnblight2", "Philips Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_LNLRLIGHT("philips.light.lnlrlight", "Philips Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_LRCEILING("philips.light.lrceiling", "Philips Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_CANDLE2("philips.light.candle2", "Xiaomi PHILIPS Zhirui Smart LED Bulb E14 Candle Lamp White Crystal",
|
||||
THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_MONO1("philips.light.mono1", "philips.light.mono1", THING_TYPE_BASIC),
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"deviceMapping": {
|
||||
"id": [
|
||||
"philips.light.bceiling1",
|
||||
"philips.light.bceiling2",
|
||||
"philips.light.lnblight1",
|
||||
"philips.light.lnblight2",
|
||||
"philips.light.lnlrlight",
|
||||
"philips.light.lrceiling"
|
||||
],
|
||||
"channels": [
|
||||
{
|
||||
"property": "power",
|
||||
"friendlyName": "Power",
|
||||
"channel": "power",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_power",
|
||||
"parameterType": "ONOFF"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "bright",
|
||||
"friendlyName": "Brightness",
|
||||
"channel": "brightness",
|
||||
"type": "Dimmer",
|
||||
"refresh": true,
|
||||
"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",
|
||||
"type": "Dimmer",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_cct",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "snm",
|
||||
"friendlyName": "Scene",
|
||||
"channel": "scene",
|
||||
"type": "Number",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "apply_fixed_scene",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "dv",
|
||||
"friendlyName": "DV",
|
||||
"channel": "dv",
|
||||
"type": "Number",
|
||||
"refresh": true,
|
||||
"ChannelGroup": "actions",
|
||||
"actions": []
|
||||
},
|
||||
{
|
||||
"property": "sw",
|
||||
"friendlyName": "Switch",
|
||||
"channel": "sw",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_scene_switch",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "bl",
|
||||
"friendlyName": "Night Light",
|
||||
"channel": "bl",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "enable_bl",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "ms",
|
||||
"friendlyName": "MiBand Notifications",
|
||||
"channel": "ms",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "enable_mibs",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "ac",
|
||||
"friendlyName": "Auto Ambiance",
|
||||
"channel": "ac",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "enable_ac",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "",
|
||||
"friendlyName": "Delay Off",
|
||||
"channel": "delayoff",
|
||||
"type": "Switch",
|
||||
"refresh": false,
|
||||
"ChannelGroup": "actions",
|
||||
"actions": [
|
||||
{
|
||||
"command": "delay_off",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "mb",
|
||||
"friendlyName": "MiBand",
|
||||
"channel": "mb",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "enable_mb",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"experimental":true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user