#Automation to lower existing temp by number of points

1 messages · Page 1 of 1 (latest)

glass tusk
#

^ moving to thread here

formal ivy
#

I'm here

glass tusk
#

heya!

formal ivy
#

So you want to capture the current temp and then when it's 10 degrees below turn off.

glass tusk
#

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..

formal ivy
#

Do you have a sensor on the fan to know when it turns on?

glass tusk
#

oh, no but, .....

#

i never thought of that. why would I want to know when the fan turns on.

formal ivy
#

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.

glass tusk
#

I wonder if this would work

formal ivy
#

Looking at yours now

glass tusk
#

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.

formal ivy
#

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.

glass tusk
#

Ah opk

#

Ah cool thank you for your example

#

that helps

formal ivy
#

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.

glass tusk
#

multiple ways is definately a trend

formal ivy
#

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.

glass tusk
#

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?

formal ivy
#

No - you need to create first

glass tusk
#

ah ok j

#

so create the helper. got it

#

nice.

#

wow cool

formal ivy
#

Settings / Devices& services / Helpers

glass tusk
#

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

formal ivy
#

Yep - you're just making buckets to put things in that you'll use elsewhere in other automations and such

glass tusk
#

I will be excited to come tell you I figured it out. Soon hopefully you got me a lot closer than I was here.

formal ivy
#

Cool. Best of luck.

glass tusk
#

Thank you @formal ivy

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.

glass tusk
#

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

formal ivy
#

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.

glass tusk
#

Well it kinda worked, it kicked the ESP offline and then by the time it came back online the temp was way lower 😄

formal ivy
#

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)

glass tusk
#

Got it!

#

True I should probably move it to a script

#

so I can call it for other automations.

#

🤩