Skip to content

Commit

Permalink
🍃 add miio2miot for airdog.airpurifier.x5/x7/x7sm (#1842)
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Sep 10, 2024
1 parent bae6065 commit 7aa20a2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions custom_components/xiaomi_miot/core/miio2miot_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,39 @@ def cbk(prop, params, props, **kwargs):
},
},

'airdog.airpurifier.x5': {
'without_props': True,
'ignore_result': True,
'miio_commands': [
{
'method': 'get_prop',
'values': ['power', 'mode', 'speed', 'lock', 'clean', 'pm25'],
},
],
'miio_specs': {
'prop.2.1': {'prop': 'power', 'setter': True, 'format': 'onoff', 'set_template': '{{ [value|int] }}'},
'prop.2.2': {'prop': 'speed', 'setter': 'set_wind', 'set_template': '{{ [props.mode, value|int] }}'},
'prop.2.3': {'prop': 'mode', 'setter': 'set_wind', 'set_template': '{{ [value|int, props.speed] }}'},
'prop.3.1': {'prop': 'pm25'},
'prop.4.1': {
'prop': 'lock', 'setter': True,
'template': '{{ value in ["lock"] }}',
'set_template': '{{ [value|int] }}',
},
},
},
'airdog.airpurifier.x7': 'airdog.airpurifier.x5',
'airdog.airpurifier.x7sm': {
'extend_model': 'airdog.airpurifier.x5',
'entity_attrs': ['hcho'],
'miio_commands': [
{
'method': 'get_prop',
'values': ['power', 'mode', 'speed', 'lock', 'clean', 'pm25', 'hcho'],
},
],
},

'bj352.waterpuri.s100cm': {
'without_props': True,
'entity_attrs': ['PureWasteRatio', 'HeatingStatus', 'TotalPureWater', 'TotalWasteWater', 'error_code'],
Expand Down

0 comments on commit 7aa20a2

Please # to comment.