It looks like template condition is ignored. Expression return false, as I’ve checked in Dev Tools, but switch is turned on. This conditions disables heater pump when heat buffer is almost exhausted
The syntax was correct, output device was in a fault state and refused to process commands. I found it in the logs. It does not like to process multiple commands at once I’ve added 1sec delay and it works perfectly for 2-3 days already
Not really. Your template may fail to load if your float filters are unable to convert the state values to numbers. Which is why you should supply default values. Also there were a lot of unnecessary parentheses.