New app: Sync Entities Via MQTT

Just finished an app I’ve wanted for a while. Maybe someone else can get some value from it.

https://github.com/rr326/ad_sync_entities

Sync Entities Via MQTT

Sync Entities Via MQTT is an Appdaemon app for HomeAssitant that enables
bi-directional sharing of state between mutiple separate HomeAssistant
installations.

For instance, say you have an HA Office and an HA Home. Both are on separate
networks. Each HA has it’s own dashboard.

Suppose you are at the office and you want to see if your Home is in
“away” mode - with the heat off, the security lights on, the indoor lights
off, etc.

You could just vpn over to Home and look at that dashboard.

But better, you’d like that one bit of data on your Office dashboard.

With SyncEntities, here is how it would work:

  • You set up an MQ broker at both locations with “bridge mode” sending
    to a third location that is publicly available in the cloud.
    (But PW protected.)
  • At home, you configure SyncEntities to publish the state of the
    “HomeMode” input_select.
  • At the office, on your dashboard, you display the state of HomeMode.
  • You configure the dashboard in Office so that if you click the
    HomeMode button, it signals your Home to set HomeMode to “away”.
  • Of course, this new state at Home will be properly propagated to
    and displayed at Office.

FWIW, basically the same without appdaemon:

@koying This is awesome. Anyone else - look at this first before you try my app. I wish I had known about it.

direct link here

Nice work tho! It would be nice to adopt the homie standard via this approach. That would allow other developers to easily integrate with Home Assistant.

Thanks @legovaer - homie looks pretty cool. If there is any demand pull or I wind up refactoring this project, I’ll dig in and see if I can make it conform. Thanks for the suggestion.