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

Check the named entity's state/attribute when hiding

Open akomelj opened this issue 2 years ago • 1 comments

This pull request extends hide_if configuration schema to optionally allow for using the named entity's state/attribute when evaluating criteria for showing/hiding the entity, instead of using the entity's own state/attribute.

Example

  - type: custom:multiple-entity-row
    entity: switch.dsc_armed_away
    toggle: true
    entities:
      - entity: sensor.dsc_exit_state
        hide_if:
          entity: switch.dsc_armed_away
          value: 'off'

Alarm exit state sensor's value (sensor.dsc_exit_state) will be displayed only when the alarm is armed (switch switch.dsc_armed_away is ON).

akomelj avatar Jan 07 '23 10:01 akomelj

Any progress here to get this pull request done? I would need this feature, too, but am unable to contribute due to lack of programming skills.

TheNightmanX avatar Jun 14 '24 06:06 TheNightmanX