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

🤔 Add details on how to interact with range property #393

Merged
merged 1 commit into from
Sep 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/advanced-usage/range-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ void setup() {
}
```

On the mqtt broker you will see the following message show up:
```
topic message
--------------------------------------------------------
homie/<device id>/strip/$type strip
homie/<device id>/strip/$properties led[1-100]:settable
```

You can then publish the value `on` to topic `homie/<device id>/strip/led_1/set` to turn on led number 1.

See the following example for a concrete use case:

[![GitHub logo](../assets/github.png) LedStrip](https://github.com/marvinroger/homie-esp8266/blob/develop/examples/LedStrip/LedStrip.ino)