#Turning on a fan when the current temperature is 70-75 F
1 messages · Page 1 of 1 (latest)
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?
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
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
Correct. If the temp is above 70 but below 75 between specific hours, then turn on the fan. Numeric trigger doesn't seem to be doing it
Is there a way to monitor the current temp and if that's within a range trigger an automation? If the temp is 78, it's above my threshold of 70-75, but won't trigger based on what you're saying cuz it will stay 78 until I turn on the fan
Do you actually just want the fan to turn on when the temperature goes above 70?
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
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.
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.
I agree with time pattern story, but I always use it for thing that absolutely need a "watchdog" type of a control
this is mine
(the motion detector has a temperature sensor)
for the time, you would just ad a "AND IF"
@frank lodge Please share the yaml of the automation. This will contain all info en is easier to edit or copy.