type: horizontal-stack cards: - type: custom:button-card entity: sensor.multi_sensor_temperature_01 color_type: card show_name: true show_label: true show_icon: true show_state: true name: Kitchen icon: mdi:silverware-fork-knife state_display: | [[[ var a = entity.state; var floatValue = parseFloat(a.replace(/, /, '.')); return floatValue.toFixed(1).toString().replace('.',',')+ ' °C'; ]]] custom_fields: icon1: > [[[return ' ';]]] icon2: > [[[return ' ';]]] icon3: > [[[return ' ';]]] icon4: > [[[return ' ';]]] styles: grid: - grid-template-areas: '"l" "i" "n" "s"' - grid-template-rows: 1fr 2fr min-content min-content - grid-template-columns: 1fr custom_fields: icon1: - position: absolute - left: 85% - top: 5% icon2: - position: absolute - left: 85% - top: 30% icon3: - position: absolute - left: 85% - top: 55% icon4: - position: absolute - left: 85% - top: 80% - type: custom:button-card entity: sensor.multi_sensor_temperature_02 color_type: card show_name: true show_label: true show_icon: true show_state: true name: Living Room icon: mdi:sofa state_display: | [[[ var a = entity.state; var floatValue = parseFloat(a.replace(/, /, '.')); return floatValue.toFixed(1).toString().replace('.',',')+ ' °C'; ]]] custom_fields: icon1: > [[[return ' ';]]] icon2: > [[[return ' ';]]] icon3: > [[[return ' ';]]] icon4: > [[[return ' ';]]] styles: grid: - grid-template-areas: '"l" "i" "n" "s"' - grid-template-rows: 1fr 2fr min-content min-content - grid-template-columns: 1fr custom_fields: icon1: - position: absolute - left: 85% - top: 5% icon2: - position: absolute - left: 85% - top: 30% icon3: - position: absolute - left: 85% - top: 55% icon4: - position: absolute - left: 85% - top: 80%