# Can't switch instance 2 on a fibaro FGS-223 double switch

**URL:** <https://discourse.nodered.org/t/cant-switch-instance-2-on-a-fibaro-fgs-223-double-switch/7769>\
**Category:** General\
**Created:** [9 February 2019 10:40 UTC](https://discourse.nodered.org/t/cant-switch-instance-2-on-a-fibaro-fgs-223-double-switch/7769 "2019-02-09T10:40:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TacoScheltema](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@TacoScheltema](https://discourse.nodered.org/u/TacoScheltema)\
**Post date:** [9 February 2019 10:40 UTC](https://discourse.nodered.org/t/cant-switch-instance-2-on-a-fibaro-fgs-223-double-switch/7769/1 "2019-02-09T10:40:54Z")

</div>

Hi all,  
I've successfully setup node-red and have been able to create my first flows. I have trouble with my Fibaro FGS-223 double switches though. I can easily operate the first instance by sending a 'switchOn' or 'switchOff' to the nodeid, but if I try to switch the second instance it still only switches the first instance.

I have tried the following:

Kitchen light: nodeid: 11, instance: 1  
Dining light: nodeid: 11, instance: 2

Dining light is setup as follows:

 ![21](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/004ad821e92a21658cfbb58748e033e974511a35.png)

When I click the 'switchOn' button for the Dining light it switches on the kitchen light. I have been searching google and forums but so far haven't found any example using a double relay switch, is there anyone here that had more luck with this?

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [9 February 2019 10:53 UTC](https://discourse.nodered.org/t/cant-switch-instance-2-on-a-fibaro-fgs-223-double-switch/7769/2 "2019-02-09T10:53:29Z")

</div>

You are injecting a text object, should you be injecting a JSON object?

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [9 February 2019 10:55 UTC](https://discourse.nodered.org/t/cant-switch-instance-2-on-a-fibaro-fgs-223-double-switch/7769/3 "2019-02-09T10:55:24Z")

</div>

if it's not what @ghayne suggests it sounds like an issue with the node you are using, rather than a config issue.

What node are you using? You might want to open an issue on the nodes github page to communicate with the author. As it might be an easy addition to make.

---

<div class="post-metadata">

**Author:** ![cflurin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cflurin/32/29_2.png) [@cflurin](https://discourse.nodered.org/u/cflurin)\
**Post date:** [9 February 2019 11:15 UTC](https://discourse.nodered.org/t/cant-switch-instance-2-on-a-fibaro-fgs-223-double-switch/7769/4 "2019-02-09T11:15:02Z")

</div>

@TacoScheltema: You have to use `setValue` instead of `switchOn`

```auto
msg.topic = "setValue"
msg.payload = {"nodeid":11,"instance":2,"value":true}

```

- switchOn only works with instance 1
- if you send a string, it is converted to an object

---

<div class="post-metadata">

**Author:** ![TacoScheltema](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@TacoScheltema](https://discourse.nodered.org/u/TacoScheltema)\
**Post date:** [9 February 2019 12:25 UTC](https://discourse.nodered.org/t/cant-switch-instance-2-on-a-fibaro-fgs-223-double-switch/7769/5 "2019-02-09T12:25:28Z")

</div>

Yes, you're right!

This works:

 ![27](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/7e80086fe0fdd33b789c7f50f6452af53f39c571.png)

Thanks!
