-
Hi, thanks for helping in advance!!
Q&A: Q1: How to count the "on"? (or maybe the "change") Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
oh, to count per day, you'll need #181, which I still need to implement. type: custom:plotly-graph
entities:
- entity: binary_sensor.lumi_lumi_magnet_acn001_iaszone
unit_of_measurement: m³
filters:
- map_y: y === "on" ? 1 : 0
- integrate: 1d # will accumulate in units per day
- resample: 1d #will keep 1 measurement per day only
- delta # will subtract each two consecutive values
- multiply: 0.1
- store_var: gas
- entity: ""
filters:
- load_var: gas
- trendline
|
Beta Was this translation helpful? Give feedback.
-
You need tu upgrade to v3.0.0 |
Beta Was this translation helpful? Give feedback.
-
Yes you are right, I forgot to update. After update I tried following: why is it not counting a complete number, but a fraction of 1 ? Here is something missing but even no success. May the first step should count the on per day.... thx a lot for you help! |
Beta Was this translation helpful? Give feedback.
oh, to count per day, you'll need #181, which I still need to implement.
As a hack, you could do the following (in the new v3.0.0 release)