Should be a straightforward automation then. The automation in the linked post updates whenever it changes. If you only want to do it once per day for whatever reason:
alias: Update home zone
trigger:
- platform: time
at: "02:00:00"
action:
- service: homeassistant.set_location
data:
latitude: "{{ state_attr('device_tracker.YOUR_TABLET', 'latitude') }}"
longitude: "{{ state_attr('device_tracker.YOUR_TABLET', 'longitude') }}"
A bilge alarm notification.
Engine alarm notifications.
Security alarm when moored.
Navigation lights on at dusk off at dawn, if moving.
Interior lighting.
Energy tracking (solar, wind, engine battery charging).
I used to follow a youtube channel about Home Assistant on a yacht. It was quite interesting. Unfortunately they took the channel down after an attempted targeted attack on their system.
Thanks for this. I have been working on making my camper smart, and this is one thing I absolutely wanted to do. I realized that my Verizon Mifi has a built in NMEA GPS stream/server. I now have an automation run every 30 minutes - if HA is connected through the Mifi, it pulls latitude, longitude and altitude data from the Mifi and updates the home location accordingly. When I get home and switch back to the home network, another automation resets my home location.