Anth's Computer Cave

AAIMI Home Automation Tutorial Hub

Use the buttons below to read all of the AAIMI Home Automation tutorials.

New features in AAIMI Home Automation 0.92

Updated 9th August 2018

The main AAIMI Home Automation web GUI. Picture: Anthony Hartup
The main AAIMI Home Automation web GUI. Click for larger image.

We've just released the latest version of AAIMI's home-automation system.

Apart from major improvements in the setup wizard, this is largely an 'under-the-hood' upgrade.

Below is a brief summary of the latest features. To see all of the existing program features check out the AAIMI Home Automation Overview at The AAIMI Project.

Setup wizard

The setup process is now much simpler. It installs all the programs and libraries required to run the system.

These include Apache2, PHP, PIP, Screen and various Python libraries.The wizard also configures the external AAIMI modules, AAIMI GPS Mapper and AAIMI Server Dog.

Before there were a dozen terminal commands and code-mods required for this, now it happens automatically in the background during setup.

Monitoring systems

If you have multiple systems in diffrent locations you can now link these systems to exchange "I'm alive" messages and alert you if one of the other systems go's offline.

This can alert you to blackouts and network outages at any of the locations.

I have my system linked

Under the hood

We've refined the communications between the various modules to reduce unnecessary file-writes and activity.

For instance, instead of constantly updating data and details available via web-browser access, the main program now monitors connections and only updates details if someone is actually viewing.

We've also worked more on code-readability for people wishing to delve deeper into the inner workings of the program. There are tons more comments explaining how everything works.

General features from version 0.9

Config GUI

You add all your rooms, sensors, relays and heating/cooling devices in the browser-based configuration window.

The configuration GUI to add rooms and devices to AAIMI Home Automation. Picture: Anthony Hartup
The new AAIMI Home Automation configuration GUI.

You can create default room-types with PIR sensors and/or light sensors and relays, or you can create empty custom rooms and add your own devices to suit your needs.

Adding relays is easy for heating and cooling devices, entertainment centers or coffe-makers, etc.

You can add themostats and set upper and lower switching levels for your desired temperatures. Add a smoke detector and you can choose options to react to smoke or gas events.

Add as many custom analog sensors or high/low digital sensors as you want and set actions for sensor events, like switching relays, sending email alerts and logging events to file.

The right-hand column displays instructions and tips as you add rooms and devices

The help column to provide tips while adding rooms and devices to AAIMI Home Automation. Picture: Anthony Hartup

You can view details for your existing rooms or devices.

The details for a room in AAIMI Home Automation. Picture: Anthony Hartup

You can also view a list of available GPIO pins on the Raspberry Pi and Arduino, and enable/disable program features.

The options for enabling features in AAIMI Home Automation. Picture: Anthony Hartup

Options include sound, Internet, GPS and incoming/outgoing email.

The config GUI lives in an admin-only area, meaning none of your housemates can mess with your configuration.

Control center

We've made major improvements in the main control and montioring GUI.

You can view and switch all relays in each room, and monitor custom analog and digital sensors.

The details for a room in AAIMI Home Automation. Picture: Anthony Hartup

Click on a thermostat in a room to change switching levels for heaters and coolers.

There are new scheduling options, including Cyling schedules that can repeatedly switch on and off at intervals. We've modded the Alerts column to make adding and removing alerts easier.


We've completely revamped the long-term data structure.

It now stores data for the custom sensors and devices, and also keeps access records and IP address history.

There are tools to archive older data. I have almost 830 days' of comprehensive data from my home and the large file was taking way too long to load and save on my humble model B Raspberry Pi. Now I can archive the data each month and keep the live data file small.

The new Python home-data analysis GUI merges the current and archived data on the fly on your real PC to view your home's long-term stats.

Viewing long-term home data in AAIMI Home Automation. Picture: Anthony Hartup

We've removed the floor-plan from the Python GUI. It took some time and effort for users to create their floor plans, and it wasn't something many users required. We'll probably add this back later as an optional feature.

Program settings

There are no longer any hard-coded program settings, they all live in a single JSON file that loads on program start. This was long-overdue.

It means you should never need to open any code files, and all settings are persistent across restarts.

It also makes it easier to upgrade to a newer version later. You simply move the settings file from your old installation and it resumes where it left off.

Article series

As always with a new release we have a full series of articles covering the setup and use of AAIMI Home Automation.

In this first article we've covered the new features, and in the next article we'll cover our slightly mad prototype hardware. After that we'll download and configure AAIMI Home Automation.




Next: Hardware Recap



Leave a comment on this article

Leave a comment on this article