lovelace-paper-buttons-row
lovelace-paper-buttons-row copied to clipboard
Postfix not applied when state is template
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:
you can just put the postfix right into the template
"{{ states(config.entity) | round }} W"
Sure.
As well as would like to enjoy benefits of base_config
- to not duplicate staff between entries.