Device tracker zone name capitalization

Hi,

I have two zones defined, ‘Home’ and ‘Work’.

zone:
  - name: Home
  [...]
  - name: Work
  [...]

All devices at home show up as “home” (lowercase “h”); devices at work show up as “Work” (capital “W”).
Where is that inconsistency coming from?

Sebastian

Bugs the hell out of me!

So you see that too?

Indeed!

I think even if you have Home set as a zone the default overrides it., same with “not home”

I think it is because home / not_home are statuses, any other zone you define is just information.

This used to really bug me too. I have some template sensors (with help from someone else on this forum) that make everything Title Case:

sensor:
  - platform: template
    sensors:
      jonos_iphone_location:
        value_template: '{{ states("device_tracker.jonos_iphone")|replace("_"," ")|title }}'

Thanks for that!
For now, I just renamed my “Work” zone to “work” - I’ll see next week if that at least brings some consistency…

Sebastian