Skip to content

Commit

Permalink
support for xjx.toilet.relax flush
Browse files Browse the repository at this point in the history
  • Loading branch information
nesror authored Feb 19, 2024
1 parent 7d3fd7c commit 60e5096
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/xiaomi_miot/core/miio2miot_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1803,6 +1803,7 @@ def cbk(prop, params, props, **kwargs):
'prop.3.1': {'prop': 'status_seatheat', 'setter': 'work_seatheat', 'set_template': '{{ [value|int] }}'},
'prop.3.2': {'prop': 'seat_temp', 'setter': 'set_seat_temp'},
'prop.4.1': {'prop': 'status_led', 'setter': 'work_night_led', 'set_template': '{{ [value|int] }}'},
'action.2.101': {'setter': 'flush_on'},
},
},

Expand Down
15 changes: 15 additions & 0 deletions custom_components/xiaomi_miot/core/miot_specs_extend.json
Original file line number Diff line number Diff line change
Expand Up @@ -1622,6 +1622,21 @@
}
]
}
],

"xjx.toilet.relax": [
{
"iid": 2,
"actions": [
{
"iid": 101,
"type": "urn:miot-spec-v2:action:flush-on",
"description": "Flush",
"in": [],
"out": []
}
]
}
]

}

0 comments on commit 60e5096

Please sign in to comment.