Skip to content

Commit

Permalink
💡 add miio2miot for philips.light.sread2 (#840)
Browse files Browse the repository at this point in the history
only support power and bright
  • Loading branch information
nesror authored Oct 10, 2022
1 parent 06d6ab6 commit 15c2129
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions custom_components/xiaomi_miot/core/miio2miot_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,22 @@ def cbk(prop, params, props, **kwargs):
'prop.2.2': {'prop': 'bright', 'setter': True},
},
},
'philips.light.sread2': {
'miio_specs': {
'prop.2.1': {'prop': 'power', 'setter': True, 'format': 'onoff'},
'prop.2.2': {'prop': 'bright', 'setter': True},
'prop.2.3': {'prop': 'scene_num', 'setter': True, 'dict': {
'None': 0,
'Child Reading': 1,
'Adult Reading': 2,
'Computer': 3,
}},
'prop.3.2': {'prop': 'ambstatus', 'setter': True, 'format': 'onoff'},
'prop.3.3': {'prop': 'ambvalue', 'setter': True},
'prop.3.4': {'prop': 'notifystatus', 'setter': True, 'format': 'onoff'},
'prop.3.5': {'prop': 'eyecare', 'setter': True, 'format': 'onoff'},
},
},
'philips.light.bulb': {
'miio_specs': {
'prop.2.1': {'prop': 'power', 'setter': True, 'format': 'onoff'},
Expand Down

0 comments on commit 15c2129

Please sign in to comment.