Clean up of Switch names and a fancy date time sensor!

This commit is contained in:
CCOSTAN
2016-12-02 02:58:27 +00:00
parent 086d021616
commit 34771704aa
7 changed files with 38 additions and 46 deletions

View File

@@ -11,10 +11,10 @@
action:
- service: switch.turn_on
entity_id: switch.halloween_lights_den
entity_id: switch.outlet_den
- delay: 00:00:30
- service: switch.turn_on
entity_id: switch.halloween_lights_dining_room
entity_id: switch.outlet_living_room
- alias: 'Holiday Stuff off'
trigger:
@@ -26,9 +26,9 @@
action:
- service: switch.turn_off
entity_id: switch.halloween_lights_den
entity_id: switch.outlet_den
- delay: 00:00:30
- service: switch.turn_off
entity_id: switch.halloween_lights_dining_room
entity_id: switch.outlet_living_room

View File

@@ -25,12 +25,11 @@
- platform: state
entity_id: group.kitchen_lights
state: 'off'
for: '00:05:00'
condition:
- condition: sun
after: 'sunset'
- condition: time
before: '02:00:00'
action:
- service: switch.turn_on

View File

@@ -6,11 +6,6 @@
trigger:
- platform: sun
event: sunset
- platform: time
after: '20:00:00'
#Time trigger is until I replace the stupid switch.
# - platform: event
# event_type: halloween_lights_on
action:
- service: switch.turn_on
@@ -25,19 +20,13 @@
trigger:
- platform: sun
event: sunrise
offset: '-03:30:00'
# - platform: event
# event_type: halloween_lights_off
offset: '-03:30:00'
action:
- service: light.turn_off
entity_id: group.outdoor_front_lights
entity_id: group.all_lights
data:
transition: 1200
- service: light.turn_off
entity_id: light.outdoor_bathroom
- service: light.turn_off
entity_id: group.outdoor_lights
transition: 1200
- service: script.switch_turn_off_all