Device tracker state home case sensitive

Hi,
my first bug report
tracker return home state instead of Home in the automation

Regards

If iPhone_private is Home

Executed: May 19, 2025 at 12:27:42 PM
Result:
result: false

entity_id/0

Executed: May 19, 2025 at 12:27:42 PM
Result:
result: false state: home wanted_state: Home
entity: device_tracker.iphone

Version core-2025.5.2
Installation type Home Assistant OS
Development false
Supervisor true
Docker true
User root
Virtual environment false
Python version 3.13.3
Operating system family Linux
Operating system version 6.12.23-haos
CPU architecture x86_64

This is not a bug report…
Those go here →
(Be sure to search there to make sure it has not already been reported. If it has, thumbs up the report, don’t add me-too info…)

Reporting issues - Home Assistant.

It’s not a bug - all states are case sensitive in automations.

1 Like

As far as I know the automation editor helps you with devices with known states.
Did you write the automation by yourself?

Edit: just looked at it, when I make an automation I get presented with all zones I have added.

So… How did you mess that up?

This is correct. “Home” is used in the UI (the devs thought it would be easier, or prettier or something) but in yaml it’s lower case. Same with On and on, Off and off etc. It’s a feature.