#Automation to lower existing temp by number of points
1 messages · Page 1 of 1 (latest)
I'm here
heya!
So you want to capture the current temp and then when it's 10 degrees below turn off.
Yeah so basically. I thought I 'd have to write some custom sensor that takes the value of the temp when the automation starts and then the automation would calculate 10 degrees cooler but that seemed kind of a hack job and thought there was an easier way to do it.
basically yeah
dangit haha.. I'm still not up to speed with templates and custom sensors..
Do you have a sensor on the fan to know when it turns on?
oh, no but, .....
i never thought of that. why would I want to know when the fan turns on.
Well you need to have something that tells the automation to trigger then the temp is 10 degrees cooler.
You can monitor the sensor, but you need a start point
If you use a button, then that could be your trigger.
Maybe you want to start with something like this (https://pastebin.com/g0mAJDpN). I know how it was when I first started and sometimes you just need a push to help you wrap your head around it.
Oh ok let me look
Looking at yours now
Ok so that definately answers my question that I will have to be digging around and writing some yaml
I know mine isn't complete but thats around where I was starting
I thought I would have a conditional repeat loop thing.
You don't have to. For the first automation click on the switch to YAML and then paste in the first one and then click edit in visual editor to see it with click boxes and such. Just do that for one at a time or it won't work.
Yeah I remember when I started (I have 18 months on HA now), some things didn't make sense, and the hard thing is thinking about it in the way HA wants you too, or that there are multiple ways to do the same thing.
multiple ways is definately a trend
For now i suggest just trying to grab the temperature and storing it in an input_number and see if you can get that to work. Building blocks.
I have a question about your first automation, in the action it's storing in that inpuit number.. but is that like. ,creating a helper on the fly?
Instead of creating the helper is that doinfg the same thing?
No - you need to create first
Settings / Devices& services / Helpers
I guerss i wasn't totoally off base then. I had the right idea but yeah your example helps tremendously
I've made helpers i know that part
Yep - you're just making buckets to put things in that you'll use elsewhere in other automations and such
I will be excited to come tell you I figured it out. Soon hopefully you got me a lot closer than I was here.
Cool. Best of luck.
Thank you @formal ivy
My concern is that you're using an automation. If there are only actions then maybe you instead wish to use a script (which is a series of actions and you can say when to start). Other than that you look to be on the right track. Full disclosure, I've not used repeat/until myself yet, but in reviewing the docs it looks correct.
the part that's not working is when I say "above" = the sensor name. it doesn't like that syntax.
it only seems to want to take a numeric value. I'm so close I can taste it haha
get rid of value. Should be below: ...helper_name ...
Another change - you don't need the turn_on action to keep repeating, so you could move the turn_on to run just before the repeat starts.
If you get an error that sequence can't be blank then just add - delay: "00:00:01" under it.
Well it kinda worked, it kicked the ESP offline and then by the time it came back online the temp was way lower 😄
If you move this over to a script instead of automation, it should look like this: https://pastebin.com/SzzezTCb
You can still click 'run script' when you want during testing.
(stepping away for about 30min)