How to schedule an event to power on a LED in an XBee module?

I am using the XBee Cloud Kit (gateway + xbee module + DeviceCloud) and I want to schedule an event to control the output pin of the XBee Module. For example, I want a LED to be ON at 7h and OFF at 8h every day. This LED is connected to a pin of the XBee Module.

Is there a way to automate this in Device Cloud? Or maybe run a python script in the gateway device to do this?

In the future I want to connect more XBees to this network and make them switch ON and OFF their LEDs at an specific time (and at same time).

You should be able to accomplish using either method.

From the Device Cloud you could set up 2 scheduled tasks (one to turn on and one to turn off) to run the RCI commands at the specified times.

You can also use python to accomplish this using the Alarm module.

Thank you very much, I’ll try to do this from the Device Cloud and then post results here!