-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Statistics Graph Card not populating for Shelly (Motion and TRV) temperatures (Gen 1 devices) #107530
Comments
Hey there @balloob, @bieniu, @thecode, @chemelli74, @bdraco, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) shelly documentation |
Hi, I bet you have a old firmware. logger:
default: warning
logs:
homeassistant.components.shelly: debug
aioshelly: debug Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub. And add diagnostics (menu configuration -> integration -> shelly -> download diagnostics ) |
Thanks, it is most current firmware (20231122-131719 for the Motion 2). The log has shown lots of other items to tidy, I'll do that first, and then try a few things over next few days, then get back to you. Thanks for help. |
Ok, then please check firewall rule / routing as I noticed in your diagnostic that the device and HA are on different subnet. |
Yes, devices are on separate subnet (restricted internet access). I've made an observation tonight, in Developer Tools > Statistics, there is the following error: |
Same issue as @fearntech and similar environment. Data from the last months are ok but since the update there ist no state_class anymore and the statistics graph in the dashboard shows no data. Shelly D&W and H&T have this issue as well. |
We have determined the root cause is likely that the state class is not restored for gen1 devices
To fix this we would need to migrate gen1 devices to use the same/similar restore model as gen2 devices |
To set expectations, its unlikely this will get fixed in a patch release as its a significant amount of refactoring work to solve this issue. The good news is we have no identified the cause which means a solution can be developed |
There's a way we can work-around it in the config file till when a fix gets shipped? I'd not like to lose statistics because of this issue. |
That's great, thanks for looking into this. |
The refactoring need to make this work is significant enough that there is no workaround available |
The problem
Shelly Motion 2 and TRV temperatures were displaying on Statistics Graph Card with core_2023.12.4. After update to core_2024.1.0 temperatures stopped updating on Statistics Graph, and I now have 'No statistics found'. If I edit "Statistics Graph Card Configuration" and try to add any Shelly Motion/TRV then they are not available in the dropdown list. I restored backup to core_2023.12.4, and the data began populating again successfully. I tried totally deleting a device and re-adding but have the same problem again. If I go to 'History' tab, then data is recording there with no problem.
What version of Home Assistant Core has the issue?
core_2024.1.0
What was the last working version of Home Assistant Core?
core_2023.12.4
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Shelly
Link to integration documentation on our website
https://www.home-assistant.io/integrations/shelly/
Diagnostics information
config_entry-shelly-12f14fc03f7d5c282b7a29d6aeb4d895.json.txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: