Sovevaerelse: godnat-knap daemper lys over 15 min (hold=sluk straks)
This commit is contained in:
@@ -4,6 +4,31 @@ icon: mdi:bed-king-outline
|
||||
type: sections
|
||||
|
||||
sections:
|
||||
- type: grid
|
||||
cards:
|
||||
- type: custom:button-card
|
||||
name: Godnat
|
||||
icon: mdi:weather-night
|
||||
tap_action:
|
||||
action: call-service
|
||||
service: script.godnat_sovevaerelse
|
||||
hold_action:
|
||||
action: call-service
|
||||
service: light.turn_off
|
||||
service_data:
|
||||
entity_id: light.bedroom
|
||||
styles:
|
||||
card:
|
||||
- height: 64px
|
||||
- background-color: "#1a1a2e"
|
||||
- color: "#c8b8f0"
|
||||
icon:
|
||||
- color: "#c8b8f0"
|
||||
- width: 24px
|
||||
name:
|
||||
- font-size: 14px
|
||||
- color: "#c8b8f0"
|
||||
|
||||
- type: grid
|
||||
cards:
|
||||
- type: heading
|
||||
|
||||
@@ -1,3 +1,18 @@
|
||||
godnat_sovevaerelse:
|
||||
alias: Godnat - dæmp lys i soveværelse over 15 min
|
||||
mode: restart
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
target:
|
||||
entity_id: light.bedroom
|
||||
data:
|
||||
brightness_pct: 1
|
||||
transition: 870
|
||||
- delay: "00:15:00"
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.bedroom
|
||||
|
||||
bed_standard_colors:
|
||||
sequence:
|
||||
- service: light.turn_on
|
||||
|
||||
Reference in New Issue
Block a user