2018-01-02 00:00:45 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
# @CCOSTAN
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
|
|
###################################
|
2020-05-25 17:50:17 +00:00
|
|
|
## [SkyBell HD](https://amzn.to/2dcexIB)
|
2018-01-02 00:00:45 +00:00
|
|
|
###################################
|
|
|
|
|
|
|
|
|
|
|
|
skybell:
|
|
|
|
username: !secret skybell_username
|
|
|
|
password: !secret skybell_password
|
|
|
|
|
|
|
|
camera:
|
|
|
|
- platform: skybell
|
2019-01-10 17:05:59 +00:00
|
|
|
monitored_conditions:
|
|
|
|
- avatar
|
|
|
|
- activity
|
|
|
|
activity_name: "Last Activity"
|
2018-01-02 00:00:45 +00:00
|
|
|
|
|
|
|
binary_sensor:
|
|
|
|
- platform: skybell
|
|
|
|
monitored_conditions:
|
|
|
|
- button
|
|
|
|
- motion
|
|
|
|
|
|
|
|
light:
|
|
|
|
- platform: skybell # Part of the Outdoor Front Lights Group
|
|
|
|
|
|
|
|
sensor:
|
|
|
|
- platform: skybell
|
|
|
|
monitored_conditions:
|
|
|
|
- chime_level
|
|
|
|
|
|
|
|
switch:
|
|
|
|
- platform: skybell
|
|
|
|
monitored_conditions:
|
2018-03-12 20:04:59 +00:00
|
|
|
# - do_not_disturb
|
2018-01-02 00:00:45 +00:00
|
|
|
- motion_sensor
|
|
|
|
|
|
|
|
###################################
|
|
|
|
## Automations
|
|
|
|
###################################
|
|
|
|
## Doorbell Press
|
|
|
|
automation:
|
|
|
|
- alias: 'Log SkyBell Pressed Activity'
|
2020-07-20 18:33:03 +00:00
|
|
|
id: 64226512-f35d-4179-bfcb-9de158b8d3f4
|
2020-04-10 01:29:27 +00:00
|
|
|
|
2018-01-02 00:00:45 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
2019-08-14 00:01:55 +00:00
|
|
|
- binary_sensor.skybell_front_door_button
|
2018-01-02 00:00:45 +00:00
|
|
|
to: 'on'
|
2019-03-16 22:57:17 +00:00
|
|
|
- platform: event
|
|
|
|
event_type: skybell_pressed
|
2018-01-02 00:00:45 +00:00
|
|
|
|
2018-01-05 19:45:57 +00:00
|
|
|
condition:
|
|
|
|
- condition: template
|
|
|
|
value_template: >
|
2019-08-14 00:01:55 +00:00
|
|
|
{%- if states.binary_sensor.skybell_front_door_button.attributes.last_triggered -%}
|
|
|
|
{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.skybell_front_door_button.attributes.last_triggered)) > 200 }}
|
2018-01-05 19:45:57 +00:00
|
|
|
{%- else -%}
|
|
|
|
true
|
|
|
|
{%- endif -%}
|
|
|
|
|
2018-01-02 00:00:45 +00:00
|
|
|
action:
|
|
|
|
- service: script.skybell_pressed
|
2019-03-16 21:36:18 +00:00
|
|
|
|
2018-01-02 00:00:45 +00:00
|
|
|
|
|
|
|
# Motion Sensing
|
|
|
|
- alias: 'Log SkyBell Motion detection'
|
2020-07-20 18:33:03 +00:00
|
|
|
id: a22c2cb7-08b2-4bd1-bc82-77201253a000
|
2020-04-10 01:29:27 +00:00
|
|
|
|
2018-01-02 00:00:45 +00:00
|
|
|
trigger:
|
|
|
|
- platform: event
|
|
|
|
event_type: skybell_motion
|
|
|
|
|
|
|
|
action:
|
|
|
|
- service: script.front_house_motion
|
|
|
|
|
|
|
|
# Turn SkyBell Light and Neato Schedule back on if it's turned off. Like any Good Watchdog.
|
|
|
|
|
|
|
|
- alias: Automated Mismatch WatchDog!
|
2020-07-20 18:33:03 +00:00
|
|
|
id: bff434b9-5916-42d1-8620-5723b4b1879d
|
2020-04-10 01:29:27 +00:00
|
|
|
|
2018-01-02 00:00:45 +00:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
2019-08-14 00:01:55 +00:00
|
|
|
- light.front_door
|
2020-05-22 17:43:39 +00:00
|
|
|
- switch.carlo_neato_schedule
|
2018-01-02 00:00:45 +00:00
|
|
|
to: 'off'
|
|
|
|
|
|
|
|
#Turn it back on!
|
|
|
|
action:
|
|
|
|
- service: homeassistant.turn_on
|
2020-09-26 14:52:45 +00:00
|
|
|
data:
|
2018-01-02 00:00:45 +00:00
|
|
|
entity_id: "{{ trigger.entity_id }}"
|