Automation for my airconditioning

Hey everyone, I added my airco unit to HA and it works great. Now I would like if someone switches off the air conditioning from the cool function that the air conditioning turns on again for 30 minutes on the fan function. I got no further than

  • if switched off
    then switch on on fan for 30 min.

Only then the automation ends up in a loop.

Can someone help me or explain how I can get this working? this is what i have now

alias: Als airco uitgezet wordt dan fan aanzetten ivm drogen
description: ""
  - platform: device
    device_id: ***
    domain: climate
    entity_id: ***
    type: hvac_mode_changed
    to: "off"
condition: []
  - device_id: ***
    domain: climate
    type: set_hvac_mode
    hvac_mode: fan_only
  - delay:
      hours: 0
      minutes: 30
      seconds: 0
      milliseconds: 0
  - device_id: ***
    domain: climate
    entity_id: ***
    type: set_hvac_mode
    hvac_mode: "off"
mode: singlett

Use the from in your trigger to say from cool to off. That way when it goes from fan only to off it will not trigger again.

1 Like

Thx that is what i needed. I needed to check the state of the device.