Hi,
I trying to modify the logbook entities. I would like to overwrite the entity-name with an alias name and state icon depending on the state. Also the state name should be modified. I tried this with this code, but it is not working. The state map works only with one mapping (lable or icon) but not in parallel. Any ideas?
type: custom:multiple-logbook-card
desc: true
date_format: dd.MM.YYYY hh:mm:ss
max_items: 4
history: 1
group_by_day: true
show:
state: true
duration: false
start_date: true
end_date: false
icon: true
separator: false
entity_name: true
entities:
- entity: binary_sensor.reed_input
state_map:
- icon: mdi:door-open
value: 'on'
- icon: mdi:door-closed
value: 'off'
- label: geschlossen
value: 'off'
- label: geöffnet
value: 'on'
- entity: binary_sensor.ir_input
state_map:
- icon: mdi:leak
value: 'on'
- icon: mdi:leak-off
value: 'off'
title: Haustür & Lichtschranke