Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[REQUEST] ZGP (Zigbee Green Power) specification support #341

@Hedda

Description

@Hedda

Please add support for Zigbee Green Power device specification (ZGP clusters/endpoint standard subset) in zigpy + radio libraries.

https://csa-iot.org/all-solutions/green-power/

Note to end-users! If you are a non-developer (e.g. only an end-user of the Zigbee Home Automation integration in Home Assistant) then please do not post replies there to only ask for status. Instead you should just give a thumbs-upemoji to comments and posts, but please do not post "+1" or "me too" or "what is status" and other comments to this issue that will not directly related to the development of ZGP support in zigpy, or it will at least not encurage developers to work on this. As non-developers (i.e. end-users) please instead read and post to the Home Assistant's community feature request for general status questions or or off-topic discussions that are not directly constructive to developers for continuing with development of ZGP support in the zigpy library, so see -> https://community.home-assistant.io/t/zha-integration-to-get-full-support-for-zgp-zigbee-green-power-devices/277149

Image

Zigbee Green Power is a Zigbee standard based on energy-harvesting technologies and is part of the larger Zigbee PRO standard. Full stack for ZGP commands is needed in zigpy and its radio libraries for zha to support batteryless Zigbee Green Power devices.

If goal is for zigpy library to become fully compliant with Zigbee 3.0 it needs to at least support ZGP v2, and if would allow using zigpy as a Zigbee Router (ZR) device then it also needs to at a minimum include ZGPB/GPB (Zigbee Green Proxy Basic) support too.

Summery; ZGP (Zigbee Green Power), a.k.a. "Zigbee GreenPower", is a subset feature of Zigbee that allows for extreme low-power and energy-harvesting technology to be used directly with the Zigbee stack. Using Zigbee Green Power, certain home automation wireless devices (end devices) may be powered by either different self-powered energy harvesting solutions or switches and sensors that can operate for up to a decade on a single battery coin-cell battery. Energy harvesting technology enables the maintenance-free battery-less devices (end devices) such as switches and remotes operating in a Zigbee network.

Zigbee Green Power is compatible with any Zigbee 3.0 device, but not all Zigbee 3.0 products are certified as Green Power Combo. Zigbee Green Power V2 is included as a subset in the Zigbee 3.0 specification (ZB3), while Zigbee Green Power V1 Green Power was a subset of an earlier Zigbee PRO standard.

Basic terms:

  • ZGPD/GPD - Zigbee Green Power Device - a common Green Power device, which send specific Green Power packets (GPDF - Green Power Data Frames)
  • ZGPS/GPS - Zigbee Green Power Sink - a Green Power device, which translates and transfers Green Power cluster commands to the relevant endoint
  • ZGPB/GPB - Zigbee Green Proxy Basic - a Green Power device, which receives Green Power packets (GPDFs) and transmits Green Power Cluster commands; all Zigbee 3.0 routing devices must implement this
  • GPCB - Green Power Combo Basic - Zigbee Green Power Combo Basic device includes two roles: Green Power Proxy and Green Power Sink.

"During commissioning ZGPD reports his device ID. ZGPS should check if there are appropriate local endpoints, which can communicate with such ZGPD device ID. This process is called ZGPS functionality matching. Matching table declares for each supported ZGPD device ID there are requirements to local endpoint in order to ZGPS functionality matching to succeed."

https://csa-iot.org/all-solutions/green-power/

https://csa-iot.org/all-solutions/green-power/green-power-faq/

https://zigbeealliance.org/wp-content/uploads/2019/11/Green-Power-White-Paper.pdf

https://csa-iot.org/wp-content/uploads/2022/01/docs-14-0563-18-batt-Green-Power-Basic-specification-v1.1.1.pdf

https://zigbeealliance.org/wp-content/uploads/2019/11/docs-09-5499-26-batt-zigbee-green-power-specification.pdf

ZGP (Zigbee Green Power) technology for battery-less self-powered or energy-harvesting devices. ZGP specification is a part of the official Zigbee 3.0 standard specifications and is supported by modern Zigbee Coordinator adapters (at least Texas Instruments and Silicon Labs). ZGP based devices are something also referred to as Green Power Device (GPD) or Green Power Devices (GPDs).

http://software-dl.ti.com/simplelink/esd/simplelink_cc26x2_sdk/2.30.00.34/exports/docs/zstack/html/zigbee/gpd_application_overview.html

https://www.ti.com/lit/an/swra615a/swra615a.pdf

https://www.silabs.com/documents/public/user-guides/ug103-15-green-power-fundamentals.pdf

https://www.silabs.com/documents/public/user-guides/ug392-using-sl-green-power-with-ezp.pdf

https://developer.nordicsemi.com/nRF_Connect_SDK/doc/zboss/3.8.0.1/group__zgp__api.html

https://infocenter.nordicsemi.com/pdf/15-02016-010-GP_Errata_for_GP_Basic_PICS_DSR_Nordic.pdf

https://www.nxp.com/docs/en/user-guide/JN-UG-3095.pdf

And devices:

https://www.assets.signify.com/is/content/Signify/Assets/philips-lighting/global/20201014-uid8480-zigbee-green-power-switch.pdf

https://www.lighting.philips.com/api/assets/v1/file/PhilipsLighting/content/0c34886812f2480d87b7ac5401062bec/UID8470_SpSh_20200415_Fin.pdf

https://www.qorvo.com/resources/d/qorvo-zigbee-green-power-multi-sensor-comparison-to-battery-powered-zigbee-devices-white-paper

The reason for the request is that you can already buy many Zigbee Green Power (ZGP) enabled switches/remotes made for home automation, and they are in fact very popular since Philips Hue has several ZGP devices in several pf their product series/lineups.

According to the Zigbee Cluster Library Specification revision 7 (ZCL7), every Zigbee 3.0 device with routing capabilities (router or coordinator) must implement Green Power Basic Proxy (GPBP) v1.1.1 functionality for forwarding compatibility to be granted Zigbee 3.0 Certification in order to further support Zigbee Green Power capabilities.

Should be noted that a Zigbee coordinator can not normally connect directly to those Zigbee Green Power enabled switches/remotes as you need to bind them to a mains-powered device like a Zigbee lightbulb or a relay.

https://www.fierceelectronics.com/iot-wireless/zigbee-r-3-0-power-green

https://www.owon-smart.com/news/what-is-zigbee-green-power/

The requirements to run a Zigbee Green Power is found in the document from Texas Instruments:

image

See zigbee-herdsman PR #92 for proof-of-concept as ZGP is already supported in zigbee-herdsman / Zigbee2mqtt (Z2M) projects:

Most common examples of Zigbee Green Power devices for home automation are rocker wall switches. Certified ZGP products:

Most popular are devices based on Zigbee 3.0 pre-certified PTM215ZE/PTM215Z and PTM216Z modules from EnOcean:

EnOcean PTM215ZE/PTM215Z and PTM216Z modules use energy converter for motion energy harvesting for battery-less operation that is sold to OEM/ODM radio modules which create products:

Friends of Hue partnership switches from ABB (Sweden), Illumra (USA), Kichler (USA), MAKRIS by Imoon (Italy), Vimar (Italy), Busch-Jaeger (Germany), Senic (Germany), Niko (Belgium), Sunricher (Hong Kong), Koizumi (Japan), Legrand (France), and John Lewis (UK) which I believe all use either the older EnOcean PTM 215ZE module or the newer EnOcean PTM 216Z module.

Phoscon (dresden elektronik) posted these instructions for paring Friends of Hue switches with their deCONZ solution here:

Examples Philips Hue compatible ZGP switches:

There are even a few Tuya made self-powered ZGP-based devices like these that do not require batteries:

Technical and developer documentation:

PS: If an end-user of Home Assistant wants to use ZGP (Zigbee Green Power) then they can not use the ZHA integration, and instead they as a workaround need to look at third-party Zigbee gateway/bridge/hub solutions that support ZGP, such as example Zigbee2MQTT, deCONZ/Phoscon, or commercial Zigbee gateways/bridges/hubs such as the Philips Hue Hub.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Later

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions