Adding all sorts of voice annoucenemnts to the house!

This commit is contained in:
CCOSTAN
2017-02-03 22:11:33 +00:00
parent 32c6f2ac1a
commit 79c584f5ed
3 changed files with 24 additions and 77 deletions

View File

@@ -1,79 +1,23 @@
################################### ######################################################################
## ZWave Section - ## Announce when people come or go.
## Home Assistant runs on my [Raspberry Pi 3](http://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](http://amzn.to/2eAiAP0). ## Announce over all Chromecast Audios
################################### ######################################################################
- alias: 'Announcements'
##############################################################
- alias: Hallway ZWave Enerwave Door Sensors Open
hide_entity: True hide_entity: True
trigger: trigger:
- platform: event
event_type: zwave.node_event
event_data:
object_id: enerwave_unknown_type0601_id0903_2
basic_level: 255
- platform: state - platform: state
entity_id: binary_sensor.aeotec_dsb04100_doorwindow_sensor_sensor_4_0 entity_id:
state: 'on' - device_tracker.carlo
- device_tracker.stacey
condition: - device_tracker.franco
condition: or - device_tracker.yolanda
conditions: - device_tracker.joyce_ipad
- condition: sun - cover.garadget_large
after: sunset - cover.garadget_small
after_offset: '-03:00:00'
- condition: numeric_state
entity_id: sensor.dark_sky_cloud_coverage
above: 50
action: action:
- service: light.turn_on - service: script.Voice_notify
entity_id: data_template:
- light.kids_hallway message: "Attention. {{ trigger.entity_id.split('.')[1].lower().replace('_ipad', '').title() }} is now {{ trigger.to_state.state }}"
- light.k4 cache: true
- 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

View File

@@ -13,9 +13,9 @@ alert_mode:
icon: mdi:alert-octagram icon: mdi:alert-octagram
initial: off initial: off
pill_reminder: speech_notifications:
name: Pill Reminder name: Speech Notifications
icon: mdi:pill icon: mdi:speaker-wireless
initial: off initial: off
chore_reminder: chore_reminder:

View File

@@ -25,6 +25,9 @@ voice_notify:
- condition: time - condition: time
after: '08:00:00' after: '08:00:00'
before: '20:00:00' before: '20:00:00'
- condition: state
entity_id: input_boolean.speech_notifications
state: 'on'
- service: switch.turn_on - service: switch.turn_on
entity_id: switch.living_room_amp entity_id: switch.living_room_amp