add mqtt documentation
This commit is contained in:
parent
7b33bf0785
commit
b91c71bd06
2 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
@ -1,7 +1,21 @@
|
|||
# Lightbuttons
|
||||
|
||||
![Device with case](preview.jpg "Lightbuttons")
|
||||
|
||||
## Hardware
|
||||
|
||||
- 1x or 2x: Adafruit NeoKey 1x4 https://www.adafruit.com/product/4980
|
||||
- Switches and Keycaps for NeoKey.
|
||||
- 1x Olimex ESP32-PoE-ISO
|
||||
|
||||
## MQTT
|
||||
|
||||
Set Button Idle Color:
|
||||
N is Button Number 1-4
|
||||
$BASETOPIC/color/button/N
|
||||
topic:lightbuttons-A/color/button/2
|
||||
payload is color as int32
|
||||
|
||||
When Powered on and connected device sends payload "online" on $BASETOPIC/status
|
||||
|
||||
Button presses are sent on $BASETOPIC/button/N. Possible Payloads are: "click", "doubleclick" and "longpress"
|
BIN
preview.jpg
Normal file
BIN
preview.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 333 KiB |
Loading…
Reference in a new issue