Various improvements to automations and UI

This commit is contained in:
2021-05-18 18:59:10 +03:00
parent dbbda673f4
commit af18dffdb3
22 changed files with 338 additions and 192 deletions
@@ -0,0 +1,58 @@
blueprint:
name: Light on set temperature
domain: automation
input:
light:
day_temp:
default: 300
evening_temp:
default: 400
night_temp:
default: 500
trigger:
platform: state
entity_id: !input light
to: "on"
condition:
condition: state
entity_id: input_select.house_mode
state: "day"
action:
- choose:
- conditions:
- condition: sun
before: sunset
sequence:
- service: light.turn_on
entity_id: !input light
data:
color_temp: !input day_temp
- conditions:
condition: and
conditions:
- condition: sun
after: sunset
- condition: not
conditions:
- condition: sun
after: sunset
after_offset: "+03:00:00"
sequence:
- service: light.turn_on
entity_id: !input light
data:
color_temp: !input evening_temp
- conditions:
- condition: sun
after: sunset
after_offset: "+03:00:00"
sequence:
- service: light.turn_on
entity_id: !input light
data:
color_temp: !input night_temp
@@ -0,0 +1,23 @@
blueprint:
name: Light sun set temperature
domain: automation
input:
light:
temp:
after_offset:
default: "+00:00:00"
trigger:
platform: sun
event: sunset
offset: !input after_offset
condition:
- condition: state
entity_id: !input light
state: "on"
action:
- service: light.turn_on
entity_id: !input light
data:
color_temp: !input temp