Basic Automation Advice - Automatic Extractor Fan Control

Morning.

Apologies if this is a stupid question but I have just set up a very basic automation with an extractor fan (connected to a Sonos Mini Switch) and a Sonos Humidity sensor.

I have set up to automations:

  1. If the sensor goes above 69, turn on the switch.
  2. If the sensor goes below 70, turn off the switch.

Is this all I need to do?

I was wondering whether if the sensor reads 68, then 67, then 66 etc. will it keep sending a “turn off switch” signal (unnecessarily)? Or will the “off” signal only be sent once, once it reaches 69 and then nothing more until it goes to 70 or above, again?

it will only trigger the once , if it does trigger more it doesnt make a difference put a condition in that it can only run between certain times, the fan my bathroom came on a 3 am one humid night

Don’t make it an automation.
Set up a Generic hygrostat - Home Assistant (home-assistant.io) instead

I am going to have a look at that thanks