Today i came up with a simple idea in my mind: I would like to show if my water solar panels are heating my boiler. I have no connection to my water solar controller, but i i know the the boiler temperature and if my heating pump for the boiler (not the pump for the solar panels) is running or not. So the idea is to create a template boolean helper which uses some kind of onditions to output true or false for the the state. The state represents if the solar panels are heating my boiler or not.
The math should do the following: if (current boiler temp is higher than the temp 5 minutes before) and pump is not running then output true. if (current boiler temp is higher than the temp 5 minutes before) and pump is running then output false. Else output false
Is it possible to build such a template and if so, how can i do this or can someone give me an example? Many many thanks for helping me on this task.
Georg
In the future… it makes it a lot easier for us if you provide the entities that you are using. For example is “heating pump for the boiler” a sensor or a switch or an input boolean?
template:
- binary_sensor:
- name: Solar Water Active
state: >
{% if is_state('binary_sensor.boiler_temp_trend', 'on')
and not is_state('switch.boiler_pump', 'on') %}
True
{% else %}
False
{% endif %}