Using MQTT and the API
This section is for those who prefer to let their lamp take orders from a script rather than a finger. Whether you’re a Home Assistant power user or a terminal enthusiast, these tools let you bypass the UI and talk directly to the hardware. 🛠️
💡 Note: Optional Features
Neither MQTT nor the API are required for the lamp to function. These are strictly optional tools provided for those who wish to control their lamp through external hardware or software.
1. MQTT Integration
Message Queuing Telemetry Transport (MQTT) is a lightweight messaging protocol designed for IoT communication. If you have an MQTT broker and a system that can publish/subscribe to topics, you can fully automate the lamp’s states and settings.
- Learn more at: MQTT.org
- Implementation: MQTT Setup & Topics
2. HTTP API
The Application Programming Interface (API) allows the lamp to accept commands directly via standard URLs. This method requires no middleman (like a broker); you can even test commands by entering them directly into your browser’s address bar.
- Implementation: API HTTP Command List