lovelace-paper-buttons-row icon indicating copy to clipboard operation
lovelace-paper-buttons-row copied to clipboard

Postfix not applied when state is template

Open Masterz69 opened this issue 3 years ago • 2 comments

Do I right to expect to have postfix added in both cases ?

- type: custom:paper-buttons-row
  base_config:
    name: false
    state:
      postfix: " W"
  buttons:
    - - entity: sensor.sva_lights_power
        icon: 'mdi:lightbulb-group-outline'
        layout: icon|state_name
        name: 'Lights'
      - entity: sensor.sva_lights_power
        icon: 'mdi:lightbulb-group-outline'
        layout: icon|state_name
        name: 'Lights'
        state: "{{ states(config.entity) | round }}"

Actually show: image

Masterz69 avatar Jan 28 '22 11:01 Masterz69

you can just put the postfix right into the template

"{{ states(config.entity) | round }} W"

mikedrawback avatar Feb 09 '22 06:02 mikedrawback

Sure. As well as would like to enjoy benefits of base_config - to not duplicate staff between entries.

Masterz69 avatar Feb 09 '22 08:02 Masterz69