2018-01-02 00:00:45 +00:00
|
|
|
#-------------------------------------------
|
|
|
|
# @CCOSTAN
|
|
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
|
|
###################################
|
|
|
|
## [SkyBell HD](http://amzn.to/2dcexIB)
|
|
|
|
###################################
|
|
|
|
|
|
|
|
homeassistant:
|
|
|
|
customize_glob:
|
|
|
|
"sensor.skybell_*":
|
|
|
|
icon: mdi:camera-front
|
2018-01-18 20:14:25 +00:00
|
|
|
|
2018-01-02 00:00:45 +00:00
|
|
|
hidden: False
|
|
|
|
homebridge_hidden: True
|
|
|
|
|
|
|
|
group:
|
|
|
|
skybell:
|
|
|
|
name: Skybell HD Front Door
|
|
|
|
control: hidden
|
|
|
|
entities:
|
|
|
|
- binary_sensor.skybell_stone_door_button
|
|
|
|
- binary_sensor.skybell_stone_door_motion
|
|
|
|
- camera.stone_door
|
|
|
|
- sensor.skybell_stone_door_chime_level
|
|
|
|
- sensor.skybell_stone_door_motion_sensor
|
|
|
|
- switch.skybell_stone_door_do_not_disturb
|
|
|
|
- switch.skybell_stone_door_motion_sensor
|
|
|
|
|
|
|
|
skybell:
|
|
|
|
username: !secret skybell_username
|
|
|
|
password: !secret skybell_password
|
|
|
|
|
|
|
|
camera:
|
|
|
|
- platform: skybell
|
|
|
|
|
|
|
|
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'
|
|
|
|
hide_entity: True
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
|
|
|
- binary_sensor.skybell_stone_door_button
|
|
|
|
to: 'on'
|
2018-01-04 23:14:41 +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: >
|
|
|
|
{%- if states.binary_sensor.skybell_stone_door_button.attributes.last_triggered -%}
|
|
|
|
{{ (as_timestamp(now()) - as_timestamp(states.binary_sensor.skybell_stone_door_button.attributes.last_triggered)) > 200 }}
|
|
|
|
{%- else -%}
|
|
|
|
true
|
|
|
|
{%- endif -%}
|
|
|
|
|
2018-01-02 00:00:45 +00:00
|
|
|
action:
|
|
|
|
- service: script.skybell_pressed
|
2018-03-17 04:56:57 +00:00
|
|
|
- service: script.tweet_engine_image
|
2018-01-02 00:00:45 +00:00
|
|
|
data_template:
|
|
|
|
tweet: >
|
|
|
|
{{ [
|
|
|
|
"Oh, that tickled. Someone just pressed the @MySkyBell.",
|
|
|
|
"Ouch! That hurt. Who touched the SkyBell Doorbell?",
|
|
|
|
"Someone just poked me in the @MySkybell!",
|
|
|
|
"I see you! You are at the @MySkyBell and you just pressed it.",
|
2018-03-21 01:14:04 +00:00
|
|
|
"Someone answer my door. Someone just pressed the doorbell.",
|
|
|
|
"Knock, Knock. Housekeeping? Just kiddin', someone just rang the doorbell."
|
2018-01-02 00:00:45 +00:00
|
|
|
] | random + [
|
|
|
|
" #Security",
|
2018-03-17 04:56:57 +00:00
|
|
|
" (https://github.com/CCOSTAN/Home-AssistantConfig#cameras)",
|
2018-01-02 00:00:45 +00:00
|
|
|
" (http://www.vmwareinfo.com/2017/07/my-smart-home-look-at-parts-that-make.html)",
|
|
|
|
" #HomeAutomation"
|
|
|
|
] | random }}
|
2018-03-17 04:56:57 +00:00
|
|
|
image: >-
|
|
|
|
{{ [
|
2018-03-18 00:11:11 +00:00
|
|
|
"/config/www/custom_ui/floorplan/images/branding/sleeping.png",
|
|
|
|
"/config/www/custom_ui/floorplan/images/branding/door.png",
|
2018-04-04 23:18:17 +00:00
|
|
|
"/config/www/custom_ui/floorplan/images/branding/door2.png",
|
2018-03-18 00:11:11 +00:00
|
|
|
"/config/www/custom_ui/floorplan/images/branding/light4.png",
|
2018-04-04 23:18:17 +00:00
|
|
|
"/config/www/custom_ui/floorplan/images/branding/landscape_light.png",
|
|
|
|
"/config/www/custom_ui/floorplan/images/branding/camera.png",
|
2018-03-17 04:56:57 +00:00
|
|
|
] | random }}
|
2018-01-02 00:00:45 +00:00
|
|
|
|
|
|
|
# Motion Sensing
|
|
|
|
- alias: 'Log SkyBell Motion detection'
|
|
|
|
hide_entity: True
|
|
|
|
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!
|
|
|
|
hide_entity: True
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
|
|
|
- light.stone_door
|
|
|
|
- switch.carloneato_schedule
|
|
|
|
to: 'off'
|
|
|
|
|
|
|
|
#Turn it back on!
|
|
|
|
action:
|
|
|
|
- service: homeassistant.turn_on
|
|
|
|
data_template:
|
|
|
|
entity_id: "{{ trigger.entity_id }}"
|