Tweaking light timing

This commit is contained in:
Jeffrey Stone 2020-09-23 11:00:30 -04:00
parent 350096654b
commit f094b1bbfa
1 changed files with 8 additions and 7 deletions

View File

@ -249,9 +249,8 @@ automation:
- platform: sun - platform: sun
event: sunrise event: sunrise
action: action:
- service: switch.turn_off - service: homeassistant.turn_off
data: entity_id: group.outside_lights
entity_id: switch.front_porch_light
- service: script.twitter_notify_image - service: script.twitter_notify_image
data_template: data_template:
tweet: >- tweet: >-
@ -301,7 +300,7 @@ automation:
trigger: trigger:
- platform: sun - platform: sun
event: sunrise event: sunrise
offset: 02:30:00 offset: 01:30:00
condition: condition:
- condition: template - condition: template
value_template: > value_template: >
@ -313,6 +312,8 @@ automation:
- service: script.kitchen_lights_off - service: script.kitchen_lights_off
- service: scene.turn_on - service: scene.turn_on
entity_id: scene.jeff_light_off entity_id: scene.jeff_light_off
- service: scene.turn_on
entity_id: scene.skylar_room_day
- service: script.twitter_notify - service: script.twitter_notify
data: data:
message: >- message: >-
@ -423,9 +424,9 @@ automation:
data_template: data_template:
time: > time: >
{% if states.calendar.skylar_school.attributes.offset_reached == True %} {% if states.calendar.skylar_school.attributes.offset_reached == True %}
07:15 06:45
{% elif states.binary_sensor.workday_sensor.state == 'on' %} {% elif states.binary_sensor.workday_sensor.state == 'on' %}
07:15 07:00
{% else %} {% else %}
07:25 07:30
{% endif %} {% endif %}