Skip to content

Commit

Permalink
🚽 add flush button for xjx.toilet.relax (#1480)
Browse files Browse the repository at this point in the history
  • Loading branch information
nesror committed Feb 22, 2024
1 parent 6044b89 commit 139be19
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,9 @@
'button_actions': 'wake_up,play_music,tv_switchon,stop_alarm',
'text_actions': 'play_text,execute_text_directive',
},
'xjx.toilet.relax': {
'button_actions': 'flush_on',
},
'xjx.toilet.relaxp': {
'sensor_properties': 'status',
'switch_properties': 'status_seatheat,status_led,auto_led,switch_bubble,status_seat,status_cover,'
Expand Down
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 139be19

Please sign in to comment.