Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - sensor:
- - name: heatrequest
- unique_id: heatrequest
- state: >-
- {% set req_hours = (states('sensor.keskminetemp_real_feel')|int - 6) * -0.5 + 1 + states('input_number.pumbatunnid_input')|int %}
- {% if (req_hours > 24) %}
- req_hours=24
- {% elif (req_hours < states('input_number.pumbatunnid_min_input')|int) %}
- {% set req_hours=states('input_number.pumbatunnid_min_input')|int %}
- {% endif %}
- {{ req_hours|int }}
Advertisement
Add Comment
Please, Sign In to add comment