Skip to content

Commit

Permalink
Create automation-save-index.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
xmow49 authored May 12, 2021
1 parent 21932d5 commit cea5b73
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions automation-save-index.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cea5b73

Please sign in to comment.