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
Hi
I use an automation to fill my water consumption
The maximum I have from my water supplier is 2 days old:
- alias: Enregistrer l'index à la date reçue
action: recorder.import_statistics
data:
statistic_id: sensor.index_eau
unit_of_measurement: L
has_mean: false
has_sum: true
source: recorder
stats:
- start: >
{{ (as_local(as_datetime(trigger.payload_json.date))) | as_datetime
| as_local | as_timestamp
| timestamp_custom("%Y-%m-%dT00:00:00%z") }}
sum: "{{ trigger.payload_json.index | int }}"
state: "{{ trigger.payload_json.index | int }}"```
it works but I never find a way to prevent HA to recalculate negative values between the last value entered in the LTS and today
Any advice ?
Thanks
Philippe
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I use an automation to fill my water consumption
The maximum I have from my water supplier is 2 days old:
Beta Was this translation helpful? Give feedback.
All reactions