mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 10:57:03 +00:00
Adding Speech to the house. It's Alive - Dr. fRANKENSTEIN
This commit is contained in:
79
automation/announcements.yaml
Executable file
79
automation/announcements.yaml
Executable file
@@ -0,0 +1,79 @@
|
|||||||
|
###################################
|
||||||
|
## ZWave Section -
|
||||||
|
## Home Assistant runs on my [Raspberry Pi 3](http://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](http://amzn.to/2eAiAP0).
|
||||||
|
###################################
|
||||||
|
|
||||||
|
##############################################################
|
||||||
|
- alias: Hallway ZWave Enerwave Door Sensors Open
|
||||||
|
hide_entity: True
|
||||||
|
trigger:
|
||||||
|
- platform: event
|
||||||
|
event_type: zwave.node_event
|
||||||
|
event_data:
|
||||||
|
object_id: enerwave_unknown_type0601_id0903_2
|
||||||
|
basic_level: 255
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
|
||||||
|
state: 'on'
|
||||||
|
|
||||||
|
condition:
|
||||||
|
condition: or
|
||||||
|
conditions:
|
||||||
|
- condition: sun
|
||||||
|
after: sunset
|
||||||
|
after_offset: '-03:00:00'
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: sensor.dark_sky_cloud_coverage
|
||||||
|
above: 50
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: light.turn_on
|
||||||
|
entity_id:
|
||||||
|
- light.kids_hallway
|
||||||
|
- light.k4
|
||||||
|
- delay: 00:20:00
|
||||||
|
- service: light.turn_off
|
||||||
|
entity_id: light.kids_hallway
|
||||||
|
|
||||||
|
##############################################################
|
||||||
|
- alias: ZWave Enerwave Door Sensors Closed
|
||||||
|
hide_entity: True
|
||||||
|
trigger:
|
||||||
|
- platform: event
|
||||||
|
event_type: zwave.node_event
|
||||||
|
event_data:
|
||||||
|
object_id: enerwave_unknown_type0601_id0903_2
|
||||||
|
basic_level: 0
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
|
||||||
|
state: 'off'
|
||||||
|
|
||||||
|
action:
|
||||||
|
service: light.turn_off
|
||||||
|
entity_id: light.kids_hallway
|
||||||
|
|
||||||
|
##############################################################
|
||||||
|
- alias: Shutdown Helper light
|
||||||
|
hide_entity: True
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: light.k4
|
||||||
|
state: 'on'
|
||||||
|
for: '00:20:00'
|
||||||
|
- platform: event
|
||||||
|
event_type: zwave.node_event
|
||||||
|
event_data:
|
||||||
|
object_id: enerwave_unknown_type0601_id0903_2
|
||||||
|
basic_level: 0
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0
|
||||||
|
state: 'off'
|
||||||
|
|
||||||
|
condition:
|
||||||
|
condition: state
|
||||||
|
entity_id: light.k1
|
||||||
|
state: 'off'
|
||||||
|
|
||||||
|
action:
|
||||||
|
- service: light.turn_off
|
||||||
|
entity_id: light.k4
|
@@ -27,12 +27,17 @@
|
|||||||
- sensor.led_rgb_garage_left
|
- sensor.led_rgb_garage_left
|
||||||
- sensor.led_rgb_garage_small
|
- sensor.led_rgb_garage_small
|
||||||
- sensor.led_rgb_outdoor_den
|
- sensor.led_rgb_outdoor_den
|
||||||
- sensor.withings_scale
|
#- sensor.withings_scale
|
||||||
- sensor.smart_water_meter
|
- sensor.smart_water_meter
|
||||||
|
|
||||||
action:
|
action:
|
||||||
service: script.ifttt_notify
|
- service: script.ifttt_notify
|
||||||
data_template:
|
data_template:
|
||||||
value1: 'Device Status:'
|
value1: 'Device Status:'
|
||||||
value2: "{{ trigger.entity_id.split('.')[1] }} is "
|
value2: "{{ trigger.entity_id.split('.')[1] }} is "
|
||||||
value3: "{{ trigger.to_state.state }}"
|
value3: "{{ trigger.to_state.state }}"
|
||||||
|
|
||||||
|
- service: script.Voice_notify
|
||||||
|
data_template:
|
||||||
|
value1: "{{ trigger.entity_id.split('.')[1] }} is now {{ trigger.to_state.state }}"
|
||||||
|
|
||||||
|
@@ -67,8 +67,13 @@
|
|||||||
value_template: "{{ states('cover.garadget_small') == 'opened'}}"
|
value_template: "{{ states('cover.garadget_small') == 'opened'}}"
|
||||||
|
|
||||||
action:
|
action:
|
||||||
service: script.ifttt_notify
|
- service: script.ifttt_notify
|
||||||
data_template:
|
data_template:
|
||||||
value1: 'Check Garage Doors:'
|
value1: 'Check Garage Doors:'
|
||||||
value2: "Small: {{ states('cover.garadget_small')}}"
|
value2: "Small: {{ states('cover.garadget_small')}}"
|
||||||
value3: "Large: {{ states('cover.garadget_large')}}"
|
value3: "Large: {{ states('cover.garadget_large')}}"
|
||||||
|
|
||||||
|
- service: script.Voice_notify
|
||||||
|
data_template:
|
||||||
|
value1: "Please check the garage doors. The Small garage is {{ states('cover.garadget_small')}} and the large garage is {{ states('cover.garadget_large')}}"
|
||||||
|
|
@@ -20,6 +20,9 @@
|
|||||||
- service: script.holiday_switches_on
|
- service: script.holiday_switches_on
|
||||||
- delay: '00:{{ (range(1, 30)|random|int) }}:00'
|
- delay: '00:{{ (range(1, 30)|random|int) }}:00'
|
||||||
- service: script.monthly_front_house_scene
|
- service: script.monthly_front_house_scene
|
||||||
|
- service: script.Voice_notify
|
||||||
|
data:
|
||||||
|
value1: 'Sunset has occurred. I will turn on the outside lights now.'
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
- alias: 'Sunset Stuff off'
|
- alias: 'Sunset Stuff off'
|
||||||
|
@@ -13,11 +13,12 @@ skybell_pressed:
|
|||||||
name: "SkyBell HD Doorbell:"
|
name: "SkyBell HD Doorbell:"
|
||||||
message: "Someone Pressed the Doorbell."
|
message: "Someone Pressed the Doorbell."
|
||||||
|
|
||||||
|
- 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.'
|
||||||
|
|
||||||
- service: script.flash_notify
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -23,11 +23,12 @@ voice_notify:
|
|||||||
state: 'on'
|
state: 'on'
|
||||||
|
|
||||||
- condition: time
|
- condition: time
|
||||||
|
after: '08:00:00'
|
||||||
before: '20:00:00'
|
before: '20:00:00'
|
||||||
|
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
entity_id: switch.living_room_amp
|
entity_id: switch.living_room_amp
|
||||||
- delay: '00:00:10'
|
- delay: '00:00:05'
|
||||||
|
|
||||||
- service: tts.google_say
|
- service: tts.google_say
|
||||||
entity_id: media_player.whole_house
|
entity_id: media_player.whole_house
|
||||||
|
Reference in New Issue
Block a user