Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


timmmay

20579 posts

Uber Geek

Trusted
Lifetime subscriber

#315249 25-Jun-2024 20:37
Send private message

@MrMistofeles asked me about my Home Assistant (HA) automations for the Airtouch4 (AT4) on another thread. Here's some basic info.

 

I started out using Home Assistant because I was getting tired of using multiple apps to control different things. When I got my AT4 I didn't know anything about HA. I'd tried it once before but given up because it was too complex. I use Home Assistant Operating System on a dedicated Pi. These days I have HA running on docker on a Pi4, talking to PostgreSQL on the Pi4, AppDaemon (which let's me write Python code that integrates with AT), along with half a dozen other things on that Pi including public web hosting using CloudFlare tunnels. I have 130 automations for the AT4, and 172 automations overall. To anyone new to HA, start slowly, get your device integrations working, write some basic automations, and over time it'll all make sense. Anyone who understands programming would pick it up pretty easily, and be able to read the automations I've written, but it takes time to learn to write them. I still end up on the HA forums from time to time learning how to do different things, and I've been using it for 3-4 years I guess. HA is really like a programming language or framework.

 

The automations solve problems I have or add features I want. At a high level I wanted to be able to schedule the AT4 to do what I wanted, when I wanted. The built in timer is poor, it can't even change modes. The spill was annoying - we set our lounge / spill zone to 23 and it could get up to 27. I want to use it for heating, cooling, and to aid ventilation.

 

One helpful feature I've built is what I call "room controls". Each room or function has a toggle that enables or disables it. For example I can turn on or off heating automations, cooling automations, postivie pressure automations, light automations, guest bedroom automations (it's rarely used), etc.

 

  • Looking through my automations here's the major classes of automations:
  • Warnings when rooms are turned on if the corresponding "room control" is turned off
  • On / off at specific times for specific areas, changing modes if required
  • Ventilation automations - I turn on the positive pressure system and push fresh air through the house. These are different times summer and winter, and in summer it runs overnight sometimes based on out temperature and humidity
  • Tiered heating automations. For example on really cold days it leaves the AT on in the morning on a low temperature, whereas most days if no-one is meant to be home it turns the system off. Other days my wife is usually home it heats it almost to the temperatures she likes (she'd have it on 28 otherwise!). On most winter days it turns the heating on low at 1pm, higher at 3pm, down during dinner when we're in another area, then up higher before we come out.
  • In summer it semi automates cooling. We need different rooms for spill based on heating or cooling which isn't easy to do. I have some automations that kinda do that, but I've got in mind to write an AppDaemon app to simulate changing the spill based on mode.
  • Turning heating down at night in winter and setting things up for the night temperatures we like
  • Turning the whole system off if no zones are on
  • Resetting the damper positions to 100% lounge 5% other rooms when it's turned off. My automations do a lot of direct damper control.
  • Really important ones to prevent the spill zone overheating. The reason this happens is the Airtouch slowly closes the dampers to make sure the room doesn't go above temperature. A zone can ramp down to 5% over 15 minutes, all that time most of the heating is going into our lounge. This set of automations has logic something like "if the room isn't up to temperature and the damper is lower than 30%, open it up to 60%".
  • If cooling spills into the lounge, which we never want, it adjusts dampers to redistribute the airflow. I've also got text to speech working, so my phone does its best to shout at me to fix it when spill goes to the wrong place, beyond what I can automate.
  • If heating spills into a bedroom, which we never want, it adjusts dampers to redistribute the airflow
  • At night the minimum power of the heat pump pumps too much warm air into the bedrooms. If the damper is open wider than I want it, something like 40% for the small bedrom and 60% for the larger bedrooms, it closes the dampers down. Since the lounge / spill zone is turned off it doesn't cause overheating.
  • A variety of alerts if things are happening I don't want to happen. For example, if I leave a room on damper for more than 30 seconds it alerts me and resets it to ITC control (in-room temperature control I think it stands for). I get an email when there's an error or when HA starts. 

I think that's the most of it for AT4. There are more basic automations for our highwall heat pumps in other areas of the house, ventilation automations, blind automations, automations to turn my phone charger off when the battery reaches 80% to increase battery life using a smart plug, alerts when batteries in any of my sensors go below 25%, etc.  I get a notification if it's really cold outside and likely to be icy so I can de-ice the car.

 

I'm happy to share the automations. I don't want to just export everything as I would edit them a bit, remove some parts which have names in them, and a few comments. I'll get around to sharing them all on github one day along with my docker files and such, but that will be next year. For now if there's any particular set of automations that anyone would find useful I'll do my best to make them available. I'd probably do it on the weekend, though it may take me a few weeks if there's multiple requests.

 

You can find a git repo with some of the resources mentioned above here.


Create new topic
MrMistofeles
66 posts

Master Geek


  #3254076 28-Jun-2024 12:57
Send private message

Amazing, thanks mate. I have an ITC for each zone and I understand quite a bit about AT4 and its foibles. I'm fairly comfortable with programming but I have very little experience with Home Assistant (other than a few hours reading and playing around).

 

Is this still the recommended AT4 integration: HomeAssistant - Polyaire AirTouch 4 Integration (pythonrepo.com) (it has not been updated in over two years but there is still no damper control in the other option AirTouch 4 - Home Assistant (home-assistant.io))? Are there others?

 

Initially I would like to focus on watchdog type automations which don't need much intervention so would be very keen on these:

 

  • Turning the whole system off if no zones are on
  • Resetting the damper positions to 100% lounge 5% other rooms when it's turned off. My automations do a lot of direct damper control.
  • Really important ones to prevent the spill zone overheating. The reason this happens is the Airtouch slowly closes the dampers to make sure the room doesn't go above temperature. A zone can ramp down to 5% over 15 minutes, all that time most of the heating is going into our lounge. This set of automations has logic something like "if the room isn't up to temperature and the damper is lower than 30%, open it up to 60%".

Then once I am a bit more comfortable with HAOS I will move all AT4 programs/schedules into HA. From there perhaps building some more intuitive automations based on presence detection etc. Ideally the logic and automations in HA will stay robust enough that they can never be broken if someone changes something in the AT4 interface. 




timmmay

20579 posts

Uber Geek

Trusted
Lifetime subscriber

  #3254078 28-Jun-2024 13:03
Send private message

I use this Airtouch Custom integration - same as your first link. It hasn't been updated in quite a while because it works as it should. There are others, but if you want to use my automations you'll probably find it simpler with this component. You need to manually install it into the custom_components folder. There's another integration that's more actively supported and has a few extra features. My automations won't work for that but it's probably relatively small tweaks to get it working.

 

I'll do my best to get the code for those automations to you this weekend. I have a pretty good main dashboard as well that I'll share - it looks but it's very functional. I'm busy moving my production web applications to being full containerised, and possibly moving it to Oracle Cloud - their "always free" tier is extremely generous, plus family stuff.


timmmay

20579 posts

Uber Geek

Trusted
Lifetime subscriber

  #3254257 28-Jun-2024 19:24
Send private message

@MrMistofeles I've added a link to the bottom of the first post to a github repo. Let me know how you get on. If you're new to HA you'll probably want to watch some tutorials on youtube and do some reading. The automations aren't particularly complex, but I found HA has a steep learning curve.




MrMistofeles
66 posts

Master Geek


  #3254713 30-Jun-2024 14:01
Send private message

Nice, thanks for sharing! I've had a bit of time this weekend to get the damper hysteresis fix working (makes an immediate difference), the overnight bedroom damper limits set (still need a bit of tweaking) and bedroom spill alerts in (took me a while to spot this binary spill sensor bug which meant I was missing some entities).

 

In case you weren't aware there is an AT installer setting which can turn off an AC if all zones are turned off (I saw you have an automation doing something similar):

 

 

I should probably figure out how I'm going to organize HA things - would you say a combination of areas and labels is a good beginner approach? When you have time I'd like to hear more about how you manage things with your room control system.  

 

Now I will try to reproduce our existing AT4 programs/schedules in HA with a robust UI so my wife can see and control everything. Then I will start branching out into other areas of HA.


timmmay

20579 posts

Uber Geek

Trusted
Lifetime subscriber

  #3254729 30-Jun-2024 14:28
Send private message

Good to hear it's helpful 🙂 Thanks for pointing out auto off, I'll probably stick with the automation since it's working

 

There's another Airtouch4 / 5 integration here which looks to have more features and be more actively supported. You wouldn't be able to use my automations directly but they'd be similar.

 

I use rooms and automation name prefix for organisation. I'll release my room control system at some point, maybe later today if I can get the time.

 

My wife doesn't use the system much, and doesn't use HA. If it's not how she wants things she goes to the console and changes it.


timmmay

20579 posts

Uber Geek

Trusted
Lifetime subscriber

  #3254755 30-Jun-2024 15:18
Send private message

@MrMistofeles I've added room controls to the github repo. Please try it out and see if the instructions make sense for you, and if you can get it working. It's pretty simple, but it's entirely possible I forgot to mention something or forgot to include a resource.


Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.