Skip to main content

MQTT client to manage Home Assistant entities via MQTT

Project description

MQTT Entity helper library for Home Assistant

A Python helper library to manage Home Assistant entities over MQTT.

Features:

  • MQTT entity discovery info (persistent messages)
  • Option to remove persistent discovery info
  • Availability management
  • Manage entities per device
  • Entities modelled as classes
  • Supported entities:
    • Read-only: Sensor, BinarySensor
    • Read & write: Select, Switch, Number
  • Asyncio based

MQTTClient based on paho-mqtt.

Why?

This MQTT code was included in several of my home Assistant addons (SMA-EM / Sunsynk) and finally decided to extract it in a separate library to leverage recent updates & features like discovery removal.

Alternatives options (not based on asyncio)

Credits

@Ivan-L contributed some of the writable entities to the Sunsynk addon project

Project details


Download files

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

Source Distribution

mqtt-entity-0.0.1.tar.gz (8.9 kB view details)

Uploaded Source

File details

Details for the file mqtt-entity-0.0.1.tar.gz.

File metadata

  • Download URL: mqtt-entity-0.0.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for mqtt-entity-0.0.1.tar.gz
Algorithm Hash digest
SHA256 568de598237b07d9d42fa89903c2926e750b35ad39edb2989e359a339b505d72
MD5 d56730d5e4719604c6ec698439469718
BLAKE2b-256 a3cc84ba6f289d302b7fb1e3982d05ae62cf034ca350540a05ff4ba21b0827fd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page