$npx skillfedfor your agent

pymysensors

Python API for talking to a MySensors gateway

Worth itPyPI Home AutomationReleased Jul 202573.5K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pymysensors-0.26.0-py3-none-any.whl
v0.26.0 · released 2025-07-17 · Python >=3.9 · 8 runtime deps: awesomeversion, click, crcmod, getmac, IntelHex, pyserial, pyserial-asyncio-fast, voluptuous

Yes. pymysensors is actively maintained, has no known vulnerabilities, supports modern Python versions (3.9+), and provides a clean callback-driven API for gateway communication. Install it if you are building a home automation or IoT application around MySensors hardware. The low install friction and permissive MIT license make adoption straightforward. Consider only if you have or plan to deploy MySensors gateway hardware.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a physical MySensors gateway device connected via serial port, TCP, or MQTT broker; Python 3.9 or later.
  • Low install friction; depends on 8 runtime packages including pyserial, click, and voluptuous.
  • Actively maintained with recent commits and Python 3.9+ support across current versions.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and proprietary projects.

last release 2025-07-17 (393 days) · last repo commit 2026-07-30 · 64 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 73,545 downloads/mo, #14,980 on PyPI

Verify before relying

pip install pymysensors

import pymysensors

def event(message):
    print('sensor_update ' + str(message.node_id))

gateway = pymysensors.SerialGateway('/dev/ttyACM0', event_callback=event)
gateway.start()
  • Extent of v2.x feature coverage beyond smartsleep, MQTT, and OTA updates
  • Performance characteristics with large sensor networks (node/child count limits)
  • Asyncio gateway implementation maturity and production readiness
Same gist for agents: .md · .json

What it is and what it does

pymysensors is a Python library that acts as a client to MySensors gateways, enabling communication with wireless sensor networks. It abstracts the MySensors serial protocol (versions 1.4–2.2) and provides a callback-driven API to receive sensor updates, query node state, and send commands to individual sensors. The library manages gateway instances (serial, TCP, or MQTT) in separate threads or via asyncio, maintains a hierarchical data structure of nodes and child sensors, and handles over-the-air firmware updates using DualOptiboot or MYSBootloader bootloaders.

Typical use involves instantiating a gateway, registering an event callback to handle sensor messages, and starting the gateway. Once running, you access the sensor network through the gateway's sensors dictionary, querying node metadata, child sensor types, and values. The library also supports persistence (pickle or JSON) to retain network state across restarts, and provides methods to push updates back to nodes—useful for controlling actuators or triggering OTA updates.

Use it for

  • Monitor temperature, humidity, and motion sensors in a home automation setup by registering callbacks and querying sensor values.
  • Deploy firmware updates to multiple sensor nodes without manual intervention using the update_fw method.
  • Integrate a wireless sensor network with a home automation platform via the Python API.
  • Persist sensor network topology and state across gateway restarts using JSON or pickle persistence.
  • Control actuators (lights, relays) by sending commands to child sensors via set_child_value.
  • Bridge gateways to MQTT brokers for cross-platform IoT integration.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

pymysensors is actively maintained, has no known vulnerabilities, supports modern Python versions (3.9+), and provides a clean callback-driven API for gateway communication. Install it if you are building a home automation or IoT application around MySensors hardware. The low install friction and permissive MIT license make adoption straightforward. Consider only if you have or plan to deploy MySensors gateway hardware.

Install

pymysensors on PyPI

Before you install

Low install friction; depends on 8 runtime packages including pyserial, click, and voluptuous. Actively maintained with recent commits and Python 3.9+ support across current versions.

Requires a physical MySensors gateway device connected via serial port, TCP, or MQTT broker; Python 3.9 or later.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and proprietary projects.

Quickstart

pip install pymysensors

import pymysensors

def event(message):
    print('sensor_update ' + str(message.node_id))

gateway = pymysensors.SerialGateway('/dev/ttyACM0', event_callback=event)
gateway.start()

Verify before relying

  • Extent of v2.x feature coverage beyond smartsleep, MQTT, and OTA updates
  • Performance characteristics with large sensor networks (node/child count limits)
  • Asyncio gateway implementation maturity and production readiness

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
8 packages
awesomeversionclickcrcmodgetmacIntelHexpyserialpyserial-asyncio-fastvoluptuous
MaintenanceActively maintained 393 days since the last release
Last repo commit
First released
Downloads73,545 / month, #14,980 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersIntended Audience :: End Users/DesktopNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Home Automation

Evidence: pymysensors-0.26.0-py3-none-any.whl

Tags

Capabilities
mysensors gateway pythoniot sensor network communicationserial gateway protocolmqtt sensor gatewayhome automation sensor apiwireless sensor mesh networkota firmware update
Topics
iothome-automationsensor-network
PyPI keywords
sensoractuatorIoTDYI

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “mysensors gateway python”

Give your agent the search over MCP, or paste the wish link into any chat.

More Home Automation packages

netaddr Worth it
PyPI · Software Development · released May 2024

Represents and manipulates IPv4, IPv6, MAC addresses and related network objects; supports CIDR notation, subnetting, set operations, IANA lookups, and DNS reverse generation.

BSD-3-Clausepure Python · 3.7+dormant
14.0Mdownloads / mo
homeassistant Worth it
PyPI · Home Automation · released Aug 2026

Home Assistant is an open-source home automation platform that centralizes control of smart home devices and automations on a local server or Raspberry Pi, prioritizing local control and privacy over cloud dependency.

Apache-2.0pure Python · 3.14.2+
2.1Mdownloads / mo
python-statemachine Worth it
PyPI · Libraries · released Aug 2026

Defines finite state machines and statecharts with a declarative Python API, supporting flat states, compound hierarchies, parallel regions, history states, guards, and both sync and async callbacks.

Install it if you need to model workflows, control logic, or any system with discrete states and event-driven transitions — from simple state machines to complex…

MITpure Python · 3.10+
1.3Mdownloads / mo
btsocket With conditions
PyPI · Home Automation · released Jun 2024

A Python library for controlling BlueZ Bluetooth adapters on Linux via the Management API, supporting both synchronous and event-driven command patterns.

MITpure Pythonaging
625.5Kdownloads / mo
aiohomematic Worth it
PyPI · Python Modules · released Aug 2026

An async Python library for controlling and monitoring Homematic and HomematicIP devices through multiple backend systems (CCU3, OpenCCU, Homegear, CUxD, CCU-Jack) using XML-RPC and JSON-RPC protocols.

Install it if you need to control Homematic devices from Python; the only constraint is a requirement for Python 3.14 or later and network access to a compatible…

MITpure Python · 3.14+
621.2Kdownloads / mo
hass-web-proxy-lib With conditions
PyPI · Home Automation · released May 2026

Provides base classes and utilities for Home Assistant integrations to proxy HTTP and WebSocket traffic through Home Assistant's web server.

Install only if you are building a custom Home Assistant integration; it is not useful as a standalone package.

MITpure Python
606.7Kdownloads / mo

See also aioruuvigateway · PyCampbellCR1000 · tb-mqtt-client · pyotgw · zigpy · rflink · tb-paho-mqtt-client · meshtastic · paho-mqtt · meross-iot