2016-12-21 21:14:06 +00:00
|
|
|
###################################
|
2016-12-21 21:15:28 +00:00
|
|
|
## Dark House Little extra light
|
2016-12-21 21:14:06 +00:00
|
|
|
###################################
|
|
|
|
|
2016-12-21 21:15:28 +00:00
|
|
|
- alias: 'Dark House Little extra light'
|
2016-12-21 21:14:06 +00:00
|
|
|
trigger:
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sun.sun
|
|
|
|
value_template: '{{ state.attributes.elevation }}'
|
|
|
|
below: 20.0
|
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.dark_sky_cloud_coverage
|
2016-12-21 21:30:00 +00:00
|
|
|
above: 90
|
2016-12-21 21:38:29 +00:00
|
|
|
- platform: numeric_state
|
|
|
|
entity_id: sensor.dark_sky_precip_intensity
|
|
|
|
above: 1
|
2016-12-21 21:14:06 +00:00
|
|
|
|
|
|
|
condition:
|
2016-12-21 21:38:29 +00:00
|
|
|
condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: and
|
|
|
|
conditions:
|
|
|
|
- condition: numeric_state
|
|
|
|
entity_id: sun.sun
|
|
|
|
value_template: '{{ state.attributes.elevation }}'
|
|
|
|
below: 20.0
|
|
|
|
- condition: numeric_state
|
|
|
|
entity_id: sensor.dark_sky_cloud_coverage
|
|
|
|
above: 90
|
|
|
|
- condition: numeric_state
|
|
|
|
entity_id: sensor.dark_sky_precip_intensity
|
|
|
|
above: 1
|
|
|
|
|
2016-12-21 21:14:06 +00:00
|
|
|
action:
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id:
|
|
|
|
- light.tv_light
|
|
|
|
- light.tv_stand_light
|
|
|
|
data:
|
|
|
|
transition: 1200
|
|
|
|
- service: switch.turn_on
|
|
|
|
entity_id:
|
|
|
|
- switch.living_room_outlet
|
|
|
|
|
|
|
|
###################################
|
|
|
|
## Sunrise and Sunset stuff
|
|
|
|
###################################
|
|
|
|
|
|
|
|
- alias: 'Sunset Stuff on'
|
|
|
|
trigger:
|
|
|
|
- platform: sun
|
|
|
|
event: sunset
|
|
|
|
|
|
|
|
action:
|
|
|
|
- service: script.monthly_front_house_scene
|
|
|
|
- service: script.holiday_switches_on
|
|
|
|
- service: light.turn_on
|
|
|
|
entity_id:
|
|
|
|
- light.outdoor_bathroom
|
|
|
|
- light.tv_light
|
|
|
|
- light.tv_stand_light
|
|
|
|
data:
|
|
|
|
transition: 1200
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
- alias: 'Sunset Stuff off'
|
|
|
|
trigger:
|
|
|
|
- platform: sun
|
|
|
|
event: sunrise
|
|
|
|
offset: '-03:25:00'
|
|
|
|
|
|
|
|
action:
|
|
|
|
- service: light.turn_off
|
|
|
|
entity_id: group.all_lights
|
|
|
|
- service: script.interior_off
|
|
|
|
- delay: '00:01:00'
|
|
|
|
- service: script.switch_turn_off_all
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-11-20 20:02:58 +00:00
|
|
|
|