Last active
October 14, 2023 21:46
-
-
Save czechdude/7b8e205c1e776c179c9e3c155b4ac6c7 to your computer and use it in GitHub Desktop.
utility meter counter from https://www.facebook.com/photo/?fbid=10216296119310146&set=pcb.2877470579246476
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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