Push events into a remote server application?

I have seen that home assistant can be used in a master slave environment. I have not tested this function.

I would like to setup home assistant so that it can push the events to another application which acts as a master(this is not a home assistant instance). Can this be done?
I would like to have all the state changes to be pushed to this remote master.

I have tried adding as suggested in the link https://github.com/balloob/home-assistant/blob/dev/homeassistant/components/api.py#L38 in this thread Node Red integration, but must periodically get the events from the application. I would like home assistant to send the changes.

Please excuse me if I have ignored some basics as am pretty new to home assistant

This interface will push all HA events to an EventSource consumer client:

https://home-assistant.io/developers/server_sent_events/

I use it for a couple of projects and it works well. Another possibility is mqtt event stream:

The mqtt eventstream is currently buggy and prevents HA from shutting down properly…so no restarting while this is active!

Yep - I was originally using it but moved to EventSource for that very reason.

1 Like