Skip to content

Problem with range-properties in Homie 3 #715

@thecky

Description

@thecky

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions