royto / logbook-card

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

Custom_log_map for multi entities #127

Open rwzdoorn opened 4 months ago

rwzdoorn commented 4 months ago

Is your feature request related to a problem? Please describe. Not a problem, but I am using this card to show activities of multiple entities. It works for me as a debugger, but want to use it as a 'quick view' of activities.

Describe the solution you'd like Add custom_log_map support for multi entities. I want to be able to rename the entity, give a different icon when a state changed.

Describe alternatives you've considered I am using the state-map, but this only changes partial the name of an entity. For instance; Washing machine Program Progress 99% will become Washing machine Program Progress Ready. I want to name it simply 'Washing machine Ready' .

For instance I have this setup:

type: custom:multiple-logbook-card
title: Activities
desc: true
date_format: relative
group_by_day: true
max_items: 10
hours_to_show: '120'
show:
  duration: false
  end_date: false
  start_date: true
entities:
  - entity: sensor.washing_machine_program_progress
    hidden_state:
      - unavailable
    state_map:
      - label: Ready
        value: '99'