Skip to content

Send ZigBee commands to devices in the network #16

Answered by Nerivec
bobo-cher asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks!

Sending high level payloads is not quite easy, ember-zli was not designed for this. Although the whole EZSP protocol is exposed through the ezsp reference, it requires sending "raw" payloads. You can see an example here:

private async menuPingCoordinator(): Promise<boolean> {
if (!this.ezsp) {
logger.error(`Invalid state, no EZSP layer available.`)
return this.exit(1)
}
const [status] = await this.ezsp.send(
EmberOutgoingMessageType.DIRECT,
ZSpec.COORDINATOR_ADDRESS,
{
profileId: ZSpec.HA_PROFILE_ID,
clusterId: Zcl.Clusters.genBasic.ID,
sourceE…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by bobo-cher
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Nerivec
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants