#Turning on a fan when the current temperature is 70-75 F

1 messages · Page 1 of 1 (latest)

radiant relic
#

I am trying to configure an automation where a fan or AC turns on when the current temperature is 70-75 degrees Fahrenheit. I tried a numeric state, regular state, but have not had any luck getting this to work. I understand most temp sensors require the temp to cross a specific threshold.

dreamy saddle
#

are you saying you want that temp range to be the trigger for the automation?

#

like whenever the temp is in that range, turn the fan on, and turn it off when it goes out of that range?

lethal gate
#

Automation with numeric state, above 70 and below 75. Automation will trigger each time the tenperature enters the region from outside the region.

And another automation or another trigger, when it goes below 70 (maybe 69 for some schmidt trigger) to turn the system off

heavy ledge
#

That's a numeric state trigger on a regular automation.

automation:
  triggers:
    - trigger: numeric_state
      entity_id: sensor.outside_temperature
      # Other entity ids can be specified for above and/or below thresholds
      above: sensor.inside_temperature
radiant relic
radiant relic
dreamy saddle
#

Do you actually just want the fan to turn on when the temperature goes above 70?

main hedge
#

This is what I do to control one of my fans. It’s a bit more complicated than you are asking for but it works. https://dpaste.org/EmZ4q

lethal gate
#

Then you dont need a range, but just “above 70,” I guess, no?

#

If you are afraid that something will happen, you can also do for example a time pattern automation, and do your temperature check in the conditions. You can use more than one trigger. It all depends on the safety level of your automations.

rigid cosmos
#

A time paterns are very very very rarely a smart thing. The hole idea of HA is that it is event based and can act directly.

To come in the range it will pass the threshold. If another condition (for example time) might prevent action when it happens. If you want to also turn on the fan when the other condition becomes true and the temp is >70, just add that case. Aka, the condition becoming true is a trigger as well and >70 is a condition as well.

Aka, start with explaining ALL you want. Not really for us, but for yourself to make a good automation. There are no implicit actions so you have to explain every case.

lethal gate
#

I agree with time pattern story, but I always use it for thing that absolutely need a "watchdog" type of a control

frank lodge
#

this is mine

#

(the motion detector has a temperature sensor)

#

for the time, you would just ad a "AND IF"

rigid cosmos
#

@frank lodge Please share the yaml of the automation. This will contain all info en is easier to edit or copy.