#home , not_home vs Home Not_home

1 messages · Page 1 of 1 (latest)

spiral wind
#

IHas anyone else experiance that the person.xyz state is not home or not_home. but instead Home and Not_home?

I have been using frigate and the "Frigate Camera Notificatons" and been having issues getting many notifications even tho we were home.

I had am a programmer so i dove in to the code of the blue print it self and it as line like this:

initial_home: '{{ presence_entity != '''' and presence_entity|expand|selectattr(''state'',''eq'',''home')|list|length
that aparently is the cause.

after further investigations i notice that sometimes it has this state see image (this image is a recreation as i had to chance it manually to test to code i made:)

{%
set pe = [
states.person.jenilyn,
states.person.fanno
] %}

jenilyn: {{ states.person.jenilyn.state}}
fanno : {{ states.person.fanno.state}}

test {{ pe |expand|selectattr("state", "eq", "home")|list| length != 0 }}
test2: {{ pe|expand|selectattr("state", "match", "^home$", ignorecase=true) | list | length != 0 }}

resulting in :
jenilyn: Home
fanno : not_home

test False
test2: True

so the "fix" may be to just make the test incasesensetive some how.
However given i am a programmer it seems odd to me that the "state" used for "coding" and functions would not be "universal"

i am not sure where the Differance comes from. but i suspect it may have something to do with wife and i not using same language on the phones and accounts ? she is english and i am danish.

In the app it also shows "Home" and Ude/Hjemme(danish for nothome/home)

It seems to be the wifes state that is often wrong ?

Where should i start looking.

Thanks

#

wanted to add this aswell i forget

if i manually set wife to home instead of Home it show the correct state on my UI

cyan sedge
#

What you're seeing there is the translated state. Go to devtools -> States to see the real state string

#

device_tracker and person entities will be home, not_home, or the name of a zone if they're in one (in whatever case you gave it)

spiral wind
#

yes the first picture is taken from the state

#

it shows Home not home as i would have expected

#

(that petiqular picture IS a recreation.) i saw it when i first started testing but not thing anything off ity untill later on in the testing.

#

I am just wondering if i could have something setup wrong in HA it self or maybe in wifes phone app that could cause it to update to Home instead of home

#

Hmm i just realize i had a zone created named "Home" and one named "hjem" hjem means home. .guessing the hjem is default i cant delete it ?

I am guessing this would be the cause?
i have deleted "Home"