Automation to check Humidity and turn heat on not working

Could anyone tell me why this automation doesn’t work?

alias: Schuur - Vochtigheid
description: ""
trigger:
  - type: humidity
    platform: device
    device_id: 43ab46576aacb0743a15b5790c705f89
    entity_id: 84b006868ea7cd539b82016e384721bb
    domain: sensor
    id: U57
    above: 57
  - type: humidity
    platform: device
    device_id: 43ab46576aacb0743a15b5790c705f89
    entity_id: 84b006868ea7cd539b82016e384721bb
    domain: sensor
    id: B57
    below: 57
    for:
      hours: 0
      minutes: 30
      seconds: 0
condition: []
action:
  - if:
      - condition: trigger
        id:
          - U57
    then:
      - type: toggle
        device_id: ee631307bf6eb386910378dad949ac1c
        entity_id: 189cd8ebe38a921a4a8c45faca9ec1b6
        domain: switch
    else:
      - if:
          - condition: trigger
            id:
              - B57
        then:
          - type: toggle
            device_id: ee631307bf6eb386910378dad949ac1c
            entity_id: 189cd8ebe38a921a4a8c45faca9ec1b6
            domain: switch
mode: restart

What do you expect it to do?

Currently if the temperature crosses from above to below 57 or crosses from below to above 57 it will change the state of the switch to off if it was on or on if if was off.

It doesn’t turn the smart plug on. It is the humidity, not the temp. We don’t use Fahrenheit here. 57 degrees Celsius is Almost unbearable :stuck_out_tongue: (57 Celsius is 135 fahrenheit, give or take)

Executed: 18 augustus 2023 om 15:42:05
Result:
choice: else
if
Executed: 18 augustus 2023 om 15:42:05
Result:
result: false
if/condition/0
Executed: 18 augustus 2023 om 15:42:05
Result:
result: false

How did you perform this test?