Humidity, window sensor with alarm

Change this part:

  conditions:
  - condition: device
    type: is_on
    device_id: d6f78d1303e43af1a99bd6313631fe60
    entity_id: 24748285b278fefdc61bb9eb92611f6a
    domain: switch
    for:
      hours: 0
      minutes: 1
      seconds: 0
  - type: is_not_open
    condition: device
    device_id: 4be3590adb65e05cd8405ebd3ee4f415
    entity_id: beb3ab850e7873afde9e72ab6d5cb7c4
    domain: binary_sensor
  - type: is_humidity
    condition: device
    device_id: 16a86876790ba5f5ee928769108479e0
    entity_id: d3b1c1b89b3476a75361bd4120c7b0b7
    domain: sensor
    above: 80

to this:

  conditions:
  - condition: device
    type: is_on
    device_id: d6f78d1303e43af1a99bd6313631fe60
    entity_id: 24748285b278fefdc61bb9eb92611f6a
    domain: switch
  - type: is_not_open
    condition: device
    device_id: 4be3590adb65e05cd8405ebd3ee4f415
    entity_id: beb3ab850e7873afde9e72ab6d5cb7c4
    domain: binary_sensor
  - type: is_humidity
    condition: device
    device_id: 16a86876790ba5f5ee928769108479e0
    entity_id: d3b1c1b89b3476a75361bd4120c7b0b7
    domain: sensor
    above: 79

You had two issues there - your switch was being triggered immediately, but the condition checks if it’s been on for 1 minute. Also, your humidity sensor was being triggered above 79 (so 80 would trigger it), but your condition was checking if your humidity is above 80, so it would stop the automation.

Someone in the HA Facebook group needs to learn that using devices for automations is a bad idea. It’s much simpler and more future proof to use entities. Read this for context.