@workmonk Yes, thatâs right. I do have it working now, but the one time configuration is not really streamlined. Ideally in the preferences for the device I could select other devices. e.g. I could tell the switch which bulbs to bind with. Thatâs what I am looking for. Right now I have to find the MAC address and the endpoint of each bulb, and enter those into the preferences manually. Then I have to click the configure() button in the IDE to send the new bindings, because I canât get it working in updated().
I have a ZigBee switch talking directly to one or more ZigBee bulbs. Whenever the switch controls the bulbs, the bulbs will report their state change back to SmartThings, which keeps everything synchronous. SmartThings can control the bulbs directly and the switch wonât care.
The advantage to this configuration is that the response is nearly instantaneous. Also if the hub goes down the switch will still be able to control the light. This is working with most bulbs (not Cree) and when it works itâs awesome.
The second thing is this. Currently this only works in configured() but Iâd like it to work in updated(). It seems like it used to work in updated() but doesnât right now.
Is there a method in the zigbee object for accessing the Ember command line directly? That could allow me to do the above code in updated(). Something like:
I was working on something similar, although not for binding; and I figured I would need to use a SmartApp to handle grabbing the other devices. In a SmartApp, you can access the deviceNetworkId and pass that to the device handler for zigbee commands; but when I tried to pull the endpointId of a device, it gave me an error.
Does anyone know if itâs possible to access what endpointId a device uses from a SmartApp? Itâs used from within Zigbee devices.
5:43:09 PM: error java.lang.IllegalArgumentException: Property âendpointIdâ is not supported for devices @ line 38