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 sensor” from an “Filter sensor” don’t work (unavailable) #78912
Comments
statistics documentation |
Hey there @fabaff, @ThomDietrich, mind taking a look at this issue as it has been labeled with an integration ( |
Hello @Gferretta, Your statistics sensor 4a "does not work" you say. Not sure what that means. Please try the following code. Let sensor:
platform: filter
name: "FHum1"
entity_id: sensor.hum1
filters:
- filter: outlier
window_size: 3
radius: 999
- platform: statistics
name: "MAX FHum1 for 24 hours"
entity_id: sensor.fhum1
state_characteristic: count
max_age:
hours: 24
sampling_size: 9999 |
What I meant by "NOT working" is that it does not bring the maximum/minimum values of an "Filter" I have made the changes you have proposed and I will show you the results shortly |
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. |
The problem
Hi
I have an:
What I am wanting to do is have statistical sensors defined on the filter sensor (3) to be able to save the minimum/maximum/average values according to different time values.
The problem is that in the statistics, when using the filter sensor (3), I ALWAYS receive "unavailable".
But if I use the template sensor (2) in the statistics, I immediately begin to have values and they adjust correctly.
My question is enlarged because I have correctly saved the history on the filter (3) since I can use the statistics card on that sensor in lovelace.
I have followed all the new settings defined in: https://www.home-assistant.io/integrations/statistics/
Any idea if it can or am I doing something wrong? It's Possible to do?
Thanks
Example:
What version of Home Assistant Core has the issue?
core-2022.9.5
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
statistics
Link to integration documentation on our website
https://www.home-assistant.io/integrations/statistics/
Diagnostics information
.
Example YAML snippet
.
Anything in the logs that might be useful for us?
Additional information
.
The text was updated successfully, but these errors were encountered: