[miio] Miio philips miot lights (#8699)
* [miio] add Philips miot ceiling lights adding models philips.light.dlight philips.light.mceil philips.light.mceilm philips.light.mceils philips.light.obceil philips.light.obceim philips.light.obceis philips.light.xzceil philips.light.xzceim philips.light.xzceis philips.light.sceil philips.light.sceilm philips.light.sceils * [miio] change name downlight Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
@@ -105,6 +105,19 @@ public enum MiIoDevices {
|
||||
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),
|
||||
PHILIPS_LIGHT_DLIGHT("philips.light.dlight", "Philips Down Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_MCEIL("philips.light.mceil", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_MCEILM("philips.light.mceilm", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_MCEILS("philips.light.mceils", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_OBCEIL("philips.light.obceil", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_OBCEIM("philips.light.obceim", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_OBCEIS("philips.light.obceis", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_SCEIL("philips.light.sceil", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_SCEILM("philips.light.sceilm", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_SCEILS("philips.light.sceils", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_XZCEIL("philips.light.xzceil", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_XZCEIM("philips.light.xzceim", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_XZCEIS("philips.light.xzceis", "Philips Ceiling Light", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_VIRTUAL("philips.light.virtual", "philips.light.virtual", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_ZYSREAD("philips.light.zysread", "philips.light.zysread", THING_TYPE_BASIC),
|
||||
PHILIPS_LIGHT_ZYSTRIP("philips.light.zystrip", "philips.light.zystrip", THING_TYPE_BASIC),
|
||||
|
||||
@@ -0,0 +1,179 @@
|
||||
{
|
||||
"deviceMapping": {
|
||||
"id": [
|
||||
"philips.light.dlight",
|
||||
"philips.light.mceil",
|
||||
"philips.light.mceilm",
|
||||
"philips.light.mceils",
|
||||
"philips.light.obceil",
|
||||
"philips.light.obceim",
|
||||
"philips.light.obceis",
|
||||
"philips.light.sceil",
|
||||
"philips.light.sceilm",
|
||||
"philips.light.sceils",
|
||||
"philips.light.xzceil",
|
||||
"philips.light.xzceim",
|
||||
"philips.light.xzceis"
|
||||
],
|
||||
"propertyMethod": "get_properties",
|
||||
"maxProperties": 4,
|
||||
"channels": [
|
||||
{
|
||||
"property": "on",
|
||||
"siid": 2,
|
||||
"piid": 1,
|
||||
"friendlyName": "Power",
|
||||
"channel": "on",
|
||||
"channelType": "miot_bool",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "ONOFFBOOL"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "mode",
|
||||
"siid": 2,
|
||||
"piid": 2,
|
||||
"friendlyName": "Mode",
|
||||
"channel": "mode",
|
||||
"channelType": "miot_uint8",
|
||||
"type": "Number",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "brightness",
|
||||
"siid": 2,
|
||||
"piid": 3,
|
||||
"friendlyName": "Brightness",
|
||||
"channel": "brightness",
|
||||
"channelType": "miot_uint8",
|
||||
"type": "Number",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "color-temperature",
|
||||
"siid": 2,
|
||||
"piid": 4,
|
||||
"friendlyName": "Color Temperature",
|
||||
"channel": "cct",
|
||||
"channelType": "miot_uint32",
|
||||
"type": "Number",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "STRING"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "dvalue",
|
||||
"siid": 3,
|
||||
"piid": 1,
|
||||
"friendlyName": "Delayed Turn-off",
|
||||
"channel": "dv",
|
||||
"channelType": "miot_uint16",
|
||||
"type": "Number",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "STRING"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "wall-scene-en",
|
||||
"siid": 3,
|
||||
"piid": 2,
|
||||
"friendlyName": "Wall Scene Enable",
|
||||
"channel": "WallSceneEn",
|
||||
"channelType": "miot_bool",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "ONOFFBOOL"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "wall-scene",
|
||||
"siid": 3,
|
||||
"piid": 3,
|
||||
"friendlyName": "Wall Scene",
|
||||
"channel": "WallScene",
|
||||
"channelType": "miot_string",
|
||||
"type": "String",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "STRING"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "auto-cct",
|
||||
"siid": 3,
|
||||
"piid": 4,
|
||||
"friendlyName": "Auto CCT",
|
||||
"channel": "autoCct",
|
||||
"channelType": "miot_string",
|
||||
"type": "String",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "STRING"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "dimming-period",
|
||||
"siid": 3,
|
||||
"piid": 6,
|
||||
"friendlyName": "Dimming Period",
|
||||
"channel": "dimmingPeriod",
|
||||
"channelType": "miot_uint16",
|
||||
"type": "Number",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "STRING"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "miband-status",
|
||||
"siid": 3,
|
||||
"piid": 12,
|
||||
"friendlyName": "Mi Band Status",
|
||||
"channel": "MibandStatus",
|
||||
"channelType": "miot_string",
|
||||
"type": "String",
|
||||
"refresh": true,
|
||||
"actions": []
|
||||
}
|
||||
],
|
||||
"experimental": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user