Automation based on other automation

Hi,

New here so this might be dumb but here it goes. It might be a long question but I appreciate any help.

I have my Thermostatic Radiator Valves (TRV) set so it will automatically turn up/down based on time. Let’s say at 7:00 I want them turned to 20 and at 23:00 I want them turned low to 17. Now I want to switch my boiler on/off based on the temperature of the TRV.

So if the TRV is set to 20 and the room temp is 18 I need to switch by boiler on and if the temp reaches 20 I need to turn it off again.

I can understand how to do this but I want to make it smarter. For example if it’s 22:50 and the temperature drops below 20 I don’t want to turn the boiler on since the temp should drop 10 minutes later anyway.

Basically I want to run my other automations and use that as extra condition.

The example above could be made by just making a whole new automation for it with a hard coded time of 22:50. However, this is just a simple example. The real automation will be something like if it’s after 23:00 and TV is on don’t lower the temp.

Can I run an automation in a different automation

It is kind of difficult to answer, typically you’ll use multiple conditions (and/or) in automations. When it gets more complex you can use scripts or appdaemon. But I think using multiple automations and conditions will do what you want. However you need to have a clear overview of what you want. Not turn on the boiler if temperature 18 and time is 22:50 unless TV is still on, etc. these are rather simple conditions.

Appdaemon looks like the way to go. I’ll read up on that.

I think the second example i gave might also be too basic.

Although I have to figure out what rules I need I think it will be more complex than a simple automation.

I have 14 RTV’s and based on that input I need to determine if I should turn the boiler on/off. So for example if only one RTV is 0.5 below it’s set point, I won’t turn the boiler on but if all of them are, I will. But I also want to check what the temperature should be in 15 or 30 minutes based on my automations.

And I don’t want to change all my automations if I change one time trigger (ie 23:00 to 23:15).

I’ll read about the appdaemon but think that might be it.

Thanks!