micolous / cbus

Use Python to communicate with a Clipsal C-Bus PCI or CNI! Includes MQTT bridge (for Home Assistant), PCI simulator, and reverse engineering notes.
http://cbus.readthedocs.org/
GNU Lesser General Public License v3.0
49 stars 27 forks source link

Request status after startup and handle binary status report response #31

Open Nik19792000 opened 2 years ago

Nik19792000 commented 2 years ago

If lights have been switched on before lib_cbus is started, then this latest status is currently not conveyed. With this PR a status request is sent 5 seconds after startup. The response is evaluated and any light status (on or off) is conveyed to MQTT. This ensures that MQTT has the latest status of all lights.

Nik19792000 commented 2 years ago

Ping