Skip to content

Commit

Permalink
💡 add miio2miot for yeelight.light.lamp15 (#2197)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjq19940331 authored Dec 26, 2024
1 parent 45ff676 commit 9f30459
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
13 changes: 13 additions & 0 deletions custom_components/xiaomi_miot/core/miio2miot_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2291,6 +2291,19 @@ def cbk(prop, params, props, **kwargs):
'yeelink.light.lamp7': 'yeelink.light.ceiling16',
'yeelink.light.lamp9': 'yeelink.light.ceiling6',
'yeelink.light.lamp10': 'yeelink.light.bslamp3',
'yeelink.light.lamp15': {
'miio_specs': {
'prop.2.1': {'prop': 'power', 'setter': True, 'format': 'onoff'},
'prop.2.2': {'prop': 'bright', 'setter': True},
'prop.2.3': {'prop': 'ct', 'setter': 'set_ct_abx', 'set_template': '{{ [value,"smooth",500] }}'},
'prop.2.5': {'prop': 'color_mode'},
'prop.3.6': {'prop': 'bg_power', 'setter': 'bg_set_power', 'format': 'onoff'},
'prop.200.201': {'prop': 'bg_power', 'setter': 'bg_set_power', 'format': 'onoff'},
'prop.200.202': {'prop': 'bg_bright', 'setter': 'bg_set_bright'},
'prop.200.203': {'prop': 'bg_ct', 'setter': 'bg_set_ct_abx', 'set_template': '{{ [value,"smooth",500] }}'},
'prop.200.204': {'prop': 'bg_rgb', 'setter': 'bg_set_rgb'},
},
},
'yeelink.light.mono1': {
'miio_specs': {
'prop.2.1': {'prop': 'power', 'setter': True, 'format': 'onoff'},
Expand Down
33 changes: 33 additions & 0 deletions custom_components/xiaomi_miot/core/miot_specs_extend.json
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,39 @@
],
"yeelink.light.panel1": "yeelink.light.ceiling1",
"yeelink.light.panel3": "yeelink.light.ceiling1",
"yeelink.light.lamp15": [
{
"iid": 200,
"type": "urn:miot-spec-v2:service:ambient-light",
"description": "Ambient Light",
"properties": [
{
"iid": 201,
"type": "urn:miot-spec-v2:property:on",
"description": "Switch Status",
"format": "bool",
"access": ["read", "write"]
},
{
"iid": 202,
"type": "urn:miot-spec-v2:property:brightness",
"format": "uint8",
"access": ["read", "write"],
"unit": "percentage",
"value-range": [1, 100, 1]
},
{
"iid": 204,
"type": "urn:miot-spec-v2:property:color",
"description": "Color",
"format": "uint32",
"access": ["read", "write"],
"unit": "rgb",
"value-range": [1, 16777215, 1]
}
]
}
],

"yunmi.waterpuri.lx5": [
{
Expand Down

0 comments on commit 9f30459

Please sign in to comment.