Trigger not working in Automation

My freezer door got left open and I lost most of it. Decided it was time to use a sensor to make sure the door didn’t get left open. I’m using a wyzesense sensor. It’s working great. I can’t seem to get the trigger on the automation to work. Probably something simple. I just can’t seem to figure it out. Any ideas?

- alias: Freezer door still open
  trigger:
    platform: state
    entity_id: binary_sensor.wyzesense_77997ecd
    from: 'closed'
    to: 'open'
    for:
       minutes: 2
  action:
    service: notify.events
    data:
      message: 'Freezer door is open!'
      data:
        level: 'warning'
        priority: 'high'

Should more than likely be off and on than closed and open. Look at the states in developer tools to confirm.

1 Like

That was it. I swear I tried that at first and it didn’t work. Oh well. It’s working now. Thank you.

1 Like