-
-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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 with % unit #86877
Comments
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) websocket_api documentation |
Can confirm this. All statistics graphs with % as the unit are broken.
|
Here are the relevant WS request/response from my browser.
{
"type": "recorder/get_statistics_metadata",
"statistic_ids": ["sensor.humidity"],
"id": 35
} {
"id": 35,
"type": "result",
"success": true,
"result": [
{
"statistic_id": "sensor.humidity",
"display_unit_of_measurement": "%",
"has_mean": true,
"has_sum": false,
"name": null,
"source": "recorder",
"statistics_unit_of_measurement": "%",
"unit_class": "unitless"
}
]
}
{
"type": "recorder/statistics_during_period",
"start_time": "2023-01-03T04:21:32.623Z",
"statistic_ids": ["sensor.humidity"],
"period": "hour",
"units": { "unitless": "%" },
"types": ["state", "sum", "min", "max", "mean"],
"id": 37
} {
"id": 37,
"type": "result",
"success": false,
"error": {
"code": "invalid_format",
"message": "extra keys not allowed @ data['units']['unitless']. Got '%'"
}
} So the recorder integration is claiming that there is a As a side note, the fact that the request schema for the |
Home Assistant 2023.2.0 has been released with this issue. More people will certainly complains about that one now.
|
Same here. All statistics graphs with % (e.g. humidity, processor usage, disk usage, etc.) is now completely broken and causes spamming of the error log. They were working perfect before the 2023.2.0-release. |
Confirming same issue @2023.2 release |
Confirm same issue after 2023.2 release.... |
Fixes in #87202 |
The problem
I'm not sure if this is a Core or Frontend issue.
In case of a Statistics graph card with unit '%' the graph is not shown and the following error is reported in the logs (sensor from the
systemmonitor
component).What version of Home Assistant Core has the issue?
2023.2.0b4
What was the last working version of Home Assistant Core?
2023.1
What type of installation are you running?
Home Assistant OS
Integration causing the issue
websocket_api
Link to integration documentation on our website
https://www.home-assistant.io/integrations/websocket_api/
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
The text was updated successfully, but these errors were encountered: