Skip to content

Instantly share code, notes, and snippets.

@adonno
Last active May 10, 2020 16:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
---
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