Humidity Sensor to trigger Humidifier on

So I can’t seem to get the Humidifier to turn on from a sensor when it reads under 50.

Here is what my sensor looks like.

And here is the automation I created. I assume its unit of measure but I tried all the attributes with no luck…

platform: numeric_state
entity_id: sensor.wirelesstag_grow_room_temp_humidity
below: ‘50.0’

condition: device
type: is_off
device_id: c17f20359d60023325001eab4a9d9345
entity_id: switch.aux_outlet
domain: switch

type: turn_on
device_id: c17f20359d60023325001eab4a9d9345
entity_id: switch.aux_outlet
domain: switch

Here is the sensor in developer state
battery_level: 92
voltage: 2.94V
signal_strength: ‘-84dBm’
out_of_range: false
power_consumption: 13.33%
unit_of_measurement: ‘%’
friendly_name: Grow Room Temp
device_class: humidity

Also tried 50 instead of 50.0, I also checked in the developer section under State and it shows the temp as a decimal for the humidity but it is reporting there. Yet it will not trigger… It does if I hit run script but not if i leave it=. Reporting on the sensor is every minute so I wait 5-10 to see if it need time but no luck…

Please format your code properly as stated in point 11 of the community guidelines

A numeric state trigger only triggers when the value crosses the threshold.
In your example it will only trigger when it goes from above 50 to below 50 and then only again when it goes above 50 again and then below 50. A change from 20 to 40 will not trigger, a change from 60 to 40 will trigger.

If you want it to trigger on every reading that is below 50, you need to use a state trigger and then check in the condition if it is below 50.

1 Like

I will read that and thank very much for that information.