Automation Failing due to state mismatch

I have an automation that has condition of the my iphone activity state. The trace shows the state value same but still shows failure. Can someone identify why is this a mismatch state?

Here is what trace says:

conditions/1/entity_id/0

[If Types of Naseem’s iPhone Activity is - Unknown]
Executed: May 13, 2025 at 8:11:51 PM
Result:

result: false
state: - Unknown
wanted_state: ‘- Unknown’

entity: sensor.naseems_iphone_activity

you didn’t show the automation yaml configuration but by looking at the trace and guessing it loloks like you have an unwanted ’ - ’ in front of ‘Unknown’.

the actual state is “Unknown” not “- Unknown”

Thanks. I had Unknown but then it also failed, so I looked at the trace, which shows the dash, so I placed that dash.