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

Only suppress identical CBus set for floats #41

Closed autoSteve closed 6 months ago

autoSteve commented 6 months ago

In my setup I observed that it is possible for MQTT/CBus to get out of sync, and for MQTT send receive to suppress setting CBus because it thinks the set from MQTT is identical to that set previously.

This commit limits the prior value comparison to floating point numbers only (usually sensors), which will force sync any anomalies on next set.

I've not yet got to the bottom of why the out-of-sync states can occur.