Anyone know of a Wifi based location system that uses mqtt. Example: if im connected to my home wifi it says “home” (duh) but if im connected to work wifi it send an mqtt message and changes the state to work. To extend battery life by not using location.
If you use android you could do this with tasker and the mqtt plugin/add-on
Ive never used tasker, Do you know how long this would take?
I haven’t used the MQTT support in tasker but its probably not too difficult.
Tasker isn’t free but the functionality is amazing. The learning curve is a bit steep but once you figure it out all kinds of stuff can be done.
Ok, I have learned tasker. How do you change the device state? Im looking at the http post service but there isnt a device_tracker.set_state option. This is probably an easy fix and I just dont know it.
Is there a script that will change the state of the device?
As far as I know there is no way to manually change the device trackers state. You would need to use this https://home-assistant.io/components/device_tracker.mqtt_json/
Ok thanks, ill try it out