You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vacuum:
- platform: template
vacuums:
s10vacname:
friendly_name: "S10VacName"
value_template: >
{% set status = states('sensor.both_tasktype_DEVICE-ID') %}
{% if status == 'standBy' %}
docked
{% elif status == 'cleaning' %}
cleaning
{% elif status == 'paused' %}
paused
{% else %}
unknown
{% endif %}
battery_level_template: "{{ states('sensor.both_battery_DEVICE-ID') | int }}"
fan_speed_template: >
{% set fan_level = states('number.fanlevel_1_cmd_DEVICE-ID') %}
{% set water_level = states('number.waterlevel_1_cmd_DEVICE-ID') %}
{% set mode = states('select.action_1_cmd_DEVICE-ID') %}
{% set fan_mapping = {'1': 'Low', '2': 'Medium', '3': 'High', '4': 'MAX'} %}
{% set water_mapping = {'1': 'Wet', '2': 'Soaked'} %}
{% set fan_label = fan_mapping.get(fan_level, 'Unknown') %}
{% if mode == 'sweep' %}
{% set water_label = 'Dry' %}
{% else %}
{% set water_label = water_mapping.get(water_level, 'Unknown') %}
{% endif %}
{{ fan_label }} & {{ water_label }}
set_fan_speed:
service: script.set_s10vacname_fan_speed
data:
fan_speed: "{{ fan_speed }}"
fan_speeds:
- Low & Dry
- Low & Wet
- Low & Soaked
- Medium & Dry
- Medium & Wet
- Medium & Soaked
- High & Dry
- High & Wet
- High & Soaked
- MAX & Dry
- MAX & Wet
- MAX & Soaked
start:
service: button.press
target:
entity_id: button.btn_1_cmd_DEVICE-ID
pause:
service: button.press
target:
entity_id: button.btn_3_cmd_DEVICE-ID
stop:
service: button.press
target:
entity_id: button.btn_3_cmd_DEVICE-ID
return_to_base:
service: button.press
target:
entity_id: button.btn_4_cmd_DEVICE-ID
and a script to add to your script.yaml file to translate the preset into the actual mode the vacumm will be set to
again, don't forget to match DEVICE-ID and S10Vacname to yours
There hasn't been any activity on this issue recently. This issue has now been marked as stale and will be closed if no further activity occurs. Please, update to the latest version and check if that solves the issue.
Thank you for your contributions!
Wanted to share what i needed to do in order to make the card compatible with the Switchbot S10 vacumm similarely to issue #797
Prerequesites : S10 integrated in HomeAssistant using https://github.com/hsakoh/switchbot-mqtt
don't forget to match DEVICE-ID and S10Vacname to yours
configuration.yaml
and a script to add to your script.yaml file to translate the preset into the actual mode the vacumm will be set to
again, don't forget to match DEVICE-ID and S10Vacname to yours
scripts.yaml
The text was updated successfully, but these errors were encountered: