Multiple item schedule

The schedule helper is a great add on to HA, but for me it’s of no use in its current state. One area where I think the schedule helper will shine is for setting heating schedules. In this specific case the schedule needs to be completely filled with different temperature items.

If it helps I can share my setup.

I have a schedule helper that holds day/night periods for each day and an input number helper for each weekday/weekend - day/night combination (so 4 in total), for each room.

To get the current target temperature for a room I have a template sensor that checks the schedule helper to find if it’s currently “day” or “night” and then based on whether it’s a weekday or weekend it updated the value.

  - name: "Living room temperature setpoint"
    unique_id: "sensor.living_room_temperature_setpoint"
    icon: "mdi:thermometer-auto"
    unit_of_measurement: "°C"
    state: >
      {% if states("schedule.heating_schedule_living_room") == "on" %}
        {## Day ##}
        {% if now().isoweekday() < 6 %} 
          {{ states("input_number.living_room_setpoint_weekday_day") }}
        {% else %}
          {{ states("input_number.living_room_setpoint_weekend_day") }}
        {% endif %}
      {% else %}
        {## Night ##}
        {% if now().isoweekday() < 6 %} 
          {{ states("input_number.living_room_setpoint_weekday_night") }}
        {% else %}
          {{ states("input_number.living_room_setpoint_weekend_night") }}
        {% endif %}
      {% endif %}

Duplicate, please vote