Skip to main content

MQTT client to manage Home Assistant entities via MQTT

Project description

MQTT Entity helper library for Home Assistant

codecov

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.3.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

mqtt_entity-0.0.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mqtt-entity-0.0.3.tar.gz
Algorithm Hash digest
SHA256 bcb9011355c116ac33ae01be54f0803151df46b8d01c38e59165c911f9529d75
MD5 f64b21b18f561dddf6099f396fcf2e64
BLAKE2b-256 40b3662fd43f90fb99dc14a0a49b01c19a30ad89df36d8bfd7da13619b010279

See more details on using hashes here.

File details

Details for the file mqtt_entity-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mqtt_entity-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for mqtt_entity-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa5fc902276e54803fed033614f834e42c3e1b967948d8c2431aa0f25a2ae75b
MD5 953d54ce7a44fff5116eaaf63a40da91
BLAKE2b-256 ddc9b1a1d3762d6d48623ad6fbae309a0307820ca6210b3408362d9bd95e8242

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