Would somebody walk me through an automation to set a timer for a fan?

Hi,

I just tried that and it didn’t make a difference unfortunately, thanks anyways.

I finally got it, only but I have is I can’t get the input_boolean to go off when finished, but the timer function works. Had to combine the script into the automation, and then it all worked.

- alias: 'Man Cave Fan Timer'
  trigger:
      platform: state
      entity_id: input_boolean.fantimer
      state: 'on'
  action:
    - service: homeassistant.turn_on
      entity_id: switch.catfan   
    - delay: '00:{{ states.input_slider.mancavefantimer.state | int }}:00'
    - service: homeassistant.turn_off
      entity_id: switch.catfan
    - service: homeassistant.turn_off
      entity_id: input_boolean.fantimer
1 Like

Awesome!

To get the input boolean to work, try changing homeassistant.turn_off to “input_boolean.turn_off” or “input_boolean.toggle”.

1 Like

That did it, thanks. Now it is perfect.