n.3
December 8, 2023, 1:00pm
1
Hey,
I want to add a tile card with information from my dhishwasher (geschirrspueler). I have the following entities:
switch.geschirrspuler_power
sensor.geschirrspuler_operation_state
sensor.geschirrspuler_program_progress
sensor.geschirrspuler_remaining_program_time
I want something like this
type: tile
entity: switch.geschirrspuler_power
state_content:
- state
- last-changed
- sensor.geschirrspuler_operation_state
- sensor.geschirrspuler_program_progress
- sensor.geschirrspuler_remaining_program_time
Any ideas?
I would suggest to consider:
– either use other cards in a stack-like structure,
– or Entities card, may be with custom:multiple-entity-row,
– or may be anything what you wish by custom:button-card
n.3
December 9, 2023, 8:42pm
3
Hey @Ildar_Gabdullin thank you for the hint. If found the lovelace multiple-entity-row card but it doesn’t fit my needs and I solved the Problem with mushroom cards:
type: custom:stack-in-card
mode: vertical
cards:
- type: custom:stack-in-card
mode: horizontal
cards:
- type: tile
entity: switch.geschirrspuler_power
state_content:
- state
- last-changed
- type: horizontal-stack
cards:
- type: custom:mushroom-chips-card
chips:
- type: entity
entity: sensor.geschirrspuler_operation_state
- type: entity
entity: sensor.geschirrspuler_program_progress
- type: entity
entity: sensor.geschirrspuler_remaining_program_time
alignment: center
style: |
ha-card {
border-radius: 20px;
}
Maybe you can give me an other hint I get a value in seconds from my knx
- name: x operating hours
state_address: "2/1/34"
type: long_delta_timesec
Is it possible to format the value into hour without templating?
chips:
- type: entity
entity: {{ ??? }}
I have a lot of entities with working hours as seconds and don’t want to create a new sensor for each entitiy only to change the format.
No, not using mushrooms))
Having the same issue, and came up with the following template sensor:
- unique_id: spulmaschine
name: >-
Spülmaschine
icon: mdi:dishwasher
state: >-
{% if is_state("switch.spulmaschine_power","off") %}
Ausgeschaltet
{% elif is_state("sensor.spulmaschine_operation_state", "Run") %}
Läuft
{% else %}
Bereit
{% endif %}
attributes:
power: >-
{{ is_state("switch.spulmaschine_power", "on") }}
operation_state: >-
{{ states("sensor.spulmaschine_operation_state") }}
progress: >-
{{ states("sensor.spulmaschine_program_progress") }} %
remaining_time: >-
{{ states("sensor.spulmaschine_remaining_program_time") }}
door: >-
{{ states("binary_sensor.spulmaschine_door") }}
door_german: >-
{% if is_state("binary_sensor.spulmaschine_door", "on") %}
Offen
{% else %}
Geschlossen
{% endif %}
supply: >-
{{ states("number.spulmaschinentabs_supply")|int }} Tabs
program: >-
{% set programs = [
"switch.spulmaschine_program_auto2",
"switch.spulmaschine_program_eco50",
"switch.spulmaschine_program_intensiv70",
"switch.spulmaschine_program_prerinse",
"switch.spulmaschine_program_nightwash",
"switch.spulmaschine_program_machinecare"
] %}
{% for s in programs %}
{% if is_state(s, "on") %}
{{ state_attr(s, "friendly_name") }}
{% endif %}
{% endfor %}
The tile card can show the state like this:
type: tile
entity: sensor.spulmaschine
name: Spülmaschine
layout_options:
grid_columns: 4
grid_rows: 2
state_content:
- state
- door_german
- supply
icon_tap_action:
action: call-service
service: switch.toggle
target:
entity_id: switch.spulmaschine_power