I have a binary sensor that i use to track the status of my washing machine - on or off.
Essentially it does this through a smart plug, and when the current power is below a threshold for a short amount of time, it sets the binary sensor to off.
I would like to set up notifications - (push notifications to the HA android app, and TTS notifications to various google speakers around the home) for when the washing machine has finished - the binary sensor changes to off.
I set up the following automation, and when executing i do get a notifcation:
alias: Washing Machine Notification
description: ''
trigger:
- platform: state
entity_id: binary_sensor.washing_machine
from: 'On'
to: 'Off'
condition: []
action:
- service: notify.mobile_app_g8341
data:
message: Washing Machine has finished!
mode: single
However, the automation doesn’t seem to get triggered when the binary sensor changes to an off state. So the action works OK, but the trigger doesn’t.
Am i missing something obvious here? The trigger looks like it should be very easy to set it up.
TIA!