Moving stuff around. Changing sunrise and sunset type automations.

This commit is contained in:
CCOSTAN 2017-01-20 19:42:12 +00:00
parent a421ccaeb5
commit d068bedf36
7 changed files with 22 additions and 21 deletions

View File

@ -11,9 +11,6 @@
state: 'Offline'
condition:
- condition: state
entity_id: group.family
state: home
- condition: time
after: '20:00:00'
- condition: state

View File

@ -8,10 +8,9 @@
event: sunset
action:
- service: script.monthly_front_house_scene
- service: script.holiday_switches_on
- delay: '00:{{ (range(1, 59)|random|int) }}:00'
- service: switch.turn_on
entity_id:
- switch.front_door_outlet
- service: light.turn_on
entity_id:
- light.outdoor_bathroom
@ -19,14 +18,16 @@
- light.tv_stand_light
data:
transition: 1200
- service: script.holiday_switches_on
- delay: '00:{{ (range(1, 59)|random|int) }}:00'
- service: script.monthly_front_house_scene
######################################################################
- alias: 'Sunset Stuff off'
trigger:
- platform: sun
event: sunrise
# offset: '-0{{ (range(1, 3)|random|int) }}:{{ (range(1, 59)|random|int) }}:00'
offset: '-01:00:00'
action:
- service: light.turn_off

View File

@ -65,8 +65,8 @@ switch.Outlet_304_2:
icon: mdi:power-plug
assumed_state: true
switch.Outlet_304_3:
friendly_name: 'Outlet_304_3'
switch.Front_Door_Outlet:
friendly_name: 'Front Door Outlet'
emulated_hue: true
icon: mdi:power-plug
assumed_state: true

View File

@ -1,8 +1,9 @@
Switches:
entities:
- switch.den_outlet
- switch.living_room_outlet
- switch.foyer_outlet
- switch.kitchen_Accents
- switch.printer_outlet
Switches:
entities:
- switch.den_outlet
- switch.living_room_outlet
- switch.foyer_outlet
- switch.kitchen_Accents
- switch.printer_outlet
- switch.front_door_outlet

View File

@ -15,7 +15,9 @@ holiday_switches_on:
- service: switch.turn_on
entity_id: switch.foyer_outlet
- delay: 00:00:30
- service: switch.turn_on
entity_id: switch.front_door_outlet
- condition: sun
after: sunset
- service: switch.turn_on

View File

@ -31,7 +31,7 @@ switch_turn_off_all:
- service: switch.turn_off
entity_id: switch.living_room_amp
- delay: '00:01:00'
- service: switch.turn_on
- service: switch.turn_off
entity_id: switch.Outlet_304_4
- service: switch.turn_off

View File

@ -88,7 +88,7 @@
signal_repetitions: 40
# Outlet 304_3
Outlet_304_3:
Front_Door_Outlet:
protocol: 1
pulselength: 186
code_on: 5330691