114 lines
3.0 KiB
YAML
114 lines
3.0 KiB
YAML
title: Dev
|
|
path: dev
|
|
icon: mdi:settings
|
|
panel: true
|
|
cards:
|
|
- type: custom:layout-card
|
|
rebuild: 1000
|
|
cards:
|
|
- !include ../timeofday_card.yaml
|
|
- type: custom:browser-player
|
|
- !include ../local_services.hidden.yaml
|
|
- type: custom:auto-entities
|
|
card:
|
|
type: entities
|
|
title: Okänd status
|
|
filter:
|
|
include:
|
|
- state: "unavailable"
|
|
exclude:
|
|
- attributes:
|
|
type: browser_mod
|
|
- 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
|
|
exclude:
|
|
- attributes:
|
|
type: browser_mod
|
|
- type: custom:auto-entities
|
|
card:
|
|
type: entities
|
|
title: Batterier
|
|
filter:
|
|
include:
|
|
- attributes:
|
|
device_class: "battery"
|
|
options:
|
|
secondary_info: entity-id
|
|
style: |
|
|
{% if state_attr(config.entity, 'unit_of_measurement') == "%" %}
|
|
:host {
|
|
--paper-item-icon-color:
|
|
{% if states(config.entity)|float < 25 %}
|
|
red
|
|
{% elif states(config.entity)|float < 40 %}
|
|
orange
|
|
{% else %}
|
|
var(--text-light-color)
|
|
{% endif %};
|
|
}
|
|
{% endif %}
|
|
- type: custom:auto-entities
|
|
card:
|
|
type: entities
|
|
title: Övriga Sensorer
|
|
filter:
|
|
include:
|
|
- domain: /.*sensor/
|
|
options:
|
|
secondary_info: entity-id
|
|
exclude:
|
|
- attributes:
|
|
device_class: "battery"
|
|
- type: custom:auto-entities
|
|
card:
|
|
type: entities
|
|
title: Automationer
|
|
filter:
|
|
include:
|
|
- domain: automation
|
|
options:
|
|
secondary_info: entity-id
|
|
- type: custom:more-info-card
|
|
entity: vacuum.xiaomi_vacuum_cleaner
|
|
title: Vacuum cleaner
|
|
|
|
- type: custom:auto-entities
|
|
card:
|
|
type: entities
|
|
title: Swarm
|
|
filter:
|
|
include:
|
|
- entity_id: sensor.swarm_*
|