You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -427,6 +427,7 @@ entities:
427
427
meta: { unit_of_measurement: "delta" }
428
428
};
429
429
},
430
+
- resample: 5m# Rebuilds data so that the timestamps in xs are exact multiples of the specified interval, and without gaps. The parameter is the length of the interval and defaults to 5 minutes (see #duration for the format). This is useful when combining data from multiple entities, as the index of each datapoint will correspond to the same instant of time across them.
430
431
- filter: y !== null && +y > 0 && x > new Date(Date.now()-1000*60*60) # filter out datapoints for which this returns false. Also filters from xs, states and statistics. Same variables as map_y are in scope
431
432
- force_numeric # converts number-lookinig-strings to actual js numbers and removes the rest. Any filters used after this one will receive numbers, not strings or nulls. Also removes respective elements from xs, states and statistics parameters
432
433
```
@@ -523,15 +524,18 @@ Compute absolute humidity
523
524
type: custom:plotly-graph-dev
524
525
entities:
525
526
- entity: sensor.wintergarten_clima_humidity
526
-
period: 5minute # important so the datapoints align in the x axis
527
527
internal: true
528
528
filters:
529
+
- resample: 5m # important so the datapoints align in the x axis
0 commit comments