core icon indicating copy to clipboard operation
core copied to clipboard

Sense integration not reporting usage

Open N3rd7 opened this issue 9 months ago • 28 comments

The problem

The usage (daily, weekly monthly and bill) usage has not been reporting for any of the devices recognized in Sense since March 5th. All system up to date, and I don't know/remember if this coincides with a HAOS update or not. The only value that continues to be reported for all devices are their respective power on/off, and for some the power W (not all though).

What version of Home Assistant Core has the issue?

core-2025.3.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Sense

Link to integration documentation on our website

https://www.home-assistant.io/integrations/sense

Diagnostics information

No response

Example YAML snippet


Anything in the logs that might be useful for us?

I don't see anything.

Additional information

No response

N3rd7 avatar Mar 16 '25 15:03 N3rd7

Hey there @kbickar, mind taking a look at this issue as it has been labeled with an integration (sense) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of sense can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign sense Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


sense documentation sense source (message by IssueLinks)

home-assistant[bot] avatar Mar 16 '25 15:03 home-assistant[bot]

What was the last version it was working?

kbickar avatar Mar 17 '25 01:03 kbickar

2025.2 was working for sure. I don't recall when I updated to 2025.3, 2025.3.2 or 2025.3.3.

N3rd7 avatar Mar 17 '25 10:03 N3rd7

I commented this on issue #140034 and it seems only a few of us have noticed this issue. 2025.2.5 was working as it should. 2025.3.2 fix the main issue in #140034 but this issue of not seeing the individual items daily, weekly, monthly, and yearly usage tracking was still present.

chiefspecialk avatar Mar 17 '25 14:03 chiefspecialk

I would assume they're related in some way but I can't reproduce it with my install/account

kbickar avatar Mar 17 '25 14:03 kbickar

My HASS has a bunch of unavailable Sense entities now, such as the daily info that I use for my energy dashboard.

Image

GHJJ123 avatar Mar 18 '25 02:03 GHJJ123

My HASS has a bunch of unavailable Sense entities now, such as the daily info that I use for my energy dashboard.

Image

NM, I just updated to the latest HASS and it fixed the issue, looks like the changelog had a Sense fix.

Core: 2025.3.3 Supervisor: 2025.03.3

GHJJ123 avatar Mar 18 '25 02:03 GHJJ123

Unfortunately the HAOS update did not help on my end ;

Image

N3rd7 avatar Mar 18 '25 07:03 N3rd7

I would assume they're related in some way but I can't reproduce it with my install/account

I'm not sure how your instance is working. If it's unclear what we are talking about it's the energy readings under individual devices (like fridge, freezer, etc). I'm seeing Power and On status when the device is running but the Energy readings aren't getting added up. I think a lot of us use these in the Energy panel so we can easily see how much of each hour devices we track use.

Image

chiefspecialk avatar Mar 22 '25 02:03 chiefspecialk

I would assume they're related in some way but I can't reproduce it with my install/account

I'm not sure how your instance is working. If it's unclear what we are talking about it's the energy readings under individual devices (like fridge, freezer, etc). I'm seeing Power and On status when the device is running but the Energy readings aren't getting added up. I think a lot of us use these in the Energy panel so we can easily see how much of each hour devices we track use.

Image

Ah I see what you're talking about now, yeah I dont have totals for my individual detected appliances (they arent giving me total), but I never really used it much since, I'll be honest, Sense never really detected many useful appliances for me lol.

I've only used the total energy usage (which I use to keep track against my solar usage) which is working with the new HASS version.

Honestly, Sense is vapourware to me, I should have went with Emporia instead :(

GHJJ123 avatar Mar 22 '25 02:03 GHJJ123

My device called "solar" and "sense energy monitor" is no longer reporting any data, device called "sense" is reporting, and device called "other" is reporting energy usage.
Something seems to have happened with the devices or device names in the recent past?

ptr727 avatar Mar 25 '25 00:03 ptr727

I'm experiencing the same problem - power (wattage) and status (binary on/off) are still showing up, but all fields that previously tracked consumption in kWh are zero.

Image

bluecrystaldex avatar Mar 28 '25 17:03 bluecrystaldex

Curious if anyone who maintains this integration has made any progress on this issue?

chiefspecialk avatar Apr 14 '25 17:04 chiefspecialk

I was wondering that this morning myself, hope someone can fix the issue!

N3rd7 avatar Apr 14 '25 19:04 N3rd7

Same, this is really frustrating.

bluecrystaldex avatar Apr 14 '25 20:04 bluecrystaldex

I'm still not able to reproduce the issue and it is showing up correctly in my install:

Image

If someone would be able to do some tests with the library directly, maybe we could track down what the difference is

kbickar avatar Apr 15 '25 00:04 kbickar

I am not skilled in program/code, but if you want me to try or check anything specific, I'd be happy to try, you'll just need to guide me though... That's my "Always On" sensor. All other sensors are the same: no bill/daily/monthly/weekly/yearly energy, only the power indicates a value (which does not report in the energy dashboard).

Image

N3rd7 avatar Apr 15 '25 00:04 N3rd7

I'm still not able to reproduce the issue and it is showing up correctly in my install:

Image

If someone would be able to do some tests with the library directly, maybe we could track down what the difference is

I'm seeing this (as well as my power state not being available) and I'd be willing to share my sense creds for you to explore? I tried to see what was coming back using the underlying sense library and I couldn't make immediate sense (ha) of how to use it to check.

Or to run some arbitrary python scripts to capture data or whatever

jmoses avatar Apr 18 '25 16:04 jmoses

I reached out to Sense support earlier this week about this issue, and got this response:

To answer your question about Home Assistant—this integration is unofficial and not supported by Sense. While we understand many users rely on it, we don’t actively maintain or test for compatibility with Home Assistant.

Recently, we introduced limits on API call volume due to past overuse, which impacted overall system performance. In addition, updates made to the Sense app are not designed with Home Assistant in mind, so changes on our end may unintentionally break functionality.

While I know this isn't optimal and may be disappointing I want to be clear on this.

I followed up by asking if the aforementioned API limits were pushed out around the beginning of March, which is when this thread was created, and they responded in the affirmative. I'm seeing the following show up quite often in my HA logs:

2025-04-20 20:52:43.205 ERROR (MainThread) [homeassistant.components.sense.coordinator] Timeout retrieving data: API websocket timed out

I'm also leveraging the Sense integration with >50 Hue bulbs and >20 TP-Link smart plugs, along with Emulated Kasa courtesy of HA, so I wouldn't be surprised if my device count in Sense is significantly higher than most users. @kbickar, any chance you think this might be the underlying issue? Happy to help troubleshoot if I can.

bluecrystaldex avatar Apr 24 '25 15:04 bluecrystaldex

If they implemented rate limiting then the API call should not timeout it should return a rate limit error, unless what they really mean is the system can't handle the load.

ptr727 avatar Apr 24 '25 16:04 ptr727

Sense sucks for doing that, but I might have found a way to circumvent their failure to sustain useful service. Since my device still report power in watts, I am creating integral sensors that can calculate energy consumption in kwh. The newly created entity can then be added to the energy dashboard. https://www.home-assistant.io/integrations/integration I don't know yet if this is a viable solution, I created a few of those integral sensors for my highest consuming devices, to see if it actually works. Fingers crossed!

N3rd7 avatar Apr 25 '25 13:04 N3rd7

I'm not sure it's the API rate limiting. It sends all the trend data out in one message so unless they're cutting up that message or something for users with a high number of devices then you'd see the normal trend data not working too. Plus it's not all users that are affected by it

kbickar avatar Apr 25 '25 14:04 kbickar

Sense sucks for doing that, but I might have found a way to circumvent their failure to sustain useful service. Since my device still report power in watts, I am creating integral sensors that can calculate energy consumption in kwh. The newly created entity can then be added to the energy dashboard. https://www.home-assistant.io/integrations/integration I don't know yet if this is a viable solution, I created a few of those integral sensors for my highest consuming devices, to see if it actually works. Fingers crossed!

Integral sensors are a work around and I've used them when I wanted to add UPS units to my energy panel so made a few for some sense devices. Problem with them you can only see daily, weekly, monthly from the energy panel, the sensor will just show total if you look it up in your helpers. I'd prefer the integration work and it's weird it still works for some.

chiefspecialk avatar Apr 26 '25 02:04 chiefspecialk

For what it's worth, my usage reporting stopped upon upgrading to 2025.3.2 from 2025.2.5.

As a test, I spun up a docker container on different machine with 2025.2.5 and I have usage data from Sense.

Repeating the same exercise with a clean container, every later versions starting with 2025.3.1 reports no usage.

So it would appear that the issue isn't necessarily related to my Sense monitor but rather something changed between 2025.2.5 and 2025.3.1 that is causing this.

pwags avatar May 01 '25 21:05 pwags

True, I almost forgot, it also crapped out for me after an update. Thank you. Now I wonder what was changed in the update that might affect how Sense is working (or not), and more importantly, what was changed that only affect some systems and not other.

N3rd7 avatar May 02 '25 23:05 N3rd7

Sense sucks for doing that, but I might have found a way to circumvent their failure to sustain useful service. Since my device still report power in watts, I am creating integral sensors that can calculate energy consumption in kwh. The newly created entity can then be added to the energy dashboard. https://www.home-assistant.io/integrations/integration I don't know yet if this is a viable solution, I created a few of those integral sensors for my highest consuming devices, to see if it actually works. Fingers crossed!

Integral sensors are a work around and I've used them when I wanted to add UPS units to my energy panel so made a few for some sense devices. Problem with them you can only see daily, weekly, monthly from the energy panel, the sensor will just show total if you look it up in your helpers. I'd prefer the integration work and it's weird it still works for some.

What do you mean? I've setup a few as integral sensors and they work fine and seem to "attach" to the sense devices just fine, so they show overall usage, and when I'm looking at the daily usage chart, it shows properly.

AtrosPepsi avatar May 04 '25 23:05 AtrosPepsi

One thing that occurred to me is we're looking for the value of energy from the grid as that's an always increasing value to know if it's updated, but it's possible Sense might not be providing that to users that don't have anything to send power TO the grid like solar.

If someone could help:

  1. Open your browser
  2. Visit https://home.sense.com/devices/always_on
  3. Right click and hit "Inspect"
  4. Click the network tab
  5. Reload the page
  6. Find one of the lines on the list on the left starting with "trends?monitor_id=..."
  7. Click "Preview" on the right
  8. Look for the "from_grid" value
  9. Provide that here (possibly the whole response)

kbickar avatar May 06 '25 00:05 kbickar

Image

Image

Image

ptr727 avatar May 06 '25 01:05 ptr727

I do not have anything returning power to the grid, just pulling from it. Here's the response you requested, @kbickar :

Image

bluecrystaldex avatar May 06 '25 02:05 bluecrystaldex

I also don't have solar or anything returning to the grid; I had 3 trends?monitor_id lines, see below:

Image

Image

Image

N3rd7 avatar May 06 '25 10:05 N3rd7