Important
As of December 2025, this project is no longer actively maintained.
This was the result of a quick flash of inspiration, hoping to inspire Sengled owners and developers to bring their devices local. Unfortunately, the project didn't take off and the flash of inspiration subsided as I moved my WiFi ESP-based devices to Tasmota. This system never fully worked properly or easily, and Sengled's servers came back online. Thus, this project is unmaintained.
What this means:
- β No further feature development
- β No bug fixes or updates
- β No guaranteed support
The repository will remain available for reference and forking.
π‘ I would be very happy to see this project continued by the community.
If you plan to fork it and continue development: may the best fork prevail.
Thank you to everyone who used, tested, and contributed to this project β€οΈ
Keep your Sengled bulbs local and secure! This add-on provides the essential HTTP and MQTT infrastructure needed to operate Sengled WiFi bulbs without cloud connectivity, seamlessly integrating with your Home Assistant setup.
- π HTTP Provisioning Server - Serves critical endpoints on port 54448 ("light")
- π MQTT Broker with SSL - Secure broker on port 28527 ("bulbs")
- π Native MQTT Bridge - Auto-forwards bulb data to your HA MQTT broker
- π Auto SSL Certificates - Generates CA and server certificates for Sengled broker automatically
- π Real-time Dashboard - Monitor connections and activity at port 54448
- π― Simple HTTP Server - Lightweight, debuggable server handles malformed bulb requests
- π§ Highly Configurable - Fine-tune bridge settings through HA UI
- Add this repository to your Home Assistant add-on store (link above)
- Install the "Sengled Local Server" add-on
- Configure your MQTT broker settings (see Configuration)
- Start the add-on
During WiFi setup, use your Home Assistant's IP address with these endpoints:
- bimqtt endpoint:
http://YOUR_HA_IP:54448/bimqtt - accessCloud endpoint:
http://YOUR_HA_IP:54448/accessCloud.json
- Dashboard: Visit
http://YOUR_HA_IP:54448/for real-time monitoring - Health Check: Monitor service health at
http://YOUR_HA_IP:54448/health - Status API: Get detailed statistics at
http://YOUR_HA_IP:54448/status
mqtt_broker_host: "core-mosquitto" # Your MQTT broker hostname/IP
mqtt_broker_port: 1883 # MQTT broker port
mqtt_username: "" # MQTT username (if required)
mqtt_password: "" # MQTT password (if required)
mqtt_ssl: false # Enable if your broker uses SSL
enable_bridge: true # Forward bulb topics to your broker
log_level: "info" # debug, info, warning, error
auto_generate_certs: true # Auto-generate SSL certificates
cert_common_name: "sengled.local" # Certificate common nameFor most users, the default settings work perfectly. Advanced users can:
- Disable bridging for standalone operation
- Provide custom SSL certificates
- Adjust logging levels for troubleshooting
- Configure specific MQTT credentials
Sengled Bulb --SSL--> Local MQTT (28527) --Bridge--> Your MQTT Broker ---> Home Assistant
- Bulbs connect to the local MQTT broker on port 28527 using SSL
- Topics are bridged -
wifielement/*topics are forwarded to your HA broker - HA integration can subscribe to these topics for bulb control and status
Bulbs publish to topics like:
wifielement/B0:CE:18:12:34:56/status- Bulb status and attributeswifielement/B0:CE:18:12:34:56/consumption- Power consumption datawifielement/B0:CE:18:12:34:56/consumptionTime- Energy usage over time
And subscribe to:
wifielement/B0:CE:18:12:34:56/update- Commands from HA
Visit http://YOUR_HA_IP:54448/ to access:
- Service Status - Real-time health of HTTP and MQTT services
- Connection Stats - Number of requests, unique clients, uptime
- Certificate Info - SSL certificate status and expiration
- Network Details - IP detection and interface information
- Activity Log - Recent connections and events
- Configuration View - Current bridge settings
The add-on includes comprehensive health monitoring:
# Quick health check
curl http://YOUR_HA_IP:54448/health
# Detailed service status
curl http://YOUR_HA_IP:54448/status
# Network diagnostics
curl http://YOUR_HA_IP:54448/network-
Verify endpoints are accessible:
curl http://YOUR_HA_IP:54448/bimqtt curl http://YOUR_HA_IP:54448/accessCloud.json
-
Check the dashboard for connection attempts and errors
-
Verify certificates are generated (check add-on logs)
-
Ensure network connectivity between bulbs and Home Assistant
-
Test MQTT broker connectivity:
mosquitto_pub -h YOUR_MQTT_HOST -t test/topic -m "test" -
Check bridge status in the dashboard
-
Verify credentials if using authenticated MQTT
-
Review logs for connection errors
- Restart the add-on to regenerate certificates
- Check certificate common name matches your setup
- Verify file permissions in
/data/certs/
Why non-standard ports? Since Sengled bulbs don't implement authentication, we use several hardening measures:
- Custom port assignment - You control exactly which ports bulbs connect to during WiFi setup
- SSL encryption protects MQTT communication with encrypted messages
- Access control lists limit bulbs to only their own topics (
wifielement/{MAC}/...) - Local-only operation eliminates cloud dependencies and external attack vectors
- Network isolation possible by restricting these ports to your local network only
The port strategy provides configurability and control rather than relying on obscurity.
GET /bimqtt- Returns MQTT broker connection details for bulbsGET /accessCloud.json- Returns cloud access status (success)GET /health- Service health checkGET /status- Detailed service status and statisticsGET /network- Network information and diagnosticsGET /- Web dashboard interface
bimqtt endpoint:
{
"protocal": "mqtt",
"host": "192.168.1.100",
"port": 28527
}accessCloud endpoint:
{
"messageCode": "200",
"info": "OK",
"description": "ζ£εΈΈ",
"success": true
}βββββββββββββββββββββββ ββββββββββββββββββββββββ βββββββββββββββββββββββ
β Sengled Bulbs β β Local Server Add-on β β Home Assistant β
β β β β β β
β Power-On Setup ββββββΌββββΆβ HTTP Server :54448 β β MQTT Integration β
β β β - /bimqtt β β β
β MQTT Client βββββββββΌββββΆβ - /accessCloud.json β β Automation Rules β
β β β β β β
β SSL Connection ββββββΌββββΆβ MQTT Broker :28527 βββββΆβ Dashboard & Control β
β β β - SSL/TLS enabled β β β
β wifielement/* topicsβ β - Bridge to HA MQTT β β β
βββββββββββββββββββββββ ββββββββββββββββββββββββ βββββββββββββββββββββββ
This project welcomes contributions! Areas for enhancement:
- Additional bulb manufacturer support
- Enhanced monitoring and alerting
- Integration with Home Assistant energy dashboard
- Mobile-responsive dashboard improvements
- Multi-language translations
MIT License - see LICENSE file for details.
- SengledTools project for reverse engineering
- Home Assistant add-on developers and documentation writers
- Mosquitto MQTT broker project for reliable message handling
π¦ Light up your local network! π‘
Vibe-coded in Claude Code by Matt Falcon - contribute if you can do better! Made with β€οΈ for the Home Assistant community.