Skip to content

Conversation

@OskarLinde
Copy link
Contributor

This diff adds the option to use wildcards to specify entity rules. This can save a lot of typing and need to manually update rule files when adding additional entities to the system.

Examples

Light Rule:

        - entity: light.*

Temperature Visualization Rule:

        - entity: sensor.*_temperature

Door State Visualization:

        - entities:
            - binary_sensor.*_door
            - lock.*_door

@exetico
Copy link
Member

exetico commented Jun 2, 2025

Hi,

Thanks for the PR. Much appreciated.

Could I kindly ask you to include testing for alle scenarios? A valid wildcard, and a non-valid (error printed in the logs). Please find the most related test-file and make, run and validate the mentioned test, so we're sure it's working now; but also in the future. Please don't touch the existing it's, but make new ones for the two cases.

https://github.com/ExperienceLovelace/ha-floorplan/blob/master/tests/jest/tests/

@exetico
Copy link
Member

exetico commented Sep 14, 2025

Hi,

Did you find time to look into this? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants