1
0
Fork 0

Home Assistant Git Exporter

main
31c0fe9c6dbd74bcdde92e1d2aaa03e1d272f75f 2022-05-27 09:27:40 +10:00
parent 839c41a9ab
commit 68ee16baf2
1 changed files with 3 additions and 3 deletions

View File

@ -46,14 +46,14 @@ automation:
- sensor.ri_s_phone
from: "bedroom"
variables:
toggle: input_boolean_ri_in_bed
toggle: input_boolean.ri_in_bed
for:
minutes: 1
- platform: state
entity_id:
- sensor.ri_s_phone
variables:
toggle: input_boolean_bo_in_bed
toggle: input_boolean.bo_in_bed
from: "bedroom"
for:
minutes: 1
@ -86,7 +86,7 @@ automation:
- alias: "plausible sleep time"
condition: time
after: "21:00:00"
before: "10:00:00"
before: "08:30:00"
- "{{ trigger.to_state.state not in ['unknown', 'unavailable'] }}"
- "{{ not is_state(toggle, target_state) }}"
- "{{ is_state(person, 'home') }}"