Hi!
Ich wollte gerne mal teste wie man einen Code welcher in den INspirationen zur verfügung gestellt wird in meinen Homeassistant Dashboard einfügt…
Egal wie ich es versuche sagt er mir mit einem Fehler das es keinen stack-in-card gibt…
type: custom:stack-in-card
mode: vertical
cards:
- type: custom:mushroom-person-card
entity: person.david
use_entity_picture: true
hide_name: true
layout: vertical
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: binary_sensor.kb2003_is_charging
content_info: none
card_mod: null
style: |
ha-card {
box-shadow: 0px 0px;
}
icon_color: |-
{% set state=states('binary_sensor.kb2003_is_charging') %}
{% if state=='on' %}
green
{% elif state=='off' %}
yellow
{% else %}
red
{% endif %}
- type: entity
entity: binary_sensor.kb2003_bluetooth_state
content_info: none
card_mod: null
style: |
ha-card {
box-shadow: 0px 0px;
}
icon_color: |-
{% set state=states('binary_sensor.kb2003_bluetooth_state') %}
{% if state=='on' %}
green
{% elif state=='off' %}
red
{% endif %}
- type: entity
entity: sensor.kb2003_battery_level
content_info: none
card_mod: null
style: |
ha-card {
box-shadow: 0px 0px;
}
- type: entity
entity: sensor.pkb2003_ringer_mode
content_info: none
card_mod: null
style: |
ha-card {
box-shadow: 0px 0px;
}
alignment: center