Skip to content

Instantly share code, notes, and snippets.

@adonno
Last active May 10, 2020 16:54
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 adonno/996dde9f4844e3c1ae06c555bc830c37 to your computer and use it in GitHub Desktop.
Save adonno/996dde9f4844e3c1ae06c555bc830c37 to your computer and use it in GitHub Desktop.
---
counter:
diaper_counter:
initial: 0
step: 1
icon: mdi:emoticon-poop
---
- id: '1579629145305'
alias: Increment diapers counter
description: ''
trigger:
- entity_id: binary_sensor.openclose_19
from: 'on'
platform: state
to: 'off'
- entity_id: binary_sensor.openclose_19
from: 'off'
platform: state
to: 'on'
condition: []
action:
- entity_id: counter.diaper_counter
service: counter.increment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment