lovelace-slider-entity-row icon indicating copy to clipboard operation
lovelace-slider-entity-row copied to clipboard

Allow secondary_info with custom attribute when state is off

Open bcutter opened this issue 2 years ago • 1 comments

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: grafik

State off is missing secondary_info: grafik

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

bcutter avatar Feb 26 '22 17:02 bcutter

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.

bcutter avatar Sep 10 '22 22:09 bcutter

try to use this: https://github.com/custom-cards/secondaryinfo-entity-row

Santanachia avatar Dec 02 '22 21:12 Santanachia

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.

bcutter avatar Dec 02 '22 22:12 bcutter

Anything to the left of the slider is handled by Home Assistant and will only have the features that any other row has.

thomasloven avatar Dec 26 '22 00:12 thomasloven

Any other row has the secondary_info feature. Or am I missing something.

bcutter avatar Dec 26 '22 00:12 bcutter

Yes. In exactly the same way as slider-entity-row does. No more. No less.

thomasloven avatar Dec 26 '22 01:12 thomasloven

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.

bcutter avatar Dec 29 '22 00:12 bcutter