What is the real time tech used by Home Assistant?

I’m wondering what Home Assistant is using to make it’s app real time ?

I’ve been searching on the web and Home Assistant docs about this but I can’t figure out concretely what it’s using.

I know the core is made of Python, and I know that you can do realtime application with realtime database like RethinkDB or Firebase, but Home Assistant does not have any database deployed ?

Any suggestion is welcome.

HASS can use several databases
I’m not sure about what you call “realtime”, but if it can help, HASS is handling async events through asyncio

1 Like

It kind of depends on what you see as realtime. The HA database is a sql database (default sqlite), but their backend consists of an API as well as websockets. The websockets are what makes the UI realtime, since it works similar to MQTT, subscribing to messages to provide instant interactions and feedback

1 Like

The websockets are exactly the thing I searched for !

Thanks a lot ! :grinning: