Home/Support/Support Forum/How to send a ZCL command to a device or gateway via DigiCloud
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to send a ZCL command to a device or gateway via DigiCloud

0 votes
I'd like to send commands to a device (e.g. SafePlug) but I cannot find how to do it in the programming guide.

The commands I want to execute are
- read_attributes
- send_ZCL
- start_reports
- stop_reports
- etc.

I can execute above commands in the debug console (https://digi-se.appspot.com) but I don't know how to do it via Device Cloud web service.

If you have any idea about this, please let me know. Thanks!
asked Oct 30, 2014 in Web Services by wongni New to the Community (2 points)

Please log in or register to answer this question.

1 Answer

0 votes
From the API Explorer, you can get read attributes with the following syntax with the following showing the meter reading attribute:


You would fill in your Device ID and the EUI 64 address for the end node.

ZCL example from API Explorer path /ws/sci:

<sci_request version="1.0">
<device id="00000000-00000000-00409DFF-FFXXXXXX" />
<rci_request version="1.1">
<do_command target="RPC_request">
<send_ZCL synchronous="true">
<destination_address type="MAC">00:11:22:33:44:55:66:77</destination_address>
<disable_default_response type="bool">false</disable_default_response>
<payload type="base16">1E00</payload>

Reporting example can be found here, along with other useful examples for Smart Energy:

answered Oct 31, 2014 by userid0 Veteran of the Digi Community (2,158 points)