Skip to content

schneebonus/MQTT-Notification-Leaf

Repository files navigation

MQTT-Notification-Leaf

Firmware to control a notification leaf over MQTT. Each leaf can be controlled separately.

notification leaf

Requirenments

Install

  • Download mqtt_leaf.ino
  • Set wifi settings (ssid and passsword)
  • Set mqtt settings (mqttServer, mqttPort, mqttUser, mqttPassword)
  • Set LED_COUNT and LED_PIN
  • Deploy to your esp8266

Control

  • notification/on -> turn on leafs (if colors are set)
  • notification/off -> turn off leafs
  • notification/reset -> reset leafs to default color (default is BLACK)
  • notification/brightness -> payload 0-100 to set brightness
  • notification/leaf -> set leaf by sending a json containing: { panel: int leaf number, mode: MODE from conversion_mode list, color: COLOR from conversion_color list, speed: 1000, reverse: false }

Customization

Add color

It is possible to add colors in mqtt_leaf.ino by adding a new uint32_t mapping to conversion_color:

predefined colors

Add mode

It is possible to add modes in mqtt_leaf.ino by adding a new uint32_t mapping to conversion_mode:

predefined modes

Node-RED integration

nodered example

Credits

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published