home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.75k stars 28.91k forks source link

Smappee integration - stale data #103712

Open D-dc opened 7 months ago

D-dc commented 7 months ago

The problem

Hi,

It seems the smappee integration does not update most sensors after a while. It returns only stale data for hours. What seems to help is to restart HA or reload the integration. I also noticed opening the app on the mobile phone makes it update the data for a while.

What version of Home Assistant Core has the issue?

core-2023.2.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

smappee

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 7 months ago

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

Code owner commands Code owners of `smappee` 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 smappee` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


smappee documentation smappee source (message by IssueLinks)

issue-triage-workflows[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Descagir commented 4 months ago

Same problem for me. Issue not solve.

Ka8oum commented 4 months ago

Same problem here, it's really annoying..

Bjorn-BlueBear commented 3 months ago

Also having the same issue here. Is there any possibility someone can have a look at it? Whenever I open the app or smappee dashboard the data comes back in.

image

As you can see in the above image. I did not open the smappee dahboard for two days and this is the result in HA

SouthAussieSam commented 3 months ago

Similar issue here, plus some scalar mismatch in the data (magnitude of data in HA not same as data in Smappee app).

stvnmbr1 commented 2 months ago

i made an automation to worrkaround the issue for now; works well for the past weeks:)

create datetime sensor first:

sensor:

alias: Smappee - Reload integration description: "" trigger:

SouthAussieSam commented 2 months ago

Can the following line: as_timestamp(states.sensor.insert sensorname_load_grid.last_updated) %} {% be written as: as_timestamp(states.sensor.date_time_load_grid.last_updated) %} {% ?