# Relay control - id operation

**URL:** https://community.cumulocity.com/t/relay-control-id-operation/7547
**Category:** Forum
**Tags:** cumulocity, analytics, cumulocity-edge, thin-edge-io, device-connectivity
**Created:** [February 22, 2024, 10:42pm UTC](https://community.cumulocity.com/t/relay-control-id-operation/7547 "2024-02-22T22:42:23Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Marco\_Stoffel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/marco_stoffel/32/19453_2.png) [@Marco\_Stoffel](https://community.cumulocity.com/u/Marco_Stoffel)
#### Post date: [February 23, 2024, 6:28am UTC](https://community.cumulocity.com/t/relay-control-id-operation/7547/3 "2024-02-23T06:28:07Z")

</div>

Hi Anthony,

operations just tell the device to execute something. In your case it would be to set the relay to a certain status (Hardware). Also the device has to set the fragment in the ManagedObject to persist to the current status.

You might also take a look at:

> [@How to use RelayArray widget to control device operation](https://community.cumulocity.com/t/how-to-use-relayarray-widget-to-control-device-operation/861/2):
>
> The Relay Array Control widget requires the device to support the c8y\_RelayArray operation and also requires the device to communicate its current status of relays using the c8y\_RelayArray fragment in its own managed object. So the managed object must have at least the following properties: { "c8y\_RelayArray": ["OPEN", "CLOSED", "CLOSED", "OPEN"], "c8y\_SupportedOperations": ["c8y\_RelayArray"] } The size of the relay array can vary an…

Kind Regards,

Marco

---

_[View the full topic](https://community.cumulocity.com/t/relay-control-id-operation/7547)._
