dbuezas/lovelace-plotly-graph-card

Alter (transform) certain data points

Opened this issue · 0 comments

I have a tuya ac unit that throws out anomalies when the temp reading is under 61 degrees.
IMG_3092

I tried the filter map but it's averaging data values resulting in incorrect data. Trying to remap those values doesn't give me the desired result.
IMG_3094

I actually want to "replace" certain data values less than 20 by adding back a constant value:
If datapoint < 20
datapoint + 45

Is this possible? Or do I need to create some sort of template sensor?