Skip to main content

Library implementing Zigpy quirks for ZHA in Home Assistant

Project description

Build Status

ZHA Device Handlers For Home Assistant

ZHA Device Handlers are custom quirks implementations for Zigpy, the library that provides the Zigbee support for the ZHA component in Home Assistant.

ZHA device handlers bridge the functionality gap created when manufacturers deviate from the ZCL specification, handling deviations and exceptions by parsing custom messages to and from Zigbee devices. Zigbee devices that deviate from or do not fully conform to the standard specifications set by the Zigbee Alliance may require the development of custom ZHA Device Handlers (ZHA custom quirks handler implementation) to for all their functions to work properly with the ZHA component in Home Assistant.

Custom quirks implementations for zigpy implemented as ZHA Device Handlers are a similar concept to that of Hub-connected Device Handlers for the SmartThings Classics platform as well that of Zigbee-Herdsman Converters / Zigbee-Shepherd Converters as used by Zigbee2mqtt, meaning they are virtual representation of a physical device that expose additional functionality that is not provided out-of-the-box by the existing integration between these platforms. See Device Specifics for details.

How to contribute

For specific Zigbee debugging instructions on capturing logs and more, see the contributing guidelines in the CONTRIBUTING.md file:

If you are looking to make your first code contribution to this project then we also suggest that you follow the steps in these guides:

Currently Supported Devices:

CentraLite

Xiaomi Aqara

Osram

SmartThings

Keen Home

Lutron

WAXMANN

Digi

Yale

Configuration:

  1. Update Home Assistant to 0.85.1 or a later version.

NOTE: Some devices will need to be unpaired and repaired in order to see sensor values populate in Home Assistant.

Device Specifics:

Centralite

  • All supported devices report battery level
  • Dimmer Switch publishes events to Home Assistant
  • Dimmer Switch temperature sensor is removed because it is non functional
  • 3321-S reports acceleration
  • 3310-S reports humidity

Osram

  • Dimmer Switch publishes events to Home Assistant and reports battery level
  • Dimmer Switch temperature sensor is removed because it is non functional

Xiaomi Aqara

  • All supported devices report battery level
  • All supported devices report temperature but I am unsure if it is correct or accurate
  • Vibration sensor exposes a binary sensor in Home Assistant that reports current vibration state
  • Vibration sensor sends tilt and drop events to Home Assistant
  • Cube sends the following events: flip (90 and 180 degrees), rotate_left, rotate_right, knock, drop, slide and shake
  • Motion sensor exposes binary sensors for motion and occupancy.
  • Button sends events to Home Assistant
  • All supported plugs report power consumption and can be toggled

SmartThings

  • All supported devices report battery level
  • tagV4 exposed as a device tracker in Home Assistant. The current implementation will use batteries rapidly
  • MultiV4 reports acceleration

Lutron

  • Connected bulb remote publishes events to Home Assistant

WAXMANN

  • leakSMART water sensor is exposed as a binary_sensor with DEVICE_CLASS_MOISTURE

Digi XBee

  • Some functionality requires a coordinator device to be XBee as well
  • GPIO pins are exposed to Home Assistant as switches
  • Analog inputs are exposed as sensors
  • PWM output on XBee3 can be controlled by writing 0x0055 (present_value) cluster attribute with zha.set_zigbee_cluster_attribute service
  • Outgoing UART data can be sent with zha.issue_zigbee_cluster_command service
  • Incoming UART data will generate zha_event event.
  • PWM can be controlled with zha.set_zigbee_cluster_attribute service

Please refer to xbee.md for details on configuration and usage examples.

Yale

  • All supported devices report battery level

Thanks

  • Special thanks to damarco for the majority of the device tracker code
  • Special thanks to Yoda-x for the Xioami attribute parsing code
  • Special thanks to damarco and Adminiuga for allowing me to bounce ideas off of them and for listening to me ramble

Related projects

Zigpy

zigpy is Zigbee protocol stack integration project to implement the Zigbee Home Automation standard as a Python 3 library. Zigbee Home Automation integration with zigpy allows you to connect one of many off-the-shelf Zigbee adapters using one of the available Zigbee radio library modules compatible with zigpy to control Zigbee based devices. There is currently support for controlling Zigbee device types such as binary sensors (e.g., motion and door sensors), sensors (e.g., temperature sensors), lightbulbs, switches, locks, fans, covers (blinds, marquees, and more). A working implementation of zigpy exist in Home Assistant (Python based open source home automation software) as part of its ZHA component

ZHA Map

zha-map project allow building a Zigbee network topology map for ZHA component in Home Assistant.

zha-network-visualization-card

zha-network-visualization-card is a custom Lovelace element for visualizing the Zigbee network map for ZHA component in Home Assistant.

ZHA Network Card

zha-network-card is a custom Lovelace card that displays ZHA network and device information in Home Assistant

zigpy-deconz-parser

zigpy-deconz-parser project can parse Home Assistant ZHA component debug log using zigpy-deconz library if you have ConBee or RaspBee hardware.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

zha-quirks-0.0.39.tar.gz (51.3 kB view details)

Uploaded Source

Built Distribution

zha_quirks-0.0.39-py3-none-any.whl (119.2 kB view details)

Uploaded Python 3

File details

Details for the file zha-quirks-0.0.39.tar.gz.

File metadata

  • Download URL: zha-quirks-0.0.39.tar.gz
  • Upload date:
  • Size: 51.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for zha-quirks-0.0.39.tar.gz
Algorithm Hash digest
SHA256 99d4b20a933b97b323c558f4057036ebe349bf603e97826c498d17d9cc80ff0b
MD5 5eb1bfe1347e99654906f363f1bde99e
BLAKE2b-256 712b2d47a0eabedc6371e3e04824895292289712f59fa2af61534870acf3d29a

See more details on using hashes here.

File details

Details for the file zha_quirks-0.0.39-py3-none-any.whl.

File metadata

  • Download URL: zha_quirks-0.0.39-py3-none-any.whl
  • Upload date:
  • Size: 119.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for zha_quirks-0.0.39-py3-none-any.whl
Algorithm Hash digest
SHA256 a38dfcf6b59e445d87bca3f1e84bd5774dda99f4501d500d8f833f019fd342ba
MD5 d9392ee2323046f356bc4b3d372f6ec3
BLAKE2b-256 dc92509979ee6e707665b09783383c5666c0cf00a8f3bc160969c0b2d0c1b826

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