Hi all.
I am trying to connect an Arduino with 16 relays to the Smartthings Hub, while avoiding the Smartthings shield. Ideally, I would like to see each relay as an individual device (On/Off output) but I am not sure how to proceed. For now, I am trying to set it as a device with multiple EndPoints, but this would imply seeing it as a single device, am I right? So far I have followed George’s (http://www.falco.co.nz/electronic-projects/xbee-to-smartthings) and @JohnR instructions from the forums, and got the device to show in the app, near my other Things (although for the last hours there seems to be a glitch even with this).
So, to detail: I send the Device Announcement packet, I receive from the Hub:
ZBExplicitRxResponse:
From: 0xD052A853EE1C0001
From: 0x0000
Receive options: 0x01
Src endpoint: 0x00
Dst endpoint: 0x00
Cluster id: 0x0005
Profile id: 0x0000
Payload: 2A 42 E6 --> all ok, this is a frameId + my xbee address
Next, I report an endPoint (0xBB), and I get back:
ZBExplicitRxResponse:
From: 0xD052A853EE1C0001
From: 0x0000
Receive options: 0x01
Src endpoint: 0x00
Dst endpoint: 0x00
Cluster id: 0x0004
Profile id: 0x0000
Payload: 2B 42 E6 BB --> frameId + my xbee address + endPoint address
All seems fine, it asks for an Endpoint Description, I send a packet similar to George’s (ClusterID 0x8004, inClusters 0x0000,0x0003,0x0006), and I get back:
ZBExplicitRxResponse:
From: 0xD052A853EE1C0001
From: 0x0000
Receive options: 0x01
Src endpoint: 0x01
Dst endpoint: 0xBB
Cluster id: 0x0000
Profile id: 0x0104
Payload: 10 25 00 01 00 --> where 0x25 seems to be a frameId, it increases for the next 2 (repeated) packets.
I don’t know how to proceed any further. What’s with the last packet? (I get the same response, even when I announce multiple EndPoints, and I was expecting it to inquire about all the endPoints). I can provide more details if needed. Thanks for all your help.