Notification of binary sensor

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!

try off and on in lowercase

Like @richieframe said above, using on and off should work. For future reference, if you want to see what states you should be looking for, you can see what states the sensor is returning using the States page in Developer Tools.

Thanks both. I’m sure i’d seen the state with a leading capital, but that might have just been a “displayed state” rather than the state value.

It works when manually switching states between off and on, now to try it with the real thing!