homieiot / convention

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

How can I create a settable property, which takes two arguments? #227

Closed rzarajczyk closed 2 years ago

rzarajczyk commented 2 years ago

Hi How can I create a settable property, which takes two arguments? The example would be a Philips Hue light, which can have a property brightness - I can set it to a different value, but I can also specify the transition time. Transition time may is an optional parameter, but also important - how should Homie Convention property look like to support such use cases?

Tieske commented 2 years ago

That doesn't fit Homie. Homie is about "state", what you want is more about RPC.

If anything, the device should get 2 properties;

Then you first set transition time, and after set brightness

rzarajczyk commented 2 years ago

Ok, thank you!