Skip to main content

qToggleServer integration with Zigbee2MQTT

Project description


About

This is an add-on for qToggleServer.

It provides a peripheral driver that exposes ports for Zigbee devices controlled by Zigbee2MQTT.

Install

If you run qToggleOS, you'll need Zigbee support.

Install using pip:

pip install qtoggleserver-zigbee2mqtt

Peripheral Driver & Parameters

driver: qtoggleserver.zigbee2mqtt.Zigbee2MQTTClient

mqtt_server

  • type: string
  • default: required
  • example: "test.mosquitto.org"

mqtt_port

  • type: integer
  • default: 1883

mqtt_username

  • type: string
  • default: null

mqtt_password

  • type: string
  • default: null

mqtt_client_id

  • type: string
  • default: qtoggleserver

mqtt_reconnect_interval

Represents the interval, in seconds, between two (re)connection attempts to the MQTT server.

  • type: integer
  • default: 5

mqtt_base_topic

  • type: string
  • default: "zigbee2mqtt"

mqtt_logging

Indicates whether the logs generated by the MQTT client will be added to the qToggleServer or not.

  • type: boolean
  • default: false

bridge_prefix

Sets an optional prefix for bridge-specific ports (such as permit_join). This is useful when multiple Zigbee2MQTT bridges are used, to avoid name clashes.

  • type: string
  • default: ""

bridge_logging

Indicates whether the logs generated by the Zigbee2MQTT bridge will be added to the qToggleServer or not.

  • type: boolean
  • default: false

bridge_request_timeout

Indicates the timeout, in seconds, when waiting for a response (via MQTT) when sending a request (via MQTT) to the bridge.

  • type: integer
  • default: 10

permit_join_timeout

Indicates the timeout, in seconds, to permit new Zigbee devices to join, once enabled.

  • type: integer
  • default: 240

device_config

Allows specifying static configuration for particular Zigbee devices. Each entry in the dictionary is the (friendly) name of a device associated to a configuration dictionary or a wildcard pattern that friendly names of devices must match. See Device Configuration for details on the available configuration options.

  • type: dictionary
  • default: {}

Device Configuration

The following configuration options are available for a device:

get_state_property

Some Zigbee devices won't allow obtaining the current state by doing a get {"state": ""}. Instead, they need one of the specific properties to be requested, such as get {"temperature": ""}. This option allows setting the name of this property. If set to null, disables querying for state. See zigbee2mqtt/FRIENDLY_NAME/get for details.

  • type: string
  • default: "state"

force_port_properties

By default, exposed capabilities with category set to config or diagnostic, along with exposed options, will be treated as attributes of the corresponding qToggle control port. This option allows specifying a list of property names that will be associated to dedicated qToggle ports, regardless of their category (see zigbee2mqtt exposes for details). Capability (property) names are dot separated when they are part of a composite type (e.g. color.hue). Wildcards are also supported (e.g. color.* will match all the properties inside the color composite type).

  • type: [string]
  • default: []

force_attribute_properties

By default, exposed capabilities with no category set will be treated as standalone qToggle ports. This option allows specifying a list of property names that will become attributes of the corresponding control port, regardless of their category (see zigbee2mqtt exposes for details). Capability (property) names are dot separated when they are part of a composite type (e.g. color.hue). Wildcards are also supported (e.g. color.* will match all the properties inside the color composite type).

  • type: [string]
  • default: []

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

qtoggleserver_zigbee2mqtt-1.9.3.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qtoggleserver_zigbee2mqtt-1.9.3-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file qtoggleserver_zigbee2mqtt-1.9.3.tar.gz.

File metadata

File hashes

Hashes for qtoggleserver_zigbee2mqtt-1.9.3.tar.gz
Algorithm Hash digest
SHA256 13ffda6ba700a958555a9d1e1d79632eccac99685f4df3d9cc11233583e5e21a
MD5 e6aecf471e191136d39a73106a8d1a41
BLAKE2b-256 edb128c54d549bd6c2c5522e3288e6e2cf64aa55684e5ff23005dd945f91e422

See more details on using hashes here.

File details

Details for the file qtoggleserver_zigbee2mqtt-1.9.3-py3-none-any.whl.

File metadata

File hashes

Hashes for qtoggleserver_zigbee2mqtt-1.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1844004b6d276fe745004a9891251bffda800a8f9f63567e9aa643db6b1d8ddb
MD5 22c80ba3bf5a5c5ccc51da32490b1c64
BLAKE2b-256 fbc6181b37d3f2f1979e009e9e54e704518688e770efe6033b2551628c8b9616

See more details on using hashes here.

Supported by

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