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:
Kind Regards,
Marco