Notification if humidity is high

Hey every body I have set up this automation to notify me if the humidity is above 50%. However the automation wont trigger. Whats wrong?

alias: Office humidity high
description: ''
trigger:
  - platform: numeric_state
    entity_id: sensor.office_humidity
    above: '50'
    for:
      hours: 0
      minutes: 2
      seconds: 0
condition:
  - condition: state
    entity_id: binary_sensor.dw_office
    state: 'off'
action:
  - service: media_player.volume_set
    data:
      volume_level: 0.55
    target:
      entity_id: media_player.echo_dot_office
  - service: notify.alexa_media_echo_dot_office
    data:
      message: >-
        Humidity is too high. Please open a window.
      data:
        type: tts
mode: single

What is the current value of sensor.office_humidity?

The Numeric State Trigger will trigger at the moment the sensor’s value crosses the threshold value of 50. After crossing the threshold, it won’t trigger again as the humidity continues to increase. It will only trigger when the humidity first decreases below 50 and then rises above it.

1 Like