Skip to content

Instantly share code, notes, and snippets.

@Techwolf12
Last active June 7, 2022 10:20
Show Gist options
  • Save Techwolf12/8d0ffb596e0931f5e16b5b37740071b0 to your computer and use it in GitHub Desktop.
Save Techwolf12/8d0ffb596e0931f5e16b5b37740071b0 to your computer and use it in GitHub Desktop.

How to get the Watermeterkit into Home Assistant, see my blog post for details!

blueprint:
name: Watermeterkit Meter Value
description: Update a counter when the watermeterkit.nl sensor gets updated
domain: automation
input:
watermeterkit:
name: Watermeterkit Total Consumption counter
description: Watermeterkit Total cosumption counter (provided by ESPHome)
selector:
entity: {}
counter:
name: Helper Counter
description: The helper counter you made
default: []
selector:
entity:
domain: counter
source_url: https://gist.github.com/Techwolf12/e7f3bf88d33c803b7b024e7e229a1c81
mode: single
trigger:
- platform: state
entity_id: !input 'watermeterkit'
condition:
- condition: not
conditions:
- condition: or
conditions:
- condition: state
entity_id: !input 'watermeterkit'
state: '0.000'
- condition: state
entity_id: !input 'watermeterkit'
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