diff --git a/automations.yaml b/automations.yaml index 8b99293..e2a78c7 100644 --- a/automations.yaml +++ b/automations.yaml @@ -151,13 +151,10 @@ alias: Mikroovn låge test description: '' trigger: - - type: power - platform: device - device_id: a3482d06da2f66ab5dd3c8f890dbeafd - entity_id: sensor.mikroovn_plug_power - domain: sensor - above: 15 - below: 100 + - platform: state + entity_id: + - input_boolean.mikroovn_lage_aben + to: 'on' for: hours: 0 minutes: 5 @@ -171,12 +168,9 @@ entity_id: media_player.dining_room - repeat: until: - - type: is_power - condition: device - device_id: a3482d06da2f66ab5dd3c8f890dbeafd - entity_id: sensor.mikroovn_plug_power - domain: sensor - below: 15 + - condition: state + entity_id: input_boolean.mikroovn_lage_aben + state: 'off' sequence: - service: tts.google_translate_say data: @@ -189,3 +183,53 @@ seconds: 0 milliseconds: 0 mode: restart +- id: '1670163273121' + alias: Mikroovn Låge Åbnet + description: '' + trigger: + - platform: numeric_state + entity_id: sensor.mikroovn_plug_power + for: + hours: 0 + minutes: 0 + seconds: 10 + above: 10 + below: 50 + condition: + - condition: state + entity_id: input_boolean.mikroovn_lage_aben + state: 'off' + action: + - service: input_boolean.turn_on + data: {} + target: + entity_id: input_boolean.mikroovn_lage_aben + mode: single +- id: '1670163454486' + alias: Mikroovn Låge Lukket + description: '' + trigger: + - platform: numeric_state + entity_id: sensor.mikroovn_plug_power + for: + hours: 0 + minutes: 0 + seconds: 10 + above: 50 + - platform: numeric_state + entity_id: sensor.mikroovn_plug_power + for: + hours: 0 + minutes: 0 + seconds: 10 + below: 10 + condition: + - condition: state + entity_id: input_boolean.mikroovn_lage_aben + state: 'on' + action: + - service: input_boolean.turn_off + data: {} + target: + entity_id: input_boolean.mikroovn_lage_aben + mode: single diff --git a/dashboards/minimal/dashboard.yaml b/dashboards/minimal/dashboard.yaml index f5717f5..9470f37 100644 --- a/dashboards/minimal/dashboard.yaml +++ b/dashboards/minimal/dashboard.yaml @@ -4,3 +4,5 @@ - !include views/hjem.yaml - !include views/varme.yaml - !include views/lys.yaml + - !include views/kokken.yaml + - !include views/stue.yaml diff --git a/dashboards/minimal/declutter.yaml b/dashboards/minimal/declutter.yaml index fbfe534..10424cb 100644 --- a/dashboards/minimal/declutter.yaml +++ b/dashboards/minimal/declutter.yaml @@ -36,3 +36,33 @@ variables: - title: "[[title]]" - alignment: "[[alignment]]" + +light_group_list_template: + default: + rename_from: " Gruppe" + rename_to: Test + card: + type: custom:auto-entities + show_empty: false + card: + type: custom:layout-card + layout_type: custom:grid + layout: + grid-template-columns: 1fr 1fr + card_param: cards + filter: + template: |- + [ + {% for light in states.light.[[group_name]].attributes.entity_id %} + {% set entity = states[light] %} + {% if entity != None and entity.state != "unavailable" %} + {{ + { + "type": "custom:mushroom-light-card", + "entity": entity.entity_id, + "name": (entity.attributes.friendly_name | replace(" Gruppe", "")) + } + }}, + {% endif %} + {% endfor %} + ] diff --git a/dashboards/minimal/views/hjem.yaml b/dashboards/minimal/views/hjem.yaml index 6ad1d6f..d569332 100644 --- a/dashboards/minimal/views/hjem.yaml +++ b/dashboards/minimal/views/hjem.yaml @@ -51,43 +51,38 @@ show_icon: true tap_action: action: navigate - navigate_path: kokken + navigation_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"; + entities: + - entity: sensor.mikroovn_plug_power + hide_if: + conditions: + - condition: below + value: 10 + icon: + template: + icon: > + return "mdi:microwave"; + styles: | + if (entity.state > 10 && entity.state < 50) return "color: yellow"; + return "color: white"; + show_icon: true + name: Mikroovn + - entity: sensor.opvaskemaskine_energi + hide_if: + conditions: + - condition: below + value: 5 + show_icon: true + name: Opvasker + icon: + template: + icon: > + return "mdi:dishwasher"; + styles: | + return "color: white"; style: | ha-card .entities-info-row { @@ -100,7 +95,7 @@ show_icon: true tap_action: action: navigate - navigate_path: stue + navigation_path: stue info_entities: - entity: sensor.wavin_9000_temperature_stue show_icon: false diff --git a/dashboards/minimal/views/kokken.yaml b/dashboards/minimal/views/kokken.yaml new file mode 100644 index 0000000..9eccf3a --- /dev/null +++ b/dashboards/minimal/views/kokken.yaml @@ -0,0 +1,13 @@ +title: Køkken +path: kokken +cards: + - type: custom:decluttering-card + template: subpanel_title_template + variables: + - title: Køkken + - alignment: start + + - type: custom:decluttering-card + template: light_group_list_template + variables: + - group_name: kokken_alle_gruppe diff --git a/dashboards/minimal/views/lys.yaml b/dashboards/minimal/views/lys.yaml index 0a643a9..0d283c8 100644 --- a/dashboards/minimal/views/lys.yaml +++ b/dashboards/minimal/views/lys.yaml @@ -6,3 +6,8 @@ variables: - title: Lys - alignment: start + + - type: custom:decluttering-card + template: light_group_list_template + variables: + - group_name: alle diff --git a/dashboards/minimal/views/stue.yaml b/dashboards/minimal/views/stue.yaml new file mode 100644 index 0000000..c542279 --- /dev/null +++ b/dashboards/minimal/views/stue.yaml @@ -0,0 +1,13 @@ +title: Stue +path: stue +cards: + - type: custom:decluttering-card + template: subpanel_title_template + variables: + - title: Stue + - alignment: start + + - type: custom:decluttering-card + template: light_group_list_template + variables: + - group_name: stue_gruppe diff --git a/scenes.yaml b/scenes.yaml index e69de29..fe51488 100644 --- a/scenes.yaml +++ b/scenes.yaml @@ -0,0 +1 @@ +[] diff --git a/zigbee2mqtt/coordinator_backup.json b/zigbee2mqtt/coordinator_backup.json index e999ea4..d3b88f2 100644 --- a/zigbee2mqtt/coordinator_backup.json +++ b/zigbee2mqtt/coordinator_backup.json @@ -4,7 +4,7 @@ "version": 1, "source": "zigbee-herdsman@0.14.76", "internal": { - "date": "2022-12-03T05:37:17.915Z", + "date": "2022-12-04T05:37:18.358Z", "znpVersion": 1 } }, @@ -25,7 +25,7 @@ "network_key": { "key": "01030507090b0d0f00020406080a0c0d", "sequence_number": 0, - "frame_counter": 2235455 + "frame_counter": 2332560 }, "devices": [ {