owntracks / ios

OwnTracks' iPhone App
http://owntracks.org
Other
328 stars 91 forks source link

Question: please help to import zones from Home Assistant #805

Open jbrepogmailcom opened 2 weeks ago

jbrepogmailcom commented 2 weeks ago

Hello. Instead of OwnTracks to detect position once a while and report it to Home Assistant to check in/out of zone. I would like to import HA zones to OwnTracks on iOS and have the iOS handle entries and exits. I looked at booklet and there is some json structured command to import zones.

Is there easier way to import zones from HA to OwnTracks over mqtt? I tried advice like adding following to HA's configuration.yaml, but it did not work:

owntracks:
  waypoints: true
  waypoint_whitelist:
    - janb

Would you have any advice please?

jpmens commented 2 weeks ago

The method to create Regions in iOS OwnTracks is that which you've found in the Booklet, by publishing appropriate CMD over MQTT. Note that you should use QoS>0 to ensure the device gets the publish even if it's currently not open.