Refine vacuum automation conditions for improved functionality

- Updated vacuum.yaml to enhance the logic for vacuum activation conditions, allowing for on-demand cleaning when the family is not home or the input boolean is activated.
- Replaced the previous state condition with a template condition for better flexibility in automation triggers.
pull/1542/head
Carlo Costanzo 2 weeks ago
parent a13b2da2aa
commit 77cf3e971e

@ -160,12 +160,12 @@ automation:
entity_id: input_boolean.l10s_vacuum_on_demand
to: 'on'
condition:
- condition: state
entity_id: group.family
state: 'not_home'
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
- condition: template
value_template: >
{{ is_state('input_boolean.l10s_vacuum_on_demand', 'on') or is_state('group.family', 'not_home') }}
- condition: template
value_template: "{{ not is_state('vacuum.l10s_vacuum', 'cleaning') }}"
action:

Loading…
Cancel
Save

Powered by TurnKey Linux.