|
|
|
@ -18,13 +18,13 @@ group:
|
|
|
|
name: Skybell HD Front Door
|
|
|
|
name: Skybell HD Front Door
|
|
|
|
control: hidden
|
|
|
|
control: hidden
|
|
|
|
entities:
|
|
|
|
entities:
|
|
|
|
- binary_sensor.skybell_stone_door_button
|
|
|
|
- binary_sensor.skybell_front_door_button
|
|
|
|
- binary_sensor.skybell_stone_door_motion
|
|
|
|
- binary_sensor.skybell_front_door_motion
|
|
|
|
- camera.stone_door
|
|
|
|
- camera.front_door
|
|
|
|
- sensor.skybell_stone_door_chime_level
|
|
|
|
- sensor.skybell_front_door_chime_level
|
|
|
|
- sensor.skybell_stone_door_motion_sensor
|
|
|
|
- sensor.skybell_front_door_motion_sensor
|
|
|
|
- switch.skybell_stone_door_do_not_disturb
|
|
|
|
- switch.skybell_front_door_do_not_disturb
|
|
|
|
- switch.skybell_stone_door_motion_sensor
|
|
|
|
- switch.skybell_front_door_motion_sensor
|
|
|
|
|
|
|
|
|
|
|
|
skybell:
|
|
|
|
skybell:
|
|
|
|
username: !secret skybell_username
|
|
|
|
username: !secret skybell_username
|
|
|
|
@ -67,7 +67,7 @@ automation:
|
|
|
|
trigger:
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
|
|
|
entity_id:
|
|
|
|
- binary_sensor.skybell_stone_door_button
|
|
|
|
- binary_sensor.skybell_front_door_button
|
|
|
|
to: 'on'
|
|
|
|
to: 'on'
|
|
|
|
- platform: event
|
|
|
|
- platform: event
|
|
|
|
event_type: skybell_pressed
|
|
|
|
event_type: skybell_pressed
|
|
|
|
@ -75,8 +75,8 @@ automation:
|
|
|
|
condition:
|
|
|
|
condition:
|
|
|
|
- condition: template
|
|
|
|
- condition: template
|
|
|
|
value_template: >
|
|
|
|
value_template: >
|
|
|
|
{%- if states.binary_sensor.skybell_stone_door_button.attributes.last_triggered -%}
|
|
|
|
{%- if states.binary_sensor.skybell_front_door_button.attributes.last_triggered -%}
|
|
|
|
{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.skybell_stone_door_button.attributes.last_triggered)) > 200 }}
|
|
|
|
{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.skybell_front_door_button.attributes.last_triggered)) > 200 }}
|
|
|
|
{%- else -%}
|
|
|
|
{%- else -%}
|
|
|
|
true
|
|
|
|
true
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endif -%}
|
|
|
|
@ -102,7 +102,7 @@ automation:
|
|
|
|
trigger:
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
|
|
|
entity_id:
|
|
|
|
- light.stone_door
|
|
|
|
- light.front_door
|
|
|
|
- switch.carloneato_schedule
|
|
|
|
- switch.carloneato_schedule
|
|
|
|
to: 'off'
|
|
|
|
to: 'off'
|
|
|
|
|
|
|
|
|
|
|
|
|