Skip to content

Commit

Permalink
💡 add miio2miot for yeelink.light.lamp1/qmi.powerstrip.v1 (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
uswong authored Nov 23, 2022
1 parent 3517f27 commit 150fca1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion custom_components/xiaomi_miot/core/miio2miot_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1709,6 +1709,14 @@ def cbk(prop, params, props, **kwargs):
},
'yeelink.light.ceiling23': 'yeelink.light.ceiling22',
'yeelink.light.ceiling24': 'yeelink.light.ceiling16',
'yeelink.light.lamp1': {
'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.4': {'prop': 'color_mode'},
},
},
'yeelink.light.lamp2': 'yeelink.light.ceiling16',
'yeelink.light.lamp3': {
'miio_specs': {
Expand Down Expand Up @@ -2212,7 +2220,11 @@ def cbk(prop, params, props, **kwargs):
'prop.5.1': {'prop': 'child_lock', 'setter': True, 'format': 'onoff'},
},
},

'qmi.powerstrip.v1': {
'miio_specs': {
'prop.2.1': {'prop': 'power', 'setter': True, 'format': 'onoff'},
},
},
'zimi.powerstrip.v2': {
'miio_props': ['current', 'mode', 'power_price'],
'miio_specs': {
Expand Down

0 comments on commit 150fca1

Please # to comment.