I’m new in Home Assistant and I really appreciate this tool.
I have searched for hours now in this blog but without succeeding.
I want to calculate an hour from one reference hours (12:00) substract or add a number of hour comming from an input_value. I want to use this calculation in automation as I have several conditions before.
Thank you very much to both of you! @Taras, your code is the solution! It works fine. Thank you! @akappa, thank you for sharing, I’ll read it carrefully (didn’t find it despite a lot of search…)
If you have chosen my suggestion to be the solution, please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions. Please note that only one post in the entire topic can have the Solution tag.