royto / logbook-card

Logbook card for Home Assistant UI Lovelace
GNU General Public License v3.0
203 stars 9 forks source link

Labels do not work in custom:multiple-logbook-card #104

Closed cicero200272 closed 9 months ago

cicero200272 commented 9 months ago

Describe the bug When using custom:multiple-logbook-card, labels in state_map do not work.

To Reproduce Steps to reproduce the behavior:

  1. Create a custom:multiple-logbook-card
  2. Add state_map to the config
  3. Add a label to the state_map config

Expected behavior History entries in the card use the label as configured.

Screenshots image

Correct behaviour in custom:logbook-card: image

Environment (please complete the following information):

Card configuration

- type: custom:multiple-logbook-card
  title: []
  collapse: 5
  group_by_day: true
  date_format: "HH:mm"
  show:
    end_date: false
    duration: false
    state: false
  entities:
    - entity: binary_sensor.turklingel
      hidden_state: ["on", "unavailable"]
      state_map:
        - value: "*"
          label: []
          icon: mdi:alarm-bell
      custom_logs: true
      custom_log_map:
        - name: "*"
          icon: mdi:door-open
          icon_color: var(--state-icon-color)
royto commented 9 months ago

In multiple multiple-logbook-card, the name of the entity is displayed before the state

use entity_name show option to hide it

show:
    end_date: false
    duration: false
    state: false
    entity_name: false
cicero200272 commented 9 months ago

Yeah, I somehow missed the "entity_name" option, my bad... Case closed, thanks a lot!