I'm trying to set up a device tracker to monitor 3 states for my device: home, work, away. I already use Tasker to monitor locations so making this work would fulfill my needs for home assistant tracking without using any extra battery.
To do this I have an MQTT device tracker set up in configuration.yaml:
mqtt: - device_tracker: name: "tracker_tasker" state_topic: "location/user" json_attributes_topic: "location/user"
Then I use a task created by bokub to update the tracker via Tasker: ⚙️ Using Tasker with Home Assistant (V2) - Share your Projects! - Home Assistant Community
I have tried 2 variations with partial success:
{"payload": "home", "topic": "location/user", "qos": 0,"retain": 0}
This successfully sets my location to Home, and "not_home" to Away. However trying this with manually set up zones simply sets the tracker location to whatever I write in plain text, not recognizing the zone name.…