This repository was archived by the owner on Dec 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Button JSON structure
balk77 edited this page Dec 31, 2023
·
3 revisions
- id: identifier, starts at top left (0) to right (1), then down
- ledcolorfront: preconfigured decimal color of front facing LED
- ledcolorwall: preconfigured decimal color of wall facing LED
- topics; contains
brokerid,topic,eventtypeandpayload, all required to be set in JSON structure (see below)
| eventtype | payload | type | description |
|---|---|---|---|
| 0 | text | Pub | publishes payload text on click |
| 1 | text | Pub | publishes payload text on long press |
| 2 | text | Pub | publishes payload text on release (not in WebUI) |
| 8 | text | Sub | Blue LED, front and wall. On when topic has payload text |
| 9 | text | Sub | Red LED, front and wall. On when topic has payload text |
| 10 | text | Sub | Green LED, front and wall. On when topic has payload text |
| 11 | key to be omitted | Sub | Label text, updates to received payload. Avoid setting payload in the JSON |
| 12 | "" | Sub | Toplabel text, updates to received payload |
| 13 | decimal color | Sub | Sets front and wall LED to payload color. |
| 14 | text | Sub | Switches front and wall LED. On when topic has payload text |