nielsfaber / scheduler-component

Custom component for HA that enables the creation of scheduler entities
GNU General Public License v3.0
631 stars 41 forks source link

Zone condition is case sensitive #258

Closed p-nightmare closed 1 year ago

p-nightmare commented 1 year ago

Checklist

Card Version

2.4.1

Component Version

3.2.14

Bug description

When zone condition of an entity is set via the custom card (using the service provided by the component there are no issues), it's working only if the zone name is lower case. If the zone name is upper case (or capitalized) selecting the condition will not trigger the actions. Default "home" zone is not affected

Steps to reproduce

Set an entity with an upper case or capitalized zone name. Set a schedule with zone condition of the choosen entity.

Additional info

No response

nielsfaber commented 1 year ago

If I understand you correctly, your request is to make the condition for a zone not case sensitive? For me this is not really a bug but could be an improvement. In principle 'home' is not the same as 'Home'. Perhaps it's even possible in HA to create two separate zones with these names.

p-nightmare commented 1 year ago

In my case, in the card, if the zone is 'Test' instead of 'test', selecting it as condition will not trigger the event because it's converted to "test" It works correctly if the zone is all lower case like the default "home" zone. Some screenshots: Strumenti-per-sviluppatori-–-Home-Assistant Panoramica-–-Home-Assistant Panoramica-–-Home-Assistant (1)

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days