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.