homieiot / convention

🏡 The Homie Convention: a lightweight MQTT convention for the IoT
https://homieiot.github.io/
Other
705 stars 59 forks source link

feat(node) add a set topic to set multiple values at once #249

Closed Tieske closed 3 weeks ago

Tieske commented 1 year ago

On a node level, set multiple properties at once.

Tieske commented 8 months ago

discussed to not target this one at Homie5 for now. Can be added later.

devbotas commented 7 months ago

I'm not a fan of adding a JSON to the party. Homie topics are already structured, so adding another layer of structure feels unnecessary.

Tieske commented 7 months ago

The problem at hand: setting multiple properties at once, to prevent inconsistent states due to MQTT message delivery ordering (which one cannot rely on).

This proposal uses JSON to wrap multiple values into a single value. The concept; wrapping multiple values into one, will always be necessary to solve the problem. So imho this will always require some sort of encoding.