From cea5b738f7c689a8dac10363107843761c27d3c1 Mon Sep 17 00:00:00 2001 From: Dorian Benech <47485034+xmow49@users.noreply.github.com> Date: Wed, 12 May 2021 09:23:10 +0200 Subject: [PATCH] Create automation-save-index.yaml --- automation-save-index.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 automation-save-index.yaml diff --git a/automation-save-index.yaml b/automation-save-index.yaml new file mode 100644 index 0000000..d681fc2 --- /dev/null +++ b/automation-save-index.yaml @@ -0,0 +1,22 @@ +alias: Enregistrer consomation de la journée +description: '' +trigger: + - platform: time + at: '00:00' +condition: [] +action: + - service: counter.configure + data: + value: '{{ states("sensor.linky_hc") | int}}' + target: + entity_id: counter.hc_end_journey + - service: counter.configure + data: + value: '{{ states("sensor.linky_hp") | int}}' + target: + entity_id: counter.hp_end_journey + - service: counter.configure + data: {} + target: + entity_id: counter.endhc +mode: single