Skip to content

Instantly share code, notes, and snippets.

@huizebruin
Last active October 22, 2022 17:41
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 huizebruin/757bf3f6916db328458b509c871c962d to your computer and use it in GitHub Desktop.
Save huizebruin/757bf3f6916db328458b509c871c962d to your computer and use it in GitHub Desktop.
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