Features
🔥 heating / ❄️ cooling based on
    👥 people presence
    🗓️ multiple schedulers
    🚶 presence sensor
    ↔️ proximity aka geo fencing
🏃 away temperature offset
🥶 frost protection
😡 adjustable aggressive mode
🌤️ activation based on weather, temperature or boolean entities
🎛️ granular schedule adjustments 
🪟 multiple window open detection
🎈 party mode
🤝 guest mode
🧭 thermostat calibration for the most common devices (Tado, Aqara, Popp / Danfoss / Hive, Tuya)
⚔️ liming protection
📍 dynamic valve positioning
⚙️ several tweaks for fixing your thermostat issues
🎬 custom action
🤫 calm & 💪 reliable
Documentation | SourceCode | AHC Template Sensor | AHC Latest Version Sensor | AHC Local Version Sensor
Development
Latest version: 5.1
Major Changelogs:
5.0 | 5.1 | 5.2 | 5.3
Planned Features
 calendar support calendar support
 more adjustable limits for aggressive mode more adjustable limits for aggressive mode
 stagged away mode stagged away mode
 valve positioning valve positioning
 selection for thermostats for generic calibration / aggressive mode selection for thermostats for generic calibration / aggressive mode
 entities for away temperature and thresholds (on/off) entities for away temperature and thresholds (on/off)
 evaluated sun condition for on/off toggle evaluated sun condition for on/off toggle
 custom condition to allow/block calibration custom condition to allow/block calibration
Thanks for testing, reporting and debugging to everyone especially: sben, sourdistorne, dario2 , coldspark29 , technikhaus, tirol3, stephanschleichstr13, bandit79, Mar1us, vajdum. Ziegelsandundspucke, mukrop, k-dani, allard77, hainfelder, Appox, NikB, kitus, David883, P6Dave, fir3dragon, DenisLanz, CarstenJ, tco95ttocs, Rapha0000, NoBadDays739
Hints & FAQ
FAQ
Hints
To make long entering / leaving durations for persons and open / closing durations for windows work properly I recommend to setup the uptime integration.
Troubleshooting
- Check if you’re running the latest version.
- If it’s the case, describe your problem.
- What do you want to achieve?
- What doesn’t work?
 
- Set debug level to warning
- Trigger you automation or let it run into your issue
- Save and share your tace log for example here
- Give me some time to check  
INFO: Don’t set an external temperature sensor and avoid using generic calibration or aggressive mode if you wrapped your climates in Better Thermostat.
How do I get a trace log?
- Navigate to your automations
- Find your automation and click on three-dots-menu
- Click on traces
- Select a trace with the upper arrows
- Click on three-dots-menu again
- Click on download trace
Also you can create issues on my github repo.
Helpfull Snippets
Calendar Based Scheduler Selector Sensor
Here is an example for my template based binary sensor for holidays. There are two calendars. One holds the national holidays for my region and the other one is my personal calendar. The sensor scans for national holidays and a catchphrase for my personal one.
template:
- trigger:
    - platform: time_pattern
      minutes: /10
  action:
  - service: calendar.get_events
    data:
      start_date_time: "{{ now().replace(hour=0,minute=0,second=0,microsecond=0) }}"
      end_date_time: "{{ now().replace(hour=23,minute=59,second=59,microsecond=999999) }}"
    target:
      entity_id: 
        - calendar.family # edit this for your calendar entites
        - calendar.holidays
    response_variable: calendar_events
  binary_sensor:
  - name: Holiday
    icon: mdi:palm-tree
    unique_id: holiday
    # here you can add a catch phrase as regex also if the holiday calendar has an event the state of the sensor will be on
    state: >
      {{  
        ( calendar_events['calendar.family'].events | regex_search('holiday', ignorecase=True) ) or 
        ( calendar_events['calendar.holidays'].events | count > 0 ) 
      }}
If you have questions or feature request, feel free to comment this thread.
Greets!
References
UI inspired: ☀️ Cover Control Automation (CCA) - a comprehensive and highly configurable roller blind blueprint
My Blueprints
 Advanced Heating Control
 Advanced Heating Control
 Simple Scene Toggle
 Simple Scene Toggle
 Entity State Notification
 Entity State Notification
 Zone Notification Extended
 Zone Notification Extended 
 Scene Based Theatre Mode
 Scene Based Theatre Mode



