frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Support attributes in conditional rows

Open swiergot opened this issue 2 years ago • 2 comments

Proposed change

Allow testing against entity's attribute in conditional rows.

Type of change

  • [ ] Dependency upgrade
  • [ ] Bugfix (non-breaking change which fixes an issue)
  • [x] New feature (thank you!)
  • [ ] Breaking change (fix/feature causing existing functionality to break)
  • [ ] Code quality improvements to existing code or addition of tests

Example configuration

- type: conditional
  conditions:
    - entity: fan.mi_air_purifier_pro
      attribute: "preset_mode"
      state: "Favorite"
  row:
    entity: number.mi_air_purifier_pro_favorite_level

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue or discussion:
  • Link to documentation pull request: https://github.com/home-assistant/home-assistant.io/pull/23920

Checklist

  • [x] The code change is tested and works locally.
  • [x] There is no commented out code in this PR.
  • [ ] Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

swiergot avatar Aug 28 '22 12:08 swiergot

this would not only change it for conditional rows, but also for conditional cards, please also update the conditionStruct used in the editor.

bramkragten avatar Sep 16 '22 12:09 bramkragten

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.

github-actions[bot] avatar Dec 15 '22 13:12 github-actions[bot]