need help with my first automation. i have an aquara temp sensor that i would like to toggle on a smart outlet. If the temp goes above xx then turn on an outlet. here is what i have so far. if i manually run the automation it works, just not automatically. Thanks
# turn on fan when temp sensor reaches certain degree
- type: temperature
- service: switch.toggle
Hello and welcome to the forum. Please have a read of point 11 here then edit your post and fix your pasted code.
But rather than automating this it sounds like a job for a thermostat.
- platform: generic_thermostat
If the current temperature of the sensor is above 70 then the automation won’t trigger.
the trigger only happens when it goes from false to true. So in your case from below 70 to above 70.