YAHWT - Heating week timer

Yes, you were right I’ve missplaced it, instead of placing the line into the “caldaia temporizzata off” automation, I’ve placed it into the “Heating_lock_Timer” automation. Now I’ve placed it into the right spot and it’s working perfectly. Using the synthax provided by you, I’ve managed to solve the synthax for “Heating_lock_Timer” automation. Both automation are now working.
Thank you very much for helping me.

Ciao Giovanni,
bel progetto! funziona benissimo! Cosa dovrei fare, se è possibile, per comandare 2 zone distinte? es. zona giorno e zona notte. vorrei comandare le due temperature autonomamente.

Hi Giovanni,
nice project! it works great! What should I do, if possible, to control 2 distinct zones? ex. living area and sleeping area. I would like to control the two temperatures independently.

I’ve been using this thermostat many years, but after upgrading HA to 2023.7.0 the weekely program is no longer working, I have the 2 following errors:
Error while executing automation automation.temp_lock: expected float for dictionary value @ data[‘temperature’]
temp_lock: Error executing script. Invalid data for call_service at pos 1: expected float for dictionary value @ data[‘temperature’]

The temp_lock automation looks like this:
alias: temp_lock
description: “”
trigger:

  • platform: state
    entity_id: sensor.hvac_temperature_knob
  • platform: state
    entity_id: input_boolean.heating_master
    to: “on”
    condition:
  • condition: state
    entity_id: input_boolean.switch_caldaia_timer
    state: “off”
  • condition: state
    entity_id: input_boolean.heating_master
    state: “on”
    action:
  • service: climate.set_temperature
    target:
    entity_id: climate.ha_thermo
    data_template:
    temperature: >-
    {% if is_state(‘sensor.heating_program’, ‘p1_weekday’) %} {{
    states.input_number.t1_work.state|float}} {% elif
    is_state(‘sensor.heating_program’, ‘p2_weekday’) %} {{
    states.input_number.t2_work.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p3_weekday’) %} {{
    states.input_number.t3_work.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p4_weekday’) %} {{
    states.input_number.t4_work.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p5_weekday’) %} {{
    states.input_number.t5_work.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p0_weekday’) %} {{
    states.input_number.t0_temp.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p1_saturday’) %} {{
    states.input_number.t1_sat.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p2_saturday’) %} {{
    states.input_number.t2_sat.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p3_saturday’) %} {{
    states.input_number.t3_sat.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p4_saturday’) %} {{
    states.input_number.t4_sat.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p5_saturday’) %} {{
    states.input_number.t5_sat.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p0_saturday’) %} {{
    states.input_number.t0_temp.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p1_holiday’) %} {{
    states.input_number.t1_sun.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p2_holiday’) %} {{
    states.input_number.t2_sun.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p3_holiday’) %} {{
    states.input_number.t3_sun.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p4_holiday’) %} {{
    states.input_number.t4_sun.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p5_holiday’) %} {{
    states.input_number.t5_sun.state }} {% elif
    is_state(‘sensor.heating_program’, ‘p0_holiday’) %} {{
    states.input_number.t0_temp.state }} {% endif %}
    mode: single

What could be the problem?

The problem came from the workday binary sensor in configuration.yaml
binary_sensor:

  • platform: workday
    country: ‘IT’
    name: ‘workday_today’
    workdays: [mon, tue, wed, thu, fri, sat]
    excludes: [sun, holiday]

Now the sensor is an integration and after installation you have to add a workday_today device.