Skip to content

Instantly share code, notes, and snippets.

@tathamoddie
Last active July 16, 2022 04:55
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 tathamoddie/12bf593600e7c84ce7d74d688f8e4111 to your computer and use it in GitHub Desktop.
Save tathamoddie/12bf593600e7c84ce7d74d688f8e4111 to your computer and use it in GitHub Desktop.
- alias: 'Washing Done'
mode: restart
trigger:
- platform: numeric_state
entity_id: sensor.washing_machine_power
above: 0
for:
minutes: 5
action:
- wait_for_trigger:
- platform: state
entity_id: sensor.washing_machine_power
to: 0
for:
minutes: 5
- service: notify.everyone
data:
title: "👕 So Fresh and So Clean"
message: Washing machine seems to be done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment