Humidity alert check/automation not working - help appreciated

good day,

attempting a first automation, a push notification when humidity from a sensor drops below a certain point. yaml is -

  platform: numeric_state
  entity_id: sensor.ble_humidity_govee_5074_g1e
  below: '70'

  service: notify.mobile_app_sanitized
  data:
     message: humidity has dropped below threshold

my understanding is that the above should look to see if the value returned from the sensor is below 70 (percent), and if so, trigger a push notification to the mobile app mentioned via service.

if i ‘run’ the automation, even if the value is not below 70, it will send the notification. if i save out the config (doing this in the graphical editor, but providing yaml for readability here), the automation never fires off, even though the value of the humidity sensor is below the prescribed value of 70.

i must be missing something pretty simple here, but i cannot figure out what.

any pointers appreciated ! thank you !

Read the first paragraph of the Numeric State trigger. It only triggers when you cross over that value, I.e from 71 to 69 for instance.

In addition to what Daryl said,

What do you mean by this?

If you mean you trigger the automation manually then the triggers and any conditions are ignored and the actions are performed.

thank you, that is helpful documentation.

thanks for the pointer,

i think i was positing that. that if you invoke the automation manually, it seemed to ignore (as you said) the conditionality, and just run it. thank you for the verification, appreciate it.

If you go to Developer Tools / Services and choose the automation.trigger service you can set the skip_condition option to false so that conditions are evaluated when you run the service.

1 Like