diff --git a/.gitignore b/.gitignore index 2b36cf5..14aa791 100644 --- a/.gitignore +++ b/.gitignore @@ -9,5 +9,6 @@ /appdaemon/* !/appdaemon/apps *.json +*.hidden.* !/lovelace/ diff --git a/lovelace/main.yaml b/lovelace/main.yaml index 761428c..29ec69e 100644 --- a/lovelace/main.yaml +++ b/lovelace/main.yaml @@ -19,9 +19,4 @@ views: cards: {{ dev_card }} - !include floorplan.yaml - - title: Dev - path: dev - icon: mdi:settings - cards: - {{ dev_card }} - - !include timeofday_card.yaml + - !include views/dev_view.yaml diff --git a/lovelace/resources.yaml b/lovelace/resources.yaml index 600c815..49a16fa 100644 --- a/lovelace/resources.yaml +++ b/lovelace/resources.yaml @@ -8,3 +8,5 @@ type: js - url: !file /local/lovelace-slider-entity-row/slider-entity-row.js type: js +- url: !file /local/lovelace-auto-entities/auto-entities.js + type: js diff --git a/lovelace/views/dev_view.yaml b/lovelace/views/dev_view.yaml new file mode 100644 index 0000000..1b877e1 --- /dev/null +++ b/lovelace/views/dev_view.yaml @@ -0,0 +1,63 @@ +title: Dev +path: dev +icon: mdi:settings +cards: + - !include dev_card.yaml + - !include timeofday_card.yaml + - !include local_services.hidden.yaml + - type: custom:auto-entities + card: + type: entities + title: Tända lampor + filter: + include: + - domain: light + state: "on" + exclude: + - attributes: + hidden: true + - type: custom:auto-entities + card: + type: entities + title: Släckta lampor + filter: + include: + - domain: light + state: "off" + exclude: + - attributes: + hidden: true + - type: custom:auto-entities + card: + type: entities + title: Lampor/Brytare + filter: + include: + - domain: light + options: + secondary_info: entity-id + - domain: switch + options: + secondary_info: entity-id + - type: custom:auto-entities + card: + type: entities + title: Batterier + filter: + include: + - attributes: + device_class: "battery" + options: + secondary_info: entity-id + - type: custom:auto-entities + card: + type: entities + title: Övriga Sensorer + filter: + include: + - domain: sensor + options: + secondary_info: entity-id + exclude: + - attributes: + device_class: "battery"