Comments (2)
Interesting idea. I'll try to add that ability.
from ha-average.
Not sure if this is related to this enhancement request or if I should submitted a new request. Please let me know if this needs to be submitted as a new feature request.
I have several light/lux sensors around my home and based on their location, they can return a wide range of values. As is, I believe this ha_average sensor would favor the sensors with the largest values and basically drown out the sensor that return small values. The solution to this problem could be handled by assigning a weight to each sensor in the average calculation, however during different parts of the day that weighting may no longer be applicable as the sun moves from one side of the house to the other. Another alternative maybe to "normalize" the data from each sensor, say between 0 - 1 so that each sensor contribution to the average calculation would be roughly equal. If I want to know the overall lightness or darkness for my entire home regardless of the time of day then I don't want one sensor to dominate as it could be that sensor just happens to pointed in a direction with direct sunlight.
In the graphs below, I have 2 different light sensors. The value in the top left corner of each graph is the actual sensor value, the middle number is the 15 minute average for that one sensor, the value in the top right corner is the 15 min average for all sensors. As you can see the red line that represents the overall average is dominated by the Living Room Sensor. It would be nice if there was an option to make contribution of each sensor roughly equal.
Thank you for creating this custom component. This is so much better and easier to use than the builtin Statistics component. I plan to make a Patreon contribution to help support it's further development.
from ha-average.
Related Issues (20)
- Set interval using GUI
- Posibility restrict use only last value from dedicated scanning period.
- Problem with propagation of temperature unit when averaging a statistics helper
- Frequency of sensor update HOT 3
- Hi, the integration seems to break in HA 23.3.1 HOT 11
- This integration will stop working with Home Assistant 2023.4 HOT 8
- can't get average temperature over a 1 day period of last week HOT 3
- AverageSensor is using state class 'measurement' which is impossible considering device class ('energy') it is using
- Average only from values registered from the last X secs/mins/hrs. HOT 2
- Update ha-average to support the changed way in which attributes are excluded from recording
- Deprecated constants warnings in 2024.1 HOT 7
- Add a trend attribute for sensors with a period
- Check configuration doesn't finish when a sensor for this is added to configuration.yaml HOT 2
- Need help with adding more then just one of the sensors. Sorry waste of time got it working. HOT 1
- HACS Has faulty download url for release 2.3.1 HOT 1
- Home Assistant becomes unresponsive when using average sensor
- Support for counting average of long-term statistics sensor HOT 1
- Integration unable to find an existing entity HOT 2
- GTS Temperatur
- STATE_CLASS_MEASUREMENT is a deprecated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-average.