homie-esp8266 icon indicating copy to clipboard operation
homie-esp8266 copied to clipboard

Problem with range-properties in Homie 3

Open thecky opened this issue 4 years ago • 2 comments

Hi,

maybe I miss understood something with the "new" range-advertisment, but currently it doesn't work for me. Even the example LedStrip (https://github.com/homieiot/homie-esp8266/blob/v3.0/examples/LedStrip/LedStrip.ino) doesn't work as I expected.

I also assume that the documentation-page under https://homieiot.github.io/homie-esp8266/docs/3.0.1/advanced-usage/range-properties/ is outdated, because there is still a "stripNode.advertiseRange" in the codesnippet. Anyway, my expection is that I would have one node strip then the property led_1 till led_4, which are all settable.

But in my MQTT-broker I see this nodes (for browsing I use the MQTT-Explorer):

strip
strip_1
strip_2
strip_3
strip_4

And only the strip-node has a property called led (which is settable).

strip (node)
  $name = Strip
  $type = strip
  $array = 1-4
  $properties = led
  led (property)
    $name = Led
    $settable = true
    $datatype = boolean

And the other nodes strip_1 - strip_4 contains only a $name

For me, the currently handling seems to be wrong and it's maybe a bug-

Thanks :)

thecky avatar Jul 26 '21 18:07 thecky

Very old issue, but I have the same problem. Do you received/produced some fix, @thecky ?

nemerdaud avatar Sep 04 '24 16:09 nemerdaud

Very old issue, but I have the same problem. Do you received/produced some fix, @thecky ?

Sorry guys... I was wrong. Actually this behavior is correct based on the 3.X Homie specification. But in the 4.X specification this property type (array) was removed since it's complex to handle and not so featured (based on the discussions here: https://github.com/homieiot/convention/issues/90 ).

nemerdaud avatar Sep 04 '24 18:09 nemerdaud