ha-floorplan icon indicating copy to clipboard operation
ha-floorplan copied to clipboard

Add support for wildcard entity IDs

Open OskarLinde opened this issue 7 months ago • 2 comments

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

OskarLinde avatar May 30 '25 19:05 OskarLinde

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 avatar Jun 02 '25 14:06 exetico

Hi,

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

exetico avatar Sep 14 '25 13:09 exetico