lovelace - Add a dev view

This commit is contained in:
Thomas Lovén 2019-02-06 22:06:20 +01:00
parent 35522323f5
commit d9dacab3c0
4 changed files with 67 additions and 6 deletions

1
.gitignore vendored
View File

@ -9,5 +9,6 @@
/appdaemon/* /appdaemon/*
!/appdaemon/apps !/appdaemon/apps
*.json *.json
*.hidden.*
!/lovelace/ !/lovelace/

View File

@ -19,9 +19,4 @@ views:
cards: cards:
{{ dev_card }} {{ dev_card }}
- !include floorplan.yaml - !include floorplan.yaml
- title: Dev - !include views/dev_view.yaml
path: dev
icon: mdi:settings
cards:
{{ dev_card }}
- !include timeofday_card.yaml

View File

@ -8,3 +8,5 @@
type: js type: js
- url: !file /local/lovelace-slider-entity-row/slider-entity-row.js - url: !file /local/lovelace-slider-entity-row/slider-entity-row.js
type: js type: js
- url: !file /local/lovelace-auto-entities/auto-entities.js
type: js

View File

@ -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"