Home and Away Automation not working

Hi all,

I have HA installed in a Docker Container on my NAS and I want to automate the detection in Frigate (also in a Docker Container) so it will stop Motion Detection when I’m at home and start Motion Detection when I’m Away from Home.

HA Companion has been installed on my Android Phone and it communication successfully with HA when at home and remotely.

However HA is not triggering at all, whether at home or away.

Below is the Home Automation, the Away is just the reverse but neither works.

This is what I’ve added into configuration.yaml:

 ##### Proximity integration ##################################
proximity:
  home:
    devices:
      - person.greg
    tolerance: 50 #In meters
    unit_of_measurement: km

This is the Trigger for when I’m Away:

And its associated Action:

I don’t know if it’s related but if I’m at Home, and HA also thinks I’m at Home, and I test the Action it shows “Condition did not Pass”.

Running the Action manually will turn ON and OFF the Motion Detection, it is just not being triggered when I’m Away or returning Home.

Any guidance would be greatly appreciated.

TIA

EDIT:

My location state, whether Home or Away is showing correctly in HA.

Here is automations.yaml.