1
0
ansible-home-assistant/roles/scripts/files/70.vacuum.yaml

55 lines
1.7 KiB
YAML
Raw Normal View History

vacuum_today:
alias: Vacuum only once
sequence:
- choose:
- conditions:
- condition: state
2022-04-29 21:51:42 +00:00
entity_id: input_boolean.vacuum_vacuumed_today
state: 'off'
sequence:
- choose:
- conditions:
2022-04-27 21:23:05 +00:00
- condition: or
conditions:
- condition: state
2022-04-30 16:05:15 +00:00
entity_id: alarm_control_panel.home_alarm
2022-04-27 21:23:05 +00:00
state: 'armed_away'
- condition: state
2022-04-30 16:05:15 +00:00
entity_id: alarm_control_panel.home_alarm
2022-04-27 21:23:05 +00:00
state: 'arming'
sequence:
2024-07-31 17:59:47 +00:00
- service: script.alarm_disarm
- service: script.alarm_arm_stay
- service: vacuum.start
2022-04-22 23:38:48 +00:00
entity_id: vacuum.valetudo_valetudos5
2022-01-04 23:20:17 +00:00
vacuum_goto_bin:
alias: Vacuum go to bin
sequence:
2022-04-29 17:55:03 +00:00
- service: mqtt.publish
2022-01-04 23:20:17 +00:00
data:
2022-04-29 17:55:03 +00:00
topic: valetudo/ValetudoS5/GoToLocationCapability/go/set
2022-07-10 20:26:16 +00:00
payload: '{"coordinates":{"x":2473,"y":2780}}'
2022-04-29 17:55:03 +00:00
vacuum_clean_segments:
alias: Vacuum clean segments
sequence:
- service: script.turn_on
2022-01-04 23:20:17 +00:00
target:
2022-04-29 17:55:03 +00:00
entity_id: script.vacuum_clean_segments_message
data:
variables:
segments: '{{expand("group.vacuum_rooms") | selectattr("state","eq","on")
| map(attribute="attributes.room_id") | list | to_json}}'
mode: single
icon: mdi:arrow-right
vacuum_clean_segments_message:
alias: Vacuum clean segments message
sequence:
- service: mqtt.publish
data:
topic: valetudo/ValetudoS5/MapSegmentationCapability/clean/set
payload_template: '{"segment_ids": {{segments}}}'
mode: single