🔥 Advanced Heating Control

Maybe this is better. If you just count the events and one ends another one starts at the same time the value will not change.

#Advanced Heating Control
trigger:
  - platform: time_pattern
    minutes: /5
action:
  - service: calendar.get_events
    data:
      start_date_time: "{{ now() }}"
      end_date_time: "{{ now() + timedelta(minutes = 10) }}"
    target:
      entity_id:
        - calendar.xxxxx
        - calendar.feiertage
    response_variable: termine

binary_sensor:
  #Advanced Heating Control
  - name: Advanced Heating Control Kalender
    unique_id: advanced_heating_control_kalender
    icon: mdi:palm-tree
    state: >
      {{  
        ( termine['calendar.xxxxxx].events | regex_search('Urlaub', ignorecase=True) ) or 
        ( termine['calendar.xxxx'].events | regex_search('Krank', ignorecase=True) ) or 
        ( termine['calendar.xxxxx'].events | regex_search('HomeOffice', ignorecase=True) ) or 
        ( termine['calendar.feiertage'].events | count > 0 ) 
      }}
    attributes:
      event_string: > 
        {% set result = '' %}

        {% if (termine['calendar.xxxxxx'].events | regex_search('Urlaub', ignorecase=True)) == true %}
          {% set result = 'Urlaub' %}
        {% endif %}

        {% if (termine['calendar.xxxx'].events | regex_search('Krank', ignorecase=True)) == true %}
          {% set result = result + iif(result == '','',' ') + 'Krank' %}
        {% endif %}

        {% if (termine['calendar.xxxx'].events | regex_search('HomeOffice', ignorecase=True)) == true %}
          {% set result = result + iif(result == '','',' ') + 'HomeOffice' %}
        {% endif %}

        {% if ( termine['calendar.feiertage'].events | count > 0 ) == true  %}
          {% set result = result + iif(result == '','',' ') + 'feiertag' %}
        {% endif %}

        {{ iif(result == '','none',result) }}
1 Like

That makes sense indeed for many. Maybe my case is too exceptional to be worth implementing but I will explain it anyway. When one of my kids sleeps with his mum, the temperature can be significantly lowered. But his school is very close to my house. Therefore I would like the temperature to then be at an idle level. Only when he comes home should it go to the comfort temperature.

I think I can make something reasonable with your zone notification extended blueprint to cover my case. So no worries if you don’t onboard a logic for me.

Thank your for assist, but the event_string is empty.

1 Like

Ah, sorry! Error found. I’ve edited the snippet. Just give it another try.

1 Like

Great, works perfectly :+1:

1 Like

I need a little help with winter mode please.
We are away from home today so don’t want the heating on. I made toggles for each room to act as a Boolean for winter mode in each zone. Currently all are set to off but the heating still came on last night and this morning according to the heating schedule.
Have I misunderstood how this works?
I’m trying to get you a trace but it won’t seem to download to my iPad

Hi there, thanx for the blueprint, works fine on my sonoff TRV in kids bedroom. Set this up with extra thermometer for adjusting the trv temperature, running a schedule, and works fine.
but today (saterday) the schedule is set to heat up a room from 10u til 20u. However, my kid has a volleyball game at 15u. how can i set the TRV to 16° without altering the schedule? when i set is manualy, it turns back to 20° after some minutes…

1 Like

with Party Mode :wink: or change your minimal temp

1 Like

don’t get it… i make a switch helper, use this as party mode switch to set off?

1 Like

when you activate party switch you can change the comfort temp so long as the party switch is on, when you disable this switch he go back to the original comfort temp (need to activate reset option in blueprint)
tracklist

1 Like

wow, how do you get those switches? ‘party’ is that just a helper switch on/off?

1 Like

1 Like

1 Like

yes it is a helper switch

1 Like

so this is the helper.
now set this helper as party mode entitiy. when ON heating is on, when OFF minimum temp must be set?

1 Like

when on the comfort temp is taken, when you change it, these temp is so long activ so long the party switch is on, when off default comfort temp will be restored

1 Like

Thx!! Toggle on, i can set TRV T°. think i will make an automation when i toggle party on, the TRV T° i set on 16°.
many thanks!

1 Like

Wintermode → off = Climates will set to off, scheduler, presence ect. triggers will be blocked

I tested it right now. What I’ve done:

  • winter mode → off
  • climates set to off
  • scheduler trigger off → on
  • climates still off

Can’t reproduce this behaviour. For more analysis I need you trace when winter mode is off and climates are heating.

Hello @panhans ,

do you know if anybody else is using your blueprint on a air based heating system?

I tried your blueprint with my Tado system a few weeks back and your support was key to get it working with my system. It works great but I feel I can save some money using our Airzone air based heating system instead. The two systems are different in nature and I wonder if this blueprint can work well with this sort of air based systems.

Thanks a million for the hard work!

Thanks for the Blueprint, I m almost happy with it.
One thing. Is it possible to add the possibility to change the minimum Temperature. So it would save battery when the valve do not need to do the complete way to close. In my opinion it is enough just to close the valve a bit or reduce by 3 degrees when a window will open or for the night mode.
Maybe the minimum temperature is not working? In my settings the valve close complete when it is no heating schedule.
Thanks again for the great work and sharing with us.

1 Like