В
Size: a a a
В
VT
VT
А
А
VT
В
trigger:
- platform: state
to: 'on'
entity_id: binary_sensor.S0x00124b00226974bb_contact
condition:
- condition: state
state: 'on'
entity_id: binary_sensor.S0x00124b002267ec91_occupancy
- condition: time
after: '10:00:00'
before: '21:00:00'
- condition: or
conditions:
- condition: template
value_template: >-
{{ states("person.nastia") == ("home") and ((as_timestamp(now()) -
as_timestamp(states.person.nastia.last_changed)) / 60) > 10 }}
- condition: template
value_template: '{{ states("person.nastia") == ("not_home") }}'
- condition: or
conditions:
- condition: template
value_template: >-
{{ states("binary_sensor.redminote9pro") == ("on") and
((as_timestamp(now()) -
as_timestamp(states.binary_sensor.redminote9pro.last_changed)) / 60) <
10 }}
- condition: template
value_template: >-
{{ states("person.vladimir") == ("home") and ((as_timestamp(now()) -
as_timestamp(states.person.vladimir.last_changed)) / 60) < 10 }}
А
А
VT
А
М
VT
DD
A
DD
A
LI
A