autoSteve / acMqtt

CBus Automation Controller: Home Assistant, MQTT, Philips Hue and more (for the SHAC/NAC/AC2/NAC2)
GNU General Public License v3.0
15 stars 6 forks source link

Remove code legacy of event script #49

Closed autoSteve closed 5 months ago

autoSteve commented 5 months ago

The old event-based script that was employed used to send a string for each C-Bus happening to MQTT send receive. This behaviour was retained when switching to use the eventbus (for simplicity of transition), which constructed an identical string containing alias and value. This is inefficient.

This moves to a table structure for messages, with alias, net, app, group, channel and value delivered separately per message, improving efficiency.