Sense Energy Monitor


New user! I just got my hubitat up and running.

I have a Sense Energy Monitor. It runs through my wifi and share the same network as my Hubitat. I added it to my home assistant when I was playing around with HA. Any way to add my Sense to my Hubitat?


I do not recall anyone posting an integration for Sense. You may be able to port the following ST custom integration.


Thank you for replying
I had seen that and I tried it out. The driver works fine but the smart app throws the errors. I don't know how to fix those errors.

Lastly this isn't a deal breaker but I'd like to not have to run a node server.

Would trying to look at Home Assistant did easier or?


Looking at the underlying 'Unofficial Sense API' which is used by the NodeJS server, I am somewhat optimistic that Sense could be directly integrated with Hubitat. It appears that the Sense API uses a webSocket for communications. If so, Hubitat now has native webSocket support.

I used the Hubitat webSocket API to directly integrate the Logitech Harmony Hub recently. So, this Sense device is interesting. However, since I don't have a Sense device/account, it would be extremely difficult to attempt this.

I am using an IoTaWatt Engery Monitoring device to achieve similar goals. I wrote a custom integration for it not too long ago.


Thanks for the help. I found an interesting thread from @aaron about his sense. He is using IFTTT, which isn't preferable but an option.

I'll look at your code and see if it is within my abilities to modify it for sense.


Here is the code that use webSockets...


You probably could do what your driver is doing an create new devices. Word of caution: I would use the Virtual Containers as others have done. I have 24 monitored devices and to have those all in HE unless in a container would be obnoxious.


So I understand you just use the driver without the smart app and label it a container?


You can do this one of two ways.

1: SmartApp - which you can have query the websocket and provide a list of devices to the end-user to choose to create virtual switches for
2: SmartDevice (like @ogiewon) - which you have query the websocket on Sense and create all of the devices

Either way you should use a container to keep the virtual devices together for ease of administration.

I didn't need all 24 devices in my HE. I just needed it for (2) washers and dryers so I can do Push Notifications to our devices when the laundry cycles are done depending on which washer/dryer or both completed (I have my mother-in-law living with us and I installed another set of laundry in basement). For me Sense was cheaper than buying other solutions and also then gave me information on how we were doing for power consumption. (2) Aeotechs are the same price as (1) sense. So it didn't make financial sense to not do Sense.