Skip to main content

Automation HAT Driver

Project description

Automation HAT

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.


  • 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.

Filename, size & hash SHA256 hash help File type Python version Upload date
automationhat-0.1.0-py2-none-any.whl (9.8 kB) Copy SHA256 hash SHA256 Wheel py2
automationhat-0.1.0-py3-none-any.whl (9.8 kB) Copy SHA256 hash SHA256 Wheel py3
automationhat-0.1.0.tar.gz (8.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page