Dynamic position for home zone

All,

As I’m using HA on my boat, I would love to have the “home” position automatically update as we move around. I have tried to just use a gps sensor directly by replacing this in configuration.yaml;

homeassistant:

Name of the location where Home Assistant is running

name: Hvalborg

Location required to calculate the time the sun rises and sets

latitude: 59.1000
longitude: 10.0000

with this;

homeassistant:

Name of the location where Home Assistant is running

name: Hvalborg

Location required to calculate the time the sun rises and sets

latitude: sensor.hvalborg_gps_lat
longitude: sensor.hvalborg_gps_lon

but that results in an error; invalid latitude for dictionary value @ data[‘latitude’]

I also tried to create a new “Home” zone, but that gives the same error message. The state of sensor.hvalborg_gps_lat is the position in numeric format.

Any idea how I can make this work?

Thanks!

What you want is not possible. You will need a custom component to handle your needs. I would think it would just need to be a custom sun component that uses a device_tracker location.