Closed JohanBendz closed 1 year ago
To summarise this issue, if I am correct, the issue is that you can't access the IEEE address of Homey from within a Homey app? Is that the blocker for you to handle IASZone enrolment?
Yes, I can't make the app handle enrollment unless it can fetch the IEEE address. I could ask the user to go to dev portal and read it and enter it as a setting but that is not very user friendly.
@RobinBol to enable IAS zone enrollment, the following steps need to be taken (as per 8.2.2.2.3 Implementation Guidelines):
Auto-Enroll-Response
- After an IAS Zone server is commissioned to a network, the IAS CIE MAY perform service discovery.
- If the IAS CIE determines it wants to enroll the IAS Zone server, it SHALL send a Write Attribute command on the IAS Zone server’s CIE_IAS_Address attribute with its IEEE address.
- The IAS Zone server MAY configure a binding table entry for the IAS CIE’s address because all of its communication will be directed to the IAS CIE.
- The IAS CIE SHALL send a Zone Enroll Response, which assigns the IAS Zone server’s ZoneID attribute.
- The IAS Zone server SHALL change its ZoneState attribute to 0x01 (enrolled).
Practically:
In order to make this work, we need:
For most clusters, there is only one command set, which Homey either will send (normal), or will receive (bound cluster). In this case, we need to be able to receive the bound the commands GENERATED set (to capture the enroll request) and still be able to use the commands RECEIVED set (to send the enroll response).
Is there any progress in this. Lack of IASZONE support in Homey is also blocking the com.elko app from adding support for smart motion sensors. I really want my motion sensors to work in Homey.
@RobinBol, still waiting for this one. I now have several new brands/sensors that I am unable to add to Homey. Any plans to implement this in any way?
We've made some progress related to IAS support, it should be possible now to do a IAS zone enrollment on Homey Pro v8.1.1. Homey Cloud will follow soon. Please check the docs here: https://apps.developer.homey.app/wireless/zigbee#zcl-intruder-alarm-systems-ias, and the related zigbee-clusters PR here: https://github.com/athombv/node-zigbee-clusters/pull/109.
I am considering this issue solved for now, but please let me know if anything is unclear or should be clarified in the docs.
Thanks @RobinBol, I'll give it a go after Christmas. Ping @TedTolboom
Thanks @RobinBol... will give it a try and test if this can replace my containment solution...
There are 2 types of devices, the CIE (coordinator/Homey), and the IAS Zone device (like PIR, motion, fire etc).
Here is an extension of the iasZone cluster that is needed to have it work: IASZoneBoundCluster.js
This is the code to write the CIE Address to the node: await zclNode.endpoints[1].clusters.iasZone.writeAttributes({iasCIEAddress: 0x0000000000000000});