diff --git a/dashboards/minimal/dashboard.yaml b/dashboards/minimal/dashboard.yaml index c26275d..e70f470 100644 --- a/dashboards/minimal/dashboard.yaml +++ b/dashboards/minimal/dashboard.yaml @@ -7,3 +7,4 @@ - !include views/kokken.yaml - !include views/stue.yaml - !include views/el.yaml + - !include views/bryggers.yaml diff --git a/dashboards/minimal/declutter.yaml b/dashboards/minimal/declutter.yaml index 10424cb..43647f9 100644 --- a/dashboards/minimal/declutter.yaml +++ b/dashboards/minimal/declutter.yaml @@ -55,7 +55,7 @@ [ {% for light in states.light.[[group_name]].attributes.entity_id %} {% set entity = states[light] %} - {% if entity != None and entity.state != "unavailable" %} + {% if entity != None %} {{ { "type": "custom:mushroom-light-card", @@ -66,3 +66,23 @@ {% endif %} {% endfor %} ] + +temperature_chart_template: + card: + type: custom:apexcharts-card + series: + - entity: "[[entity]]" + attribute: current_temperature + stroke_width: 2 + name: Nuværende + - entity: "[[entity]]" + data_generator: | # This is what builds the data + return [[start, entity.attributes.temperature], [end, entity.attributes.temperature]]; + stroke_width: 1 + name: Ønsket + apex_config: + chart: + height: 200px + header: + show: true + title: Temperatur diff --git a/dashboards/minimal/views/bryggers.yaml b/dashboards/minimal/views/bryggers.yaml new file mode 100644 index 0000000..f891755 --- /dev/null +++ b/dashboards/minimal/views/bryggers.yaml @@ -0,0 +1,18 @@ +title: Bryggers +path: bryggers +cards: + - type: custom:decluttering-card + template: subpanel_title_template + variables: + - title: Bryggers + - alignment: start + + - type: custom:decluttering-card + template: temperature_chart_template + variables: + - entity: climate.wavin_9000_bryggers + + - type: custom:decluttering-card + template: light_group_list_template + variables: + - group_name: bryggers_gruppe diff --git a/dashboards/minimal/views/hjem.yaml b/dashboards/minimal/views/hjem.yaml index d02fbad..044b7ea 100644 --- a/dashboards/minimal/views/hjem.yaml +++ b/dashboards/minimal/views/hjem.yaml @@ -126,7 +126,34 @@ tap_action: action: more-info entity: switch.tv_baenk + card_mod: + style: | + ha-card .entities-info-row { + padding: 5px 20px 5px; + } + - type: custom:room-card + title: Bryggers + entity: light.bryggers_gruppe + icon: mdi:wardrobe + show_icon: true + tap_action: + action: navigate + navigation_path: bryggers + info_entities: + - entity: sensor.wavin_9000_temperature_bryggers + show_icon: false + entities: + - entity: sensor.teknikskab_energi + name: Teknik + icon: + template: + icon: > + return "mdi:server"; + styles: | + return "color: white"; + show_icon: true + show_state: true card_mod: style: | ha-card .entities-info-row { diff --git a/dashboards/minimal/views/kokken.yaml b/dashboards/minimal/views/kokken.yaml index 9eccf3a..3d17004 100644 --- a/dashboards/minimal/views/kokken.yaml +++ b/dashboards/minimal/views/kokken.yaml @@ -8,6 +8,11 @@ - alignment: start - type: custom:decluttering-card + template: temperature_chart_template + variables: + - entity: climate.wavin_9000_kokken + + - type: custom:decluttering-card template: light_group_list_template variables: - group_name: kokken_alle_gruppe diff --git a/dashboards/minimal/views/stue.yaml b/dashboards/minimal/views/stue.yaml index c542279..2826d44 100644 --- a/dashboards/minimal/views/stue.yaml +++ b/dashboards/minimal/views/stue.yaml @@ -8,6 +8,11 @@ - alignment: start - type: custom:decluttering-card + template: temperature_chart_template + variables: + - entity: climate.wavin_9000_stue + + - type: custom:decluttering-card template: light_group_list_template variables: - group_name: stue_gruppe diff --git a/lights.yaml b/lights.yaml index f570ff4..9b01653 100644 --- a/lights.yaml +++ b/lights.yaml @@ -79,6 +79,7 @@ name: Bryggers Gruppe entities: - light.bryggers_indhak + - light.bryggers_2 - platform: group name: Stue Gruppe