I want to set up an automation that will change my EcoBee Climate (Home, Away, Sleep, ect) temperature ranges based on the current outside temperature. I live in Texas and with the wild freezes and insane heat I want it to adapt the Climate settings automatically throughout the year. Also my house has a crappy HVAC system and cools/heats parts of the house differently depending on the outside temp, my main focus is keeping the baby’s room a specific temperature.
For example when its below 35 degrees outside I want the “Home” Climate to be heat below 72, and AC above 79, but when its over 74 degrees outside I want “Home” Climate to be heat comes on below 65 and AC comes on if inside over 73.
I haven’t figured the trigger out yet, whether or not I am going to use just a conditional trigger or a template, maybe check once a day for the daily high, or every 6 hours or something but the trigger is not my main issue. I had some questions about the action/RESTful Command
I have all my API calls figured out already in Postman, I was going to build a Python/Flask app to do this but I was hoping Home Assistant would be able to do it.
I know Home Assistant has some integration that would let me do this with Climate calls, and I might have to resort to that, but because I have everything already done in Postman with EcoBee APIs, I want to go that route.
Main question/TL;DR: When I am building the RESTful command out, do I have to pass in authentication even though I already have Home Assistant integrated into my EcoBee?
Is there a way I can reference the accessToken already generated by the Home Assistant/Ecobee connection? I have access to the bearer token in Postman, but all my Postman API work was done with a different EcoBee PIN/authentication code, I can use it once or twice during testing but it needs to refresh every 6 hours.
How can I reference bearer token that Home Assistant uses to talk to EcoBee in my RESTful API calls? (or do I not even have to reference them)
Thank you, (first post, I hope I labelled it correctly)