Dynamic Location option

For mobile HA instances there is a need to make the location as set in System, General dynamic iso a fixed location. For Boats or Campers it would help if HA can determine the location of where the instance resides. This will provide the right values for Weather, sun etc. etc.

That should not be a big change I would think.

A service for updating your home location already exists.

https://www.home-assistant.io/integrations/homeassistant#service-homeassistantset_location

It was added precisely for this application, i.e. home assistant on boats or RVs.

e.g.

trigger:
  - platform: state
    entity_id: sensor.gps_latitude
    not_to:
      - unknown
      - unavailable
  - platform: state
    entity_id: sensor.gps_longitude
    not_to:
      - unknown
      - unavailable
action:
  - service: homeassistant.set_location
    data:
      latitude: "{{ states('sensor.gps_latitude') }}"
      longitude: "{{ states('sensor.gps_longitude') }}"
mode: single

Thanks Tom!
I will remove the Feature request.