AndroidAPS icon indicating copy to clipboard operation
AndroidAPS copied to clipboard

[Feature Request] Smoothing variant automation action

Open WesSec opened this issue 10 months ago • 2 comments

It would be super awesome if we could set the smoothing setting in automations.

Use Case: often a sensor is placed not ideal, and I get compression lows in the night. Exponential smoothing prevents the loop from acting upon these rapid changes. This only happens during the night; at daytime the loop can benefit from detecting the rapid changes (for instance in combination with AutoISF)

If we can schedule the smoothing by automations, we can benefit rapid change detection during daytime, and use smoothed values during nighttime.

WesSec avatar Feb 12 '25 08:02 WesSec

Some other use case for this. Could use automations to change to exp smoothing when sensor age is less than 1 day or so to help even out the bumpy start of sensor life and then change to average smoothing after 1 day.

olorinmaia avatar Feb 15 '25 06:02 olorinmaia

I just had this usecase the day before yesterday and posted a likewise proposal on discord. Just opened github to write a feature request and found this thread. I am already running an automation to sett high TT when a instant drop in BG takes place during the night, but it just doesn't work that nice, since it leads to neg IOB which is set off later on leading to the "real bump"

gerison77 avatar Mar 26 '25 07:03 gerison77