mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-12-03 11:31:42 +00:00
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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user