homieiot / convention

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

Proposal for new datatype formats #156

Closed hondzik closed 4 years ago

hondzik commented 5 years ago

Hello, it would be nice to have additional predefined formats for color datatype for rgbw and maybe hex variants #rgb and #rgbw. It would be also great to have possibility to define ">x", "x<", "<=x" and ">=x" ganges or at least positive/negative format for number datatypes.

Thanks, Honza

davidgraeff commented 5 years ago

It would be also great to have possibility to define ">x", "x<", "<=x" and ">=x" ganges or at least positive/negative format for number datatypes.

There is the "1-100" syntax existing. I can imagine to have "1-x" / "x-100" so keeping the syntax but allowing "x" as placeholder to express ">=" and "<=".