From https://community.home-assistant.io/t/add-force-update-support-to-template-sensor, I think you can “force” a boiler update with
- platform: template
sensors:
boiler_power_in_watts:
friendly_name: "Kazán teljesítmény Wattban"
value_template: >
{% if is_state('binary_sensor.boiler_ww_charging', 'on') %}
{{ ((states('sensor.boiler_burner_current_power')|float(0)) * 29000 / 100) | round(0) }}
{% else %}
{{ ((states('sensor.boiler_burner_current_power')|float(0)) * 24000 / 100) | round(0) }}
{% endif %}
attribute_templates:
hour_last_updated: "{{ now().hour }}"
Every hour, the attribute value will change, so a new state will be recorded, that should trigger the whole chain.