mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 10:57:03 +00:00
Almost done with #96. Just need to create the boolean for manual triggering.
This commit is contained in:
@@ -11,6 +11,7 @@ SSL via [SSLS](https://SSLS.com) - 5 Bucks A Year! - Keeps me safe!
|
|||||||
[HomeBridge](https://github.com/nfarina/homebridge) for full HA <-> Homekit compatibility.
|
[HomeBridge](https://github.com/nfarina/homebridge) for full HA <-> Homekit compatibility.
|
||||||
|
|
||||||
**Devices I have :**
|
**Devices I have :**
|
||||||
|
* [Ubiquiti Networks Unifi 802.11ac Pro](http://amzn.to/2mBSfE9) This keeps me warm with it's Wifi rays blanketing the house.
|
||||||
* Lots of iOS Devices ([iPads](http://amzn.to/2l2qyRb), iPods, [iPhones](http://amzn.to/2l9Yoq9))
|
* Lots of iOS Devices ([iPads](http://amzn.to/2l2qyRb), iPods, [iPhones](http://amzn.to/2l9Yoq9))
|
||||||
* [Nest Thermostats](http://amzn.to/2eAhB1k) - Smart Thermostat
|
* [Nest Thermostats](http://amzn.to/2eAhB1k) - Smart Thermostat
|
||||||
* [Amazon Echo](http://amzn.to/2dSVbK4) and [DOT](http://amzn.to/2e3vHFQ)
|
* [Amazon Echo](http://amzn.to/2dSVbK4) and [DOT](http://amzn.to/2e3vHFQ)
|
||||||
@@ -69,8 +70,8 @@ Lots of my gear comes from [BetaBound](https://goo.gl/0vxT8A) for Beta Testing a
|
|||||||
* (IFTTT) Blink ALL lights if Winds get to 70MPH - Hurricance warning.
|
* (IFTTT) Blink ALL lights if Winds get to 70MPH - Hurricance warning.
|
||||||
* (IFTTT) Trigger Good Night routine when I step on the [Withings](http://amzn.to/2kr78nW) scale after 10pm.
|
* (IFTTT) Trigger Good Night routine when I step on the [Withings](http://amzn.to/2kr78nW) scale after 10pm.
|
||||||
* Sets up the front lights in the house with preset colors depending on the ~~month~~ day!.
|
* Sets up the front lights in the house with preset colors depending on the ~~month~~ day!.
|
||||||
* On motion from [SkyBell HD Doorbell](http://amzn.to/2dcexIB) (IFTTT) Turn front lights to Bright White lights for 10 minutes and then back to original colors.
|
* On motion from [SkyBell HD Doorbell](http://amzn.to/2dcexIB) (IFTTT) Turn front lights to Bright White lights for 10 minutes and then back to original colors. Fake Dog barking when there is motion by the house.
|
||||||
* When someone rings the Doorbell (IFTTT), the backyard and Bathroom lights Flash - Since we might not hear the doorbell.
|
* When someone rings the Doorbell (IFTTT), the backyard and Bathroom lights Flash - Since we might not hear the doorbell. Fake Dog barks as well.
|
||||||
* Watch and alert on Home Assistant's Disk usage. Get alerts before Pi runs out of space on the [SD Card](http://amzn.to/2kNttio).
|
* Watch and alert on Home Assistant's Disk usage. Get alerts before Pi runs out of space on the [SD Card](http://amzn.to/2kNttio).
|
||||||
* Digital Cuckoo Clock that goes off each hour and on the half just like a real Cuckoo Clock. Plays across the whole house on my [ChromeCast Audios](http://amzn.to/2lE9gNu)
|
* Digital Cuckoo Clock that goes off each hour and on the half just like a real Cuckoo Clock. Plays across the whole house on my [ChromeCast Audios](http://amzn.to/2lE9gNu)
|
||||||
|
|
||||||
|
53
script/dog_barking.yaml
Executable file
53
script/dog_barking.yaml
Executable file
@@ -0,0 +1,53 @@
|
|||||||
|
######################################################################################################
|
||||||
|
###Script to send notifications to the ChromeCast Audios during normal hours and only when we are home! Call like this:
|
||||||
|
# action:
|
||||||
|
# service: script.dog_bark
|
||||||
|
# data_template:
|
||||||
|
# value1: 'Startup: Home Assistant is Up and Running!'
|
||||||
|
|
||||||
|
######################################################################################################
|
||||||
|
|
||||||
|
dog_bark:
|
||||||
|
sequence:
|
||||||
|
- condition: template
|
||||||
|
value_template: >
|
||||||
|
{% if is_state('media_player.livingroomCC', 'playing') %}
|
||||||
|
false
|
||||||
|
{% else %}
|
||||||
|
true
|
||||||
|
{% endif %}
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.alert_mode
|
||||||
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.speech_notifications
|
||||||
|
state: 'on'
|
||||||
|
- service: switch.turn_on
|
||||||
|
entity_id: switch.living_room_amp
|
||||||
|
- delay: '00:00:05'
|
||||||
|
|
||||||
|
- service: media_player.turn_on
|
||||||
|
entity_id: media_player.livingroomCC
|
||||||
|
|
||||||
|
- service: media_player.volume_set
|
||||||
|
entity_id:
|
||||||
|
- media_player.livingroomCC
|
||||||
|
data_template:
|
||||||
|
volume_level: >
|
||||||
|
{% if now().strftime("%H")|int < 12 and now().strftime("%H")|int > 6%}
|
||||||
|
0.45
|
||||||
|
{% elif now().strftime("%H")|int > 12 and now().strftime("%H")|int < 17%}
|
||||||
|
0.9
|
||||||
|
{% else %}
|
||||||
|
0.40
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
- service: media_player.turn_on
|
||||||
|
entity_id: media_player.livingroomCC
|
||||||
|
|
||||||
|
- service: media_player.play_media
|
||||||
|
data_template:
|
||||||
|
entity_id:
|
||||||
|
- media_player.LivingRoomCC
|
||||||
|
media_content_id: "https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/sounds/dog-barking-2-bullmastiff.mp3"
|
||||||
|
media_content_type: audio/mp4
|
@@ -19,6 +19,7 @@ front_house_motion:
|
|||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id: input_boolean.alert_mode
|
entity_id: input_boolean.alert_mode
|
||||||
|
|
||||||
|
- service: script.dog_bark
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data:
|
data:
|
||||||
value1: 'Motion has been detected by the front door.'
|
value1: 'Motion has been detected by the front door.'
|
||||||
@@ -29,6 +30,7 @@ front_house_motion:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- light.outdoor_bathroom
|
- light.outdoor_bathroom
|
||||||
brightness: 255
|
brightness: 255
|
||||||
|
- service: script.dog_bark
|
||||||
- delay: '00:{{ (range(5, 20)|random|int) }}:00'
|
- delay: '00:{{ (range(5, 20)|random|int) }}:00'
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: group.outdoor_front_lights
|
entity_id: group.outdoor_front_lights
|
||||||
|
@@ -13,13 +13,8 @@ skybell_pressed:
|
|||||||
name: "SkyBell HD Doorbell:"
|
name: "SkyBell HD Doorbell:"
|
||||||
message: "Someone Pressed the Doorbell."
|
message: "Someone Pressed the Doorbell."
|
||||||
|
|
||||||
|
- service: script.dog_bark
|
||||||
- service: script.flash_notify
|
- service: script.flash_notify
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data:
|
data:
|
||||||
value1: 'Please check the Front Door. Someone Pressed the Doorbell.'
|
value1: 'Please check the Front Door. Someone Pressed the Doorbell.'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user