Control smart outlet based on humidity levels

I’m trying to control a smart outlet based on humidity levels using an automation. If it drops below drops below 30%, turn on the switch. if it rises above 45% turn off the switch. I’m using two different automations.

alias: Atmosphere Control - Lincoln Room Humidifier above 45% turn off
description: ""
trigger:
  - platform: numeric_state
    entity_id: sensor.lincoln_room_humidity
    above: 45
    below: 100
condition: []
action:
  - service: scene.turn_on
    target:
      entity_id: scene.linchumidifieroff
    metadata: {}
mode: single

and

alias: Atmosphere Control - Lincoln Room Humidifier below 30% turn on
description: ""
trigger:
  - platform: numeric_state
    entity_id: sensor.lincoln_room_humidity
    below: 30
    above: 0
condition: []
action:
  - service: scene.turn_on
    target:
      entity_id: scene.linchumidifieron
    metadata: {}
mode: single

my problem is that it doesn’t seem to trigger. what am I doing wrong?

what is the humidity sensor value right now?

if the value doesn’t cross one the thresholds (from above 30 to below 30 or from below 45 to above 45) then the trigger won’t fire.

it did crossover to 46, but the switch didn’t turn off. I feel like I must be missing something, but can’t figure it out.

Maybe your scene isn’t correct?

why are you using a scene for this?

wouldn’t it be better to just use a switch.turn_x service call?