Automation not working - what am I doing wrong?

Config in automations.yaml looks like this:

- alias: test
  initial_state: false
  trigger:
    - platform: numeric_state
      entity_id:
        - sensor.test1_humidity
        - sensor.test2_humidity
      above: '50'
  action:
    - service: notify.notify
      data:
        message: "Test"

Never fires.

Did one of your humidity sensors change from below 50 to above 50? The trigger only fires if the threshold has been crossed and then only fire again if the value went below the threshold and above the threshold again.
If you trigger the automation manually (skips triggers and conditions) do you receive the message.

Also your automation is โ€˜offโ€™ by default.
Turn it on.

2 Likes