I have been using presence detection automation via a binary sensor (Homekit, iOS app, and router based) when my wife and I are home and away. Homekit runs two automations, an input_boolean
for when it senses we leave and the other when we arrive, the hass automation depends on the status of that switch. The main use is turning on lights and unlocking a zwave lock when we arrive home, and to lock/turn off lights when we leave.
I have began using a traefik 2 configuration to access my home assistant setup while away, and it works great, except, upon using this method, I have lost the ability to depend on the homekit functionality. Traefik cannot use Home Assistant in host mode, which breaks the Homekit functionality. (as well as the emulated hue). So long story short, I am looking for an alternative to Homekit to tell the input_boolean
config to make the switch once the status of our presence changes.
My initial thoughts were that I have an mosquitto MQTT instance installed in my docker setup on the same machine, and I was wondering if its possible to expose that instance through Traefik, and then connect to Owntracks to mimic the functionality I had with Homekit for this singular purpose? Or am I making it overly complicated and there is a simpler way of fixing the Homekit and traefik interaction?
My whole setup is on the one machine in containers via docker-compose.