Skip to content

Instantly share code, notes, and snippets.

@czechdude
Last active October 14, 2023 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save czechdude/7b8e205c1e776c179c9e3c155b4ac6c7 to your computer and use it in GitHub Desktop.
Save czechdude/7b8e205c1e776c179c9e3c155b4ac6c7 to your computer and use it in GitHub Desktop.
#měřič spotřeby vody pro Energie
template:
- sensor:
- name: "Watermeter"
unique_id: water_meter_in_l
unit_of_measurement: L
device_class: water
state_class: total_increasing
state: "{{ states('counter.counter_water_pulses')|int }}"
# Counter
counter:
counter_water_pulses:
step: 1
restore: true # pokud chci změnit hodnotu, tak ji zde vložím initial: 287654 a restore nastavím na false, udělám reset a restore změním na true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment