mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
alias: Set Time of Day
|
||||
id: automation_set_time_of_day
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
action:
|
||||
- service: input_select.select_option
|
||||
data_template:
|
||||
entity_id: input_select.time_of_day
|
||||
option: >-
|
||||
{% if is_state('binary_sensor.early_morning', 'on') %}
|
||||
Early Morning
|
||||
{% elif is_state('binary_sensor.morning', 'on') %}
|
||||
Morning
|
||||
{% elif is_state('binary_sensor.late_morning', 'on') %}
|
||||
Late Morning
|
||||
{% elif is_state('binary_sensor.early_afternoon', 'on') %}
|
||||
Early Afternoon
|
||||
{% elif is_state('binary_sensor.late_afternoon', 'on') %}
|
||||
Late Afternoon
|
||||
{% elif is_state('binary_sensor.early_evening', 'on') %}
|
||||
Early Evening
|
||||
{% elif is_state('binary_sensor.evening', 'on') %}
|
||||
Evening
|
||||
{% elif is_state('binary_sensor.late_evening', 'on') %}
|
||||
Late Evening
|
||||
{% else %}
|
||||
Night
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user