Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Automation HAT Driver

Project description

Automation HAT

Build Status Coverage Status PyPi Package Python Versions

Automation HAT/pHAT is a home monitoring and automation controller featuring relays, analog channels, powered outputs, and buffered inputs (all 24V tolerant).


Manual install:

Library install for Python 3:

on Raspbian:

sudo apt-get install python3-automationhat

other environments:

sudo pip3 install automationhat

Library install for Python 2:

on Raspbian:

sudo apt-get install python-automationhat

other environments:

sudo pip2 install automationhat


If you want to contribute, or like living on the edge of your seat by having the latest code, you should clone this repository, cd to the library directory, and run:

sudo python3 install

(or sudo python install whichever your primary Python environment may be)

In all cases you will have to enable the i2c bus.


  • Had ST7789 on the brain, swapped for ST7735


  • Add dependency on ST7789 for AMH


  • Fix: Fix thread interleaving and race conditions leading to spurious ADC readings
  • Fix: Switch to non-deprecated alias of thread.isAlive


  • Fix: Defer setup to avoid import side effects
  • Fix: Slowed LED update rate
  • Improvement: Switched to warnings to notify about unsupported features on pHAT


  • Fix for HAT/pHAT detection


  • Fix for Python 3 support


  • Added pHAT support
  • Rounded ADC output to 2 decimal places
  • Set initial state for outputs and fixed toggling
  • Fixed light toggling


  • Initial Release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for automationhat, version 0.2.2
Filename, size File type Python version Upload date Hashes
Filename, size automationhat-0.2.2.tar.gz (8.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page