Files
N22/dashboards/views/04_daniel.yaml
T

361 lines
9.5 KiB
YAML

title: Daniel
path: daniel
icon: mdi:face-man-outline
type: sections
sections:
- type: grid
cards:
- type: heading
heading: Musik
- type: media-control
entity: media_player.daniel
name: Sonos Daniel
- type: grid
columns: 2
square: false
cards:
- type: custom:button-card
name: DR P3
icon: mdi:radio
tap_action:
action: perform-action
perform_action: media_player.select_source
target:
entity_id: media_player.daniel
data:
source: "0 DR P3"
styles:
card:
- height: 52px
- padding: 6px 8px
icon:
- width: 18px
name:
- font-size: 11px
- type: custom:button-card
name: Family Mix
icon: mdi:account-music
tap_action:
action: perform-action
perform_action: media_player.select_source
target:
entity_id: media_player.daniel
data:
source: "1 Family Mix"
styles:
card:
- height: 52px
- padding: 6px 8px
icon:
- width: 18px
name:
- font-size: 11px
- type: custom:button-card
name: Spil dansk
icon: mdi:music-note
tap_action:
action: perform-action
perform_action: media_player.select_source
target:
entity_id: media_player.daniel
data:
source: "3 Spil dansk dag - Danske tracks"
styles:
card:
- height: 52px
- padding: 6px 8px
icon:
- width: 18px
name:
- font-size: 11px
- type: custom:button-card
name: Daniel Mix 1
icon: mdi:playlist-music
tap_action:
action: perform-action
perform_action: media_player.select_source
target:
entity_id: media_player.daniel
data:
source: "Daniel Daily Mix 1"
styles:
card:
- height: 52px
- padding: 6px 8px
icon:
- width: 18px
name:
- font-size: 11px
- type: custom:button-card
name: Daniel Mix 2
icon: mdi:playlist-music
tap_action:
action: perform-action
perform_action: media_player.select_source
target:
entity_id: media_player.daniel
data:
source: "Daniel Daily Mix 2"
styles:
card:
- height: 52px
- padding: 6px 8px
icon:
- width: 18px
name:
- font-size: 11px
- type: custom:button-card
name: Daniel Mix 3
icon: mdi:playlist-music
tap_action:
action: perform-action
perform_action: media_player.select_source
target:
entity_id: media_player.daniel
data:
source: "Daniel Daily Mix 3"
styles:
card:
- height: 52px
- padding: 6px 8px
icon:
- width: 18px
name:
- font-size: 11px
- type: custom:button-card
name: Daniel Mix 4
icon: mdi:playlist-music
tap_action:
action: perform-action
perform_action: media_player.select_source
target:
entity_id: media_player.daniel
data:
source: "Daniel Daily Mix 4"
styles:
card:
- height: 52px
- padding: 6px 8px
icon:
- width: 18px
name:
- font-size: 11px
- type: custom:button-card
name: Daniel Mix 5
icon: mdi:playlist-music
tap_action:
action: perform-action
perform_action: media_player.select_source
target:
entity_id: media_player.daniel
data:
source: "Daniel Daily Mix 5"
styles:
card:
- height: 52px
- padding: 6px 8px
icon:
- width: 18px
name:
- font-size: 11px
- type: custom:button-card
name: Daniel Mix 6
icon: mdi:playlist-music
tap_action:
action: perform-action
perform_action: media_player.select_source
target:
entity_id: media_player.daniel
data:
source: "Daniel Daily Mix 6"
styles:
card:
- height: 52px
- padding: 6px 8px
icon:
- width: 18px
name:
- font-size: 11px
- type: grid
cards:
- type: heading
heading: Lys
- type: horizontal-stack
cards:
- type: custom:button-card
entity: light.daniels_vaerelse
name: Værelse
show_state: false
tap_action:
action: toggle
hold_action:
action: more-info
styles:
card:
- padding: 8px 6px
- height: 72px
icon:
- width: 22px
name:
- font-size: 11px
- white-space: normal
- word-break: break-word
- line-height: 1.15
- type: custom:button-card
entity: light.daniel_lysstrip
name: Lysstrip
show_state: false
tap_action:
action: toggle
hold_action:
action: more-info
styles:
card:
- padding: 8px 6px
- height: 72px
icon:
- width: 22px
name:
- font-size: 11px
- white-space: normal
- word-break: break-word
- line-height: 1.15
- type: custom:button-card
entity: light.bamse
name: Bamse
show_state: false
tap_action:
action: toggle
hold_action:
action: more-info
styles:
card:
- padding: 8px 6px
- height: 72px
icon:
- width: 22px
name:
- font-size: 11px
- white-space: normal
- word-break: break-word
- line-height: 1.15
- type: grid
cards:
- type: heading
heading: Ventilator
- type: custom:button-card
entity: switch.stik_daniel
name: Ventilator
icon: mdi:fan
show_state: true
tap_action:
action: toggle
hold_action:
action: more-info
styles:
card:
- padding: 8px 6px
- height: 72px
icon:
- width: 26px
name:
- font-size: 12px
- type: entities
entities:
- entity: input_number.daniel_ventilator_timer
name: Sluk-timer (min)
- type: custom:button-card
icon: mdi:fan-off
entity: script.daniel_ventilator_sluk_timer
show_state: false
name: |
[[[ return 'Sluk om ' + Math.round(states['input_number.daniel_ventilator_timer'].state) + ' min'; ]]]
tap_action:
action: perform-action
perform_action: script.daniel_ventilator_sluk_timer
styles:
card:
- padding: 8px 6px
- height: 56px
- background-color: |
[[[ return entity && entity.state === 'on' ? '#f9a825' : ''; ]]]
icon:
- width: 22px
- color: |
[[[ return entity && entity.state === 'on' ? '#000000' : ''; ]]]
name:
- font-size: 12px
- color: |
[[[ return entity && entity.state === 'on' ? '#000000' : ''; ]]]
- type: grid
cards:
- type: heading
heading: Klima
- type: tile
entity: sensor.sovevaerelse_daniel_temperatur
name: Temperatur
- type: tile
entity: sensor.sovevaerelse_daniel_luftfugtighed
name: Luftfugtighed
- type: tile
entity: sensor.sovevaerelse_daniel_carbon_dioxide
name: CO₂
- type: grid
cards:
- type: heading
heading: Vindue
- type: tile
entity: binary_sensor.daniel_vindue
name: Vindue
- type: grid
cards:
- type: heading
heading: Alarmer
- type: tile
entity: switch.sonos_alarm_377
name: Hverdage 6.15
- type: tile
entity: switch.sonos_alarm_3471
name: Lørdage 6.00
- type: grid
cards:
- type: heading
heading: Automatik
- type: tile
entity: switch.daniel_colorloop_toggle
name: Colorloop
- type: tile
entity: switch.daniel_motionlys_toggle
name: Motionlys