DD
Size: a a a
DD
И
И
И
DD
homeassistant:
whitelist_external_dirs:
- '/home/homeassistant/backups'
- '/home/pi/'
DD
Аf
IB
Аf
Аf
DD
- alias: 'Dver_closed'
initial_state: "on"
hide_entity: True
trigger:
- platform: state
entity_id: binary_sensor.datchik_dveri_dver
from: 'on'
to: 'off'
action:
- service: notify.telegram
data_template:
message: "\U0001F6AA Дверь закрыта {{ now().strftime('%H:%M') }}, была открыта {{ (as_timestamp(now())| round(0) - as_timestamp(states.timer.open_door.last_changed)| int)| timestamp_custom('%H:%M:%S', 0) }}"
- service: timer.cancel
entity_id: timer.open_door
- alias: 'Dver_open'
initial_state: "on"
hide_entity: True
trigger:
- platform: state
entity_id: binary_sensor.datchik_dveri_dver
from: 'off'
to: 'on'
condition:
- condition: time
weekday:
- sat
- sun
action:
- service: notify.telegram
data_template:
message: "\U0001F6AA Дверь открыта {{ now().strftime('%H:%M') }} "
Аf
- alias: 'Dver_closed'
initial_state: "on"
hide_entity: True
trigger:
- platform: state
entity_id: binary_sensor.datchik_dveri_dver
from: 'on'
to: 'off'
action:
- service: notify.telegram
data_template:
message: "\U0001F6AA Дверь закрыта {{ now().strftime('%H:%M') }}, была открыта {{ (as_timestamp(now())| round(0) - as_timestamp(states.timer.open_door.last_changed)| int)| timestamp_custom('%H:%M:%S', 0) }}"
- service: timer.cancel
entity_id: timer.open_door
- alias: 'Dver_open'
initial_state: "on"
hide_entity: True
trigger:
- platform: state
entity_id: binary_sensor.datchik_dveri_dver
from: 'off'
to: 'on'
condition:
- condition: time
weekday:
- sat
- sun
action:
- service: notify.telegram
data_template:
message: "\U0001F6AA Дверь открыта {{ now().strftime('%H:%M') }} "
DD
- alias: 'Dver_closed'
initial_state: "on"
hide_entity: True
trigger:
- platform: state
entity_id: binary_sensor.datchik_dveri_dver
from: 'on'
to: 'off'
action:
- service: notify.telegram
data_template:
message: "\U0001F6AA Дверь закрыта {{ now().strftime('%H:%M') }}, была открыта {{ (as_timestamp(now())| round(0) - as_timestamp(states.timer.open_door.last_changed)| int)| timestamp_custom('%H:%M:%S', 0) }}"
- service: timer.cancel
entity_id: timer.open_door
- alias: 'Dver_open'
initial_state: "on"
hide_entity: True
trigger:
- platform: state
entity_id: binary_sensor.datchik_dveri_dver
from: 'off'
to: 'on'
condition:
- condition: time
weekday:
- sat
- sun
action:
- service: notify.telegram
data_template:
message: "\U0001F6AA Дверь открыта {{ now().strftime('%H:%M') }} "
- service: timer.start
entity_id: timer.open_door
DD
Аf
DD
Аf
И
RE
- alias: 'Dver_closed'
initial_state: "on"
hide_entity: True
trigger:
- platform: state
entity_id: binary_sensor.datchik_dveri_dver
from: 'on'
to: 'off'
action:
- service: notify.telegram
data_template:
message: "\U0001F6AA Дверь закрыта {{ now().strftime('%H:%M') }}, была открыта {{ (as_timestamp(now())| round(0) - as_timestamp(states.timer.open_door.last_changed)| int)| timestamp_custom('%H:%M:%S', 0) }}"
- service: timer.cancel
entity_id: timer.open_door
- alias: 'Dver_open'
initial_state: "on"
hide_entity: True
trigger:
- platform: state
entity_id: binary_sensor.datchik_dveri_dver
from: 'off'
to: 'on'
condition:
- condition: time
weekday:
- sat
- sun
action:
- service: notify.telegram
data_template:
message: "\U0001F6AA Дверь открыта {{ now().strftime('%H:%M') }} "
DD