# Relay Widget on eu-latest.cumulocity.com

**URL:** https://community.cumulocity.com/t/relay-widget-on-eu-latest-cumulocity-com/7682
**Category:** Forum
**Tags:** cumulocity
**Created:** [May 20, 2019, 9:32am UTC](https://community.cumulocity.com/t/relay-widget-on-eu-latest-cumulocity-com/7682 "2019-05-20T09:32:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Christoph\_Uhlich1](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@Christoph\_Uhlich1](https://community.cumulocity.com/u/Christoph_Uhlich1)
#### Post date: [May 20, 2019, 9:32am UTC](https://community.cumulocity.com/t/relay-widget-on-eu-latest-cumulocity-com/7682/1 "2019-05-20T09:32:23Z")

</div>

I recently created a show case for playing with the Relay actions.

My device was registered on Cloud der Dinge of Deutsche Telekom before, but I want to move it to the test tenant ([tarent.eu-latest.cumulocity.com](http://tarent.eu-latest.cumulocity.com)).

As the device will set a relay state I used the relay widget in the Cockpit app and tied it to the device.  
Expected behaviour:

- When I click the switch in the dashboard it is closed and the power of the peripheral is on
- When I click the switch again, the relay is opened and the power of the peripheral is off

Actual result:  
I can switch power on (close the relay), but opening the relay is not working - it creates the same operation like closing.  
So I can not switch power off again.

Analysis:  
I checked the operations per REST API and saw that it seems to create the exactly same operation like closing the relay.

BR  
Christoph

---

<div class="post-metadata">

### Author: ![Christoph\_Uhlich1](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@Christoph\_Uhlich1](https://community.cumulocity.com/u/Christoph_Uhlich1)
#### Post date: [May 20, 2019, 10:06am UTC](https://community.cumulocity.com/t/relay-widget-on-eu-latest-cumulocity-com/7682/2 "2019-05-20T10:06:54Z")

</div>

OK - you can close this topic - the device was not correcting the relay state on MO correctly…

---

<div class="post-metadata">

### Author: ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)
#### Post date: [April 2, 2021, 3:42pm UTC](https://community.cumulocity.com/t/relay-widget-on-eu-latest-cumulocity-com/7682/3 "2021-04-02T15:42:48Z")

</div>


