Curb energy monitor

Would be great to get a cloud component built for the Curb Energy monitor.

This came installed with my solar panels and allows for more granular energy monitoring at the breaker.

The API is seemingly well documented so hopefully this is a pretty straightforward one to implement.

http://curb-energy.readthedocs.io/en/latest/api/client.html

I am doing this in a “hacked up way”. I am feeding curb into SmartThings and then SmartThings into HASS. Its less than elegant but it works for now. I would like a native HASS solution to get rid of SmartThings but since SmartThings is natively supported with curb I have to keep it around.

Does anyone have a way to integrate Curb Energy monitor to Home Assistant? I’ve seen there’s a pretty open API available but I have no idea where to start to get the information from it.

If anyone can give me some key points to try to make the API work I would appreciate it

https://curb-energy.readthedocs.io/en/latest/api.html

Thanks

I have been trying to find a way to integrate Curb info into HA for awhile. I came across this in the SmartThings community.

UDATE 9/3/22 About a week ago Curb changed the authentication system for their cloud infrastructure. As I’m sure some of you noticed, this change broke Curb Connect. It’s currently unclear if this is just cost-cutting (it appears they moved from auth0 to an internal system) or is a shift away from an open API. This change, combined with the impending

I have been trying to find a way to use a web scraper to grab the data I need but my limited knowledge has prevented me from getting any results.

I have emailed Curb 3 times now asking what is going on with the API and have not received a response in a month.

I am on the same situation! I’ve sent curb customer service multiple emails and one time they told me

Thank you for the update. About the other question for the token and all we can ask the tech team and see what can be done once we get an answer we will reach out. If any other questions or concerns please feel free to reach out. Thank you

Still no answer from them

Hey guys, for anyone following this thread, I was able to integreate somehow Curb’s into Home Assistant, you may read more information on this topic: Creating Sensors and filtering specific JSON Value from Curb Energy API - #4 by luisgarcia87

Thanks

I have Curb and I saw the method that luisgarcia87 made, but didn’t like the access_token solution he was using, so I went and made a custom component for Curb that handles all the authentication and everything. It’s not perfect, but I figured someone else may like it too: GitHub - bryanlyon/curb_energy

2 Likes

Hi,

Thanks for taking the time to write this. I followed the instructions and rebooted HA. In the logs, I’m getting the following error:

AttributeError: ‘NoneType’ object has no attribute ‘lower’

Any ideas as to what I need to do to fix this and get this working? Thanks!

Joe

Hey Joe. Best to set up an issue and include the whole error. But the only time I use lower() is in creating a “sane name” for the circuit and that error is likely saying that there was no name set. I’ll add more logic to check for that and maybe include a randomly generated name or something.

It should be fixed now. It’ll just ignore any circuits with bad names for now though.

Wow it’s nice to have a direct integration to HA with your custom component. I have one question. Why use the aggregate call (5 min refresh), instead of the GET /latest/:locationId - which gets the latest averaged minute sample snapshot of all circuits.?

Going to try this out tonight. Do you know what you need to do to get the add to my home assistant button working for your component? Been searching for this on and off for a while.