From ccb55c7ae9fcfd56c1ee28b18caa4a06354be4b8 Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Thu, 20 Oct 2016 21:39:40 +0000 Subject: [PATCH] Add delays for Holiday lights and RF. --- automation/heal_zwave.yaml | 1 + automation/holiday.yaml | 17 ++++++++++++----- automation/zwave_door_sensor.yaml | 2 ++ group/holiday.yaml | 4 ++++ group/lights.yaml | 4 ---- 5 files changed, 19 insertions(+), 9 deletions(-) create mode 100755 group/holiday.yaml diff --git a/automation/heal_zwave.yaml b/automation/heal_zwave.yaml index 3d7a172b..f648633b 100755 --- a/automation/heal_zwave.yaml +++ b/automation/heal_zwave.yaml @@ -3,6 +3,7 @@ ################################### - alias: Heal ZWave Nightly + hide_entity: True trigger: platform: time after: '2:31:00' diff --git a/automation/holiday.yaml b/automation/holiday.yaml index b66149a6..b9e9c886 100755 --- a/automation/holiday.yaml +++ b/automation/holiday.yaml @@ -11,17 +11,24 @@ action: - service: switch.turn_on - entity_id: group.holiday - + entity_id: switch.halloween_lights_den + - delay: 00:00:30 + - service: switch.turn_on + entity_id: switch.halloween_lights_dining_room + - alias: 'Holiday Stuff off' trigger: - platform: sun event: sunrise - offset: '-03:00:00' + offset: '-03:30:00' - platform: event event_type: halloween_lights_off action: - - service: switch.turn_on - entity_id: group.holiday + - service: switch.turn_off + entity_id: switch.halloween_lights_den + - delay: 00:00:30 + - service: switch.turn_off + entity_id: switch.halloween_lights_dining_room + \ No newline at end of file diff --git a/automation/zwave_door_sensor.yaml b/automation/zwave_door_sensor.yaml index 7455e9a9..27f5e37a 100755 --- a/automation/zwave_door_sensor.yaml +++ b/automation/zwave_door_sensor.yaml @@ -1,4 +1,5 @@ - alias: ZWave Enerwave Door Sensors Open + hide_entity: True trigger: platform: event event_type: zwave.node_event @@ -10,6 +11,7 @@ entity_id: light.office_lamp - alias: ZWave Enerwave Door Sensors Closed + hide_entity: True trigger: platform: event event_type: zwave.node_event diff --git a/group/holiday.yaml b/group/holiday.yaml new file mode 100755 index 00000000..88a74998 --- /dev/null +++ b/group/holiday.yaml @@ -0,0 +1,4 @@ +Holiday: + entities: + - switch.halloween_lights_den + - switch.halloween_lights_dining_room \ No newline at end of file diff --git a/group/lights.yaml b/group/lights.yaml index 72da132b..f31e12c3 100755 --- a/group/lights.yaml +++ b/group/lights.yaml @@ -49,7 +49,3 @@ Upstairs: entities: - light.upstairs_lamp -Holiday: - entities: - - switch.halloween_lights_den - - switch.halloween_lights_dining_room \ No newline at end of file