Live Curb Energy Monitor Data in Home Assistant via MQTT
Hi everyone!
I’ve been trying for a long time to get live energy usage data from Curb’s API directly into Home Assistant. Initially, I was able to pull data using a REST sensor (more details here), but I wanted something truly real-time.
I knew it was possible because Curb’s API and GitHub page provide an example using WebSockets instead of traditional REST requests. However, there wasn’t a straightforward solution for integrating this into Home Assistant.
After a lot of trial and error, I built a script that:
Authenticates with Curb’s API and retrieves the token automatically
Fetches the location ID dynamically (no need to hardcode it)
Subscribes to live WebSocket data from Curb
Forwards power consumption data via MQTT to Home Assistant
This means you get instant updates—no more polling delays! Once the data is in MQTT, you can create Home Assistant sensors that update in real time.
Check out the project:
GitHub: Curb-to-MQTT
The repository includes setup instructions, a configuration guide, and steps on how to run it as a systemd service for reliability.
If you’ve been looking for a real-time Curb integration with Home Assistant, give it a try! Also I need/want help into making this script a HACS Custom Component, I just lack the knowledge to do it, If anyone wants/can jump in please let me know.
Thanks