Refactor conditions and triggers based on sun

This commit is contained in:
2020-05-03 15:52:26 +03:00
parent c0c0beafd0
commit d6ad40a621
3 changed files with 6 additions and 8 deletions
@@ -35,6 +35,7 @@ automation:
color_temp: "{{ 400 if is_state('sun.sun', 'above_horizon') else 500 }}"
- alias: Lighting · Temperature · Adjust based on time
# TODO: this trigger is not good. Figure out something else.
trigger:
platform: state
entity_id: sun.sun