On a seoerate note i just changed my phone for an s10 I have an automatio to leave and one to arrive. If i manually run the automation it works. However when i leave and go beyond 200 meters the automation is not triggered.
I have owntracks on my phone properly configured and my phone has location tracking turned on and so is mobile wifi. what am i missing
DeltaNu1142, question, we do you same define the zones through the ui? Just curios, I just created a few new zones via yaml, and its much easier - and precise. I have several zones created from the UI.
I did create the home and arbahomew in the GUI and in owntrack swill test them today.
As i mentioned when I try to install the zones in the yaml i get the errors mentionned here above. It is probably a syntax error because if i go to and look at the devices i see zone.hoime and zone.arbahome
in the automation i have a trigger device is my phone and the entity my phone leaves the zone. I can trigger this automation manually and it works however when i’m away (beyond the 100 meters) the automation does not run.
The error message is telling you that customize is not an integration, which is true. Your other !include statements are for integrations.
This is why you need to put the customize include within its integration i.e. homeassistant.
If you don’t currently have an explicit homeassistant: key in your config.yaml then you need to add it first, then add the !include statement for customize.yaml underneath it, indented by 2 spaces.
Also, please check how to format yaml in your posts as it makes it much easier to see what you’ve done - you can do this by selecting your code, and using the </> edit menu button.
I really do not know what i am doing in this file editor. However i moved thngs around (again trying to guess corectly) and so far i checked the configuration and it whenty ok and i restated HA. I will try tomorrow and go out to test the automation
thiws is what my configuration .yaml looks like at the moment… The automations, all the scenes and scripts are all there now
That stiill isn’t correct. You haven’t written the include statement correctly, and in any case you’ve put it in the wrong place under default_config:. To repeat:
Explicitly declare the homeassistant integration in your config.yaml by adding the following line (you usually don’t need this, unless you want to do things like use packages, or customize entities via yaml that you cannot customize via the UI):
homeassistant:
Point to your customize.yaml file by adding the following include statement immediately underneath, indented by 2 spaces:
customize: !include customize.yaml
Taken together, the 2 lines should look like this:
@DeltaNu1142 - Can I ask what problems you experienced when you were referencing lat/long indirectly via secrets.yaml please? I was about to set them up in my own secrets.yaml but came across your post and wondered if it is a bad idea to do that?
My whole issue (now solved) is documented here. All “person” locations stopped working. At first I thought it was due to an HA core update, but later I realized that it was all because I had non-numerical values where HA was expecting lat & long.
Yeah, big problem, small fix. I seem to cause a lot of big problems by making little tweaks! I’m starting to get in the habit of making them one at a time so as to catch them before I lose track…