Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with range-properties in Homie 3 #715

Open
thecky opened this issue Jul 26, 2021 · 2 comments
Open

Problem with range-properties in Homie 3 #715

thecky opened this issue Jul 26, 2021 · 2 comments

Comments

@thecky
Copy link
Contributor

thecky commented Jul 26, 2021

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 :)

@nemerdaud
Copy link

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

@nemerdaud
Copy link

nemerdaud commented Sep 4, 2024

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 ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants