mirror of
https://github.com/nikdoof/hapz2m.git
synced 2026-01-30 15:08:19 +00:00
So far Z2M state updates were only boolean (the device `state` on/off), but after introducing `brightness` values, Z2M state updates may not be recognized/acknowledged. Unmarshalled Z2M numeric values are always float64, but updates sent out via MQTT might not be. As a result, the values may not directly equal and may never match. To solve this, cast the outgoing expected value into a float64 to compare against the received Z2M value, which is already a float64.
15 KiB
15 KiB