question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow secondary_info with custom attribute when state is off

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thomaslovencommented, Dec 26, 2022

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

0reactions
thomaslovencommented, Dec 26, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom Secondary Info for Entities Card
I have created a custom row for the Entities card, which allows you to ... variables: - states['automation.update_abb_usage'].attributes[' ...
Read more >
name and secondary too close to image · Issue #21 - GitHub
working nicely! was not using the 'state' till now, this. card: type: custom:template-entity-row entity: '[[entity]]' secondary: > {{states.
Read more >
Using data attributes - Learn web development | MDN
This article is adapted from Using data attributes in JavaScript and CSS on hacks.mozilla.org. Custom attributes are also supported in SVG 2; ...
Read more >
Custom attributes in Exchange Server - Microsoft Learn
Summary: Learn to use the custom attributes in Exchange Server 2016 or Exchange Server 2019 to add information about a mail recipient.
Read more >
Custom Attributes and Item Library | Square Support Center - US
Not only can using this information with Custom Attributes be used to help run the business, but it will allow a one-stop shop...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found