diff --git a/dashboards/views/04b_sovevaerelse.yaml b/dashboards/views/04b_sovevaerelse.yaml index d2d76b5..2d66fb1 100644 --- a/dashboards/views/04b_sovevaerelse.yaml +++ b/dashboards/views/04b_sovevaerelse.yaml @@ -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 diff --git a/include/scripts/bed_scene.yaml b/include/scripts/bed_scene.yaml index 87ecda9..d94501d 100644 --- a/include/scripts/bed_scene.yaml +++ b/include/scripts/bed_scene.yaml @@ -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