How can I ensure that the gateway is aware of state changes for other devices on the network?

State Changes Initiated by GAPI
When the coordinator writes a new value to an attribute on another device, the device will confirm that it received the write request. This should trigger an update listener in GAPI.
State Changes Initiated Outside of GAPI
In many cases, the state change will be initiated by user interaction or environmental changes affecting the other devices on the network. For example: as the temperature in a room changes, the value of the LocalTemperature attribute for a thermostat in that room will change. In cases like this, Attribute Reporting may be used to keep the gateway in sync with attribute values for other devices.
The Zigbee specifications dictate that some attributes are "reportable", meaning that it will be possible to prompt notifications to be sent to other devices when the attribute value changes. You simply need to enable attribute reporting using the Binding and Attribute Reporting API.
Once an attribute has been configured for reporting, a handler will be triggered in GAPI when it changes.

Legal Notices

Copyright © 2020 MMB Networks, Inc. All rights reserved.
Confidential materials prepared and delivered by MMB Networks for receipt and review only by any partner subject to a valid and enforceable MMB Networks confidentiality agreement. Any receipt, review, or misuse of any of the content exchanged hereunder by any party not a party to this confidential exchange shall be subject to any and all rights available under the law. All rights, title and interest to the materials shall remain with MMB Networks.
Any suggestions provided to MMB Networks with respect to MMB Networks' products or services shall be collectively deemed “Feedback.” You, on behalf of yourself, or if you are providing Feedback on behalf of your employer or another entity, represent and warrant that you have full legal authority to bind such entity to these terms, agree to grant and hereby grant to MMB Networks a nonexclusive, perpetual, irrevocable, royalty free, worldwide license to use and otherwise exploit such Feedback within any MMB Networks products and services.