Last active
October 22, 2022 17:41
-
-
Save huizebruin/757bf3f6916db328458b509c871c962d to your computer and use it in GitHub Desktop.
This file contains 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
blueprint: | |
name: S0tool Watermeter Kit Meterwaarde | |
description: Werk een teller bij wanneer de S0tool-watersensor wordt bijgewerkt | |
domain: automation | |
input: | |
S0tool: | |
name: sensor.watermeter_totaal | |
description: Watermeter Totaal verbruik teller (geleverd door S0Tool) | |
selector: | |
entity: {} | |
counter: | |
name: Helperteller | |
description: De helperteller die je hebt gemaakt | |
default: [] | |
selector: | |
entity: | |
domain: counter | |
source_url: https://gist.github.com/huizebruin/757bf3f6916db328458b509c871c962d | |
mode: single | |
trigger: | |
- platform: state | |
entity_id: !input 'S0tool watermeter' | |
condition: | |
- condition: not | |
conditions: | |
- condition: or | |
conditions: | |
- condition: state | |
entity_id: !input 'S0tool watermeter' | |
state: '0.000' | |
- condition: state | |
entity_id: !input 'S0tool watermeter' | |
state: unavailable | |
action: | |
- service: counter.increment | |
target: | |
entity_id: !input 'counter' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment