mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
Use condition shorthand notations
This commit is contained in:
@@ -119,8 +119,7 @@ automation:
|
||||
- platform: state
|
||||
entity_id: group.bedroom_windows
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: "{{ now().hour >= states('input_datetime.alarm_time')[0:2]|int }}"
|
||||
- "{{ now().hour >= states('input_datetime.alarm_time')[0:2]|int }}"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
|
||||
Reference in New Issue
Block a user