lovelace-slider-entity-row
lovelace-slider-entity-row copied to clipboard
Allow secondary_info with custom attribute when state is off
Currently it is not possible to show secondary_info with custom (non-default) attribute when state is off.
Allow a secondary_info
(like brightness
or brightness_pct
) when entity's state is off.
Perhaps divide them into
-
secondary_info_on
and -
secondary_info_off
Target: use secondary_info_on: brightness_pct
when on and secondary_info_off: last-updated
when off.
State on is fine:
State off is missing secondary_info:
Used for example:
- type: custom:slider-entity-row
entity: light.lampe_tisch
name: Lampe Tisch
hide_when_off: true
full_row: false
min: 1
max: 100
step: 1
attribute: brightness_pct
toggle: true
show_state: true
state_color: true
secondary_info: brightness
state_header: ''
column: false
I have no idea how to implement this. Just stumbled over the same requirement once again, aiming at creating a feature request, realizing there is already one (this one), being surprised it is my own. PRICELESS 😉
So when using this frontend integration it just really misses an important information, the last change in my case.
try to use this: https://github.com/custom-cards/secondaryinfo-entity-row
try to use this: https://github.com/custom-cards/secondaryinfo-entity-row
So I need to install another frontend integration (https://github.com/custom-cards/secondaryinfo-entity-row) which
- a) is almost two years old (never feels good running old component thinking of the frequent updates the UI receives)
- b) needs another integration (https://github.com/thomasloven/lovelace-card-tools) of the same author of this one (lovelace-slider-entity-row)
...that's getting just wayyyyyyyy to complicated and too much overhead for that small extra.
Summary: thank you for the hint, but I'd still go for adding this "feature" directly in lovelace-slider-entity-row.
Anything to the left of the slider is handled by Home Assistant and will only have the features that any other row has.
Any other row has the secondary_info feature. Or am I missing something.
Yes. In exactly the same way as slider-entity-row does. No more. No less.
So wait, just to make this clear (I probably didn't understand you right) or to sum up what I understood:
I can have either secondary_info: brightness
OR secondary_info: last-changed
. You closed it as "completed" while that would rather be "not possible".
Maybe card-mod can do some magic here. Otherwise I'm out of ideas.