I have an… ugly value_template
conditional
- condition: template
value_template: "{{ (states('sensor.time') >= (states.input_datetime.start_zone_2_heater.attributes.timestamp | int | timestamp_custom('%H:%M', False))) and (states('sensor.time') <= (states.input_datetime.end_zone_2_heater.attributes.timestamp | int | timestamp_custom('%H:%M', False))) }}"
I don’t know how split it in multiple lines… Thank you for your hints about!