mhthies / smarthomeconnect

Python 3 AsyncIO-based home automation and interfacing framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change Interface.get_status() to return a subscribable status connector

mhthies opened this issue · comments

It should be possible to subscribe to each interface's status if the interface supports it. The status connector should be at least Readable[InterfaceStatus] and optionally Subscribable[InterfaceStatus]. The normal HTTP-based monitoring will read from these status connectors, whereas subscribing allows to react to interface status changes.