gpiozero VS pi-mqtt-gpio

Compare gpiozero vs pi-mqtt-gpio and see what are their differences.

pi-mqtt-gpio

Expose GPIO modules (Raspberry Pi, Beaglebone, PCF8754, PiFace2 etc.) and digital sensors (LM75 etc.) to an MQTT server for remote control and monitoring. (by flyte)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
gpiozero pi-mqtt-gpio
7 6
1,821 457
1.4% -
8.0 6.1
25 days ago 9 days ago
Python Python
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

gpiozero

Posts with mentions or reviews of gpiozero. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-15.

pi-mqtt-gpio

Posts with mentions or reviews of pi-mqtt-gpio. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-19.
  • Multi-Device Home Assistant
    3 projects | /r/homeautomation | 19 Feb 2023
    Home Assistant doesn't have direct control of GPIOs built-in anymore, but it's available with either a custom component or MQTT.
  • How can I ditch ADT, but keep this equipment and integrate it into HomeKit? (Details in comments)
    3 projects | /r/HomeKit | 5 Aug 2022
  • Raspberry Pi as a sensor instead of a hub?
    1 project | /r/smarthome | 10 Jan 2022
    If you want to play around with sensors on a RPi, you can use your existing network and use MQTT to communicate back to your hub. Take a look at https://github.com/flyte/mqtt-io.
  • Suggestions to control a Relay Module
    1 project | /r/homeautomation | 23 Jun 2021
    If you install this on the RPI, https://github.com/flyte/mqtt-io setup the digital output to turn the relay on and off and add the HA discovery option, then it will show up as an MQTT switch in Home Assistant and you can turn it on and off from HA
  • How to use RPi Zeros as devices in my HA setup?
    3 projects | /r/homeassistant | 31 Jan 2021
    I currently use ESP devices with sensors attached in my house however you may be able to use a Raspberry Pi instead and have certain sensors such as Temperature, PIR motion etc ... https://github.com/flyte/pi-mqtt-gpio
  • Built a pool controller for ~$300, controlled using home assistant, mqtt, and node-red.
    1 project | /r/raspberry_pi | 21 Jan 2021
    I have the raspberry pi just running rasbian. I'm using pi-mqtt-gpio to expose the GPIO to MQTT, which then allows HA to pick them up and control them. I went through a few iterations trying to get that to work, including using the remote_pi_gpio integration, but had problems with it. With the integration, every time the pi restarted, HA would need to be restarted to re-establish the connection, and there were times that the GPIO settings on the pi would get reset and HA would lose them. With the pi-mqtt-gpio, it's been way easier and way more stable. I can boot the pi or HA in either order and the connection will still come up every time I've tried. If you're going to do remote gpio with a pi, I definitely recommend it. The MQTT integration in HA picks up the gpio automatically, so there's no HA configuration to be done. My pi-mqtt-gpio configuration: https://imgur.com/imTnUvX

What are some alternatives?

When comparing gpiozero and pi-mqtt-gpio you can also consider the following projects:

pigpio - pigpio is a C library for the Raspberry which allows control of the General Purpose Input Outputs (GPIO).

raspberry-pi-home-automation - Code examples, errata and additional tips and references to interesting projects for the book "Control Your Home with Raspberry Pi: Secure, Modular, Open-Source and Self-Sufficient"

WiringPi - Gordon's Arduino wiring-like WiringPi Library for the Raspberry Pi (Unofficial Mirror for WiringPi bindings)

OctoPrint-Enclosure - OctoPrint Enclosure Plugin

tkgpio - A Python library to simulate electronic devices connected to the GPIO on a Raspberry Pi, using TkInter.

system_sensors - Logging of system sensor specific for the RPI and sending them to a MQTT broker

WiringPi-Python - Unofficial Python-wrapped version of Gordon Henderson's WiringPi version 2.

w1thermsensor - A Python package and CLI tool to work with w1 temperature sensors like DS1822, DS18S20 & DS18B20 on the Raspberry Pi, Beagle Bone and other devices.

RC522-Attendance - Raspberry Pi based RFID Attendance System

systemd-gpio - A systemd unit template that does things when gpio events happen.

mqtt-agent-ledbox - LedBox Mqtt Agent , controlling led animation on the led box