frontend
frontend copied to clipboard
Support attributes in conditional rows
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:
- [x] Documentation added/updated for www.home-assistant.io
this would not only change it for conditional rows, but also for conditional cards, please also update the conditionStruct
used in the editor.
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.