diff --git a/.gitignore b/.gitignore index 2730274..ed4a148 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ secrets.yaml zigbee2mqtt/log/*.* .gitignore +zigbee2mqtt/state.json diff --git a/dashboards/minimal/views/hjem.yaml b/dashboards/minimal/views/hjem.yaml index 5d34464..6ad1d6f 100644 --- a/dashboards/minimal/views/hjem.yaml +++ b/dashboards/minimal/views/hjem.yaml @@ -31,6 +31,7 @@ } - type: custom:gap-card + height: 10 - type: custom:stack-in-card mode: horizontal @@ -41,24 +42,70 @@ entity: person.berit_bagge - type: custom:gap-card + height: 10 - - type: custom:stack-in-card - mode: horizontal - cards: - - type: custom:room-card - title: Køkken - entity: light.kokken_alle - icon: mdi:stove - show_icon: true - tap_action: - action: navigate - navigate_path: kokken + - type: custom:room-card + title: Køkken + entity: light.kokken_alle_gruppe + icon: mdi:stove + show_icon: true + tap_action: + action: navigate + navigate_path: kokken + info_entities: + - entity: sensor.wavin_9000_temperature_kokken + show_icon: false + rows: + - entities: + - entity: light.flowerpot + show_icon: true + name: Flowerpot + tap_action: + action: toggle + - entity: light.vetrineskab + show_icon: true + name: Vetrine + tap_action: + action: toggle + - entity: sensor.mikroovn_plug_current + icon: + template: + icon: > + return "mdi:microwave"; + styles: | + if (entity.state > 0) return "color: yellow"; + else if (entity.state > 50) return "color: red"; + else return "color: white;"; + show_icon: true + name: Mikroovn + - entity: sensor.opvaskemaskine_strom + show_icon: true + name: Opvasker + icon: + template: + icon: > + return "mdi:dishwasher"; + styles: | + if (entity.state > 5) return "color: red"; + else return "color: white"; - - type: custom:room-card - title: Stue - entity: light.stue_gruppe - icon: mdi:sofa - show_icon: true - tap_action: - action: navigate - navigate_path: stue + style: | + ha-card .entities-info-row { + padding: 5px 20px 5px; + } + - type: custom:room-card + title: Stue + entity: light.stue_gruppe + icon: mdi:sofa + show_icon: true + tap_action: + action: navigate + navigate_path: stue + info_entities: + - entity: sensor.wavin_9000_temperature_stue + show_icon: false + card_mod: + style: | + ha-card .entities-info-row { + padding: 5px 20px 5px; + } diff --git a/lights.yaml b/lights.yaml index 6f47110..f570ff4 100644 --- a/lights.yaml +++ b/lights.yaml @@ -18,12 +18,13 @@ - light.kokken_o_2 - platform: group - name: Køkken Alle + name: Køkken Alle Gruppe entities: - light.kokken_gruppe - light.kokken_o_gruppe - light.flowerpot - light.spisebord_gruppe + - light.vetrineskab - platform: group name: Spisebord Gruppe