/status_light_110v

Primary LanguageC++MIT LicenseMIT

status light 110v

Purpose

Monitor MQTT feed and activate status-light when appropriate

Target Configuration

  • See config.h for parameter configuration
  • WiFi SSID and password are contained in a secrets.h file that is not included in this repo. Instead you'll find the file secrets_template.h, which should be copied to secrets.h and then edited to supply the right access credentials and configuration values to match your deployment environment.
  • common wire from light to COM on relay
  • hot wire from light to NO on relay
  • connect both 2 wire JST connectors

External Software Dependencies

  • Adafruit_MQTT

Bill of Materials (BOM)

Information Sources

Status messages

  • During initialization, setup()), will:
    • blink on and off 3 times for 1 second to indicate that WiFi connected and the light works as well.
    • blink on and off 3 times for 3 seconds to indicate a failure to connect to WiFi. The device will then reset and try again.
  • During regular operation, if the device can not connect to MQTT it will:
    • blink on and off 3 times for 2 second. If the problem persists, this will occur again and again.

Issues and Feature Requests

  • See GitHub Issues for project

.plan (big ticket items)

  • publish WiFi RSSI