# \[ST Edge\] Issue with the Z-Wave Switch driver

**URL:** <https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733>\
**Category:** Support\
**Created:** [December 3, 2021, 6:22pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733 "2021-12-03T18:22:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [December 3, 2021, 6:22pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/1 "2021-12-03T18:22:57Z")

</div>

Hello @nayelyz  
I have tested the Beta **zwave switch driver** with the **Fibaro FGS 223 double switch** , which is in the driver fingerprints.

```auto
  - id: "010F/0203"
    deviceLabel: Fibaro Double Switch
    manufacturerId: 0x010F
    productType: 0x0203
    deviceProfileName: switch-1-button-6-power-energy

```

Try first as @philh30 said, **to pair it without uninstalling the device from the DTH**. Surprise is paired with the driver on the first try, **but it is offline and does not work** , the device continued to work with the DTH, which had the same DNI (09).

I uninstall the device with the zwave exclusion and **it unpairs from the driver** and continues to work with the DTH.

I uninstall the switch with zwave exclusion and it perfectly **uninstalls from the DTH.**

I try again to install and it pair with the **DTH zigbee switch Power, like Philio Plug.**  
I delete the Philio fingerprint line from the DTH zigbee switch Power and try again to match it to the driver.

**Now it pairs with the stock DTH Zwave device** and there is no way it will pair with something else and I can’t do anything anymore and it doesn’t work clear either.

Have you received any other similar anomaly and if there is a solution?

Thanks

---

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [December 3, 2021, 8:48pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/2 "2021-12-03T20:48:28Z")

</div>

@nayelyz  
Well, I already got it paired Double Switch Fibaro FGS-223 with the Driver Zwave Switch.  
It was a matter of bringing the Hub closer to the switch, which was 6 meters away.

**The problem is that it shows this device de-purpose:**

- A switch 1 that controls switch 1
- A main switch that controls switch 1 as well
- 6 buttons !!!
- There is no control for switch 2.

**I uninstall it, since it is not usable, nor of receipt that smartthings publishes a driver in this condition.**

 ![Screenshot_20211203-212014](https://global.discourse-cdn.com/smartthings/original/3X/c/8/c8bd6bc795549a18c41552180cfa6150f616fb5b.png)

---

<div class="post-metadata">

**Author:** ![orangebucket](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/orangebucket/32/81590_2.png) [@orangebucket](https://community.smartthings.com/u/orangebucket)\
**Post date:** [December 3, 2021, 10:25pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/3 "2021-12-03T22:25:26Z")

</div>

> [@Mariano\_Colmenarejo](#):
>
> **The problem is that it shows this device de-purpose:**
> 
> - A switch 1 that controls switch 1
> - A main switch that controls switch 1 as well
> - 6 buttons !!!
> - There is no control for switch 2.

It doesn’t look great. Are you querying the number of buttons or that there are any at all? I can see they are handling the scenes but I haven’t pondered it too deeply.

---

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [December 3, 2021, 10:59pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/4 "2021-12-03T22:59:27Z")

</div>

> [@orangebucket](#):
>
> can see they are handling the scenes but I haven’t pondered it too deeply.

It’s possible.  
In IDE, the DTH also says it has 6 buttons, 3 each switch, although they are not shown.  
They are configurable in preference settings.  
I have never used the send scenes functions.

 ![Screenshot_20211203-235438](https://global.discourse-cdn.com/smartthings/original/3X/b/2/b22704dbcd35d464548d5009d08aa1c3b1c000f5.png)

 ![Screenshot_20211203-234942](https://global.discourse-cdn.com/smartthings/original/3X/e/8/e888f2c742c83811ce0d7c700258e36f5d17a6e7.png)

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [December 6, 2021, 8:20pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/5 "2021-12-06T20:20:57Z")

</div>

Can you send an email to [build@smartthings.com](mailto:build@smartthings.com) with the following information to report the issue, please?

- A video of the `switch1` and `main` components to see how both control switch 1
- The Hub logs received during the video reporting to see what is displayed in the app and the actual events sent.

---

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [December 6, 2021, 9:00pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/6 "2021-12-06T21:00:12Z")

</div>

> [@nayelyz](#):
>
> Can you send an email to [build@smartthings.com](mailto:build@smartthings.com) with the following information to report the issue, please?
> 
> - A video of the `switch1` and `main` components to see how both control switch 1
> - The Hub logs received during the video reporting to see what is displayed in the app and the actual events sent.

Hello, @nayelyz

Making a video of how switch1 and main control the same physical switch is a bit difficult for me now.  
I have the device again paired with the DTH and I would have to disassemble the hub and bring it close to the device and pair it again with the driver and then again with the dth.

In the video you would only see that the main or switch1 is activated, but you would not see which light turns on.

**I can send you the entire pairing log and at the end there are several changes from on to off of the main and switch 1** and surely you will be able to get more information.

You will also see in logs that it measures exactly the same power in the 2 channels and in reality there is 6 watts of difference from one lamp to another.

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [December 6, 2021, 9:05pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/7 "2021-12-06T21:05:21Z")

</div>

> [@Mariano\_Colmenarejo](#):
>
> Making a video of how switch1 and main control the same physical switch is a bit difficult for me now.

I understand, in the logs should appear the event from the app targeting main or switch1 and the message sent to the same device endpoint, which would be really helpful for the engineering team.

---

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [December 6, 2021, 9:16pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/8 "2021-12-06T21:16:10Z")

</div>

@nayelyz,

I send file to e-mail and you tell me if it is enough

Thanks

---

<div class="post-metadata">

**Author:** ![Terri\_Baker](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/terri_baker/32/95826_2.png) [@Terri\_Baker](https://community.smartthings.com/u/Terri_Baker)\
**Post date:** [March 14, 2022, 7:57pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/9 "2022-03-14T19:57:45Z")

</div>

@nayelyz I am trying to add a Minoston Z-Wave Plug Outlet Dual On/Off Switch Outlet (MP20Z) using the stock z-wave switch driver.  
mfr:0312 prod:FF00 model:FF05

```auto
  - id: 0312/FF00/FF05
    deviceLabel: Minoston Switch 1
    manufacturerId: 0x0312
    productType: 0xFF00
    productId: 0xFF05
    deviceProfileName: dual-switch

```

The issue is that only the Main Switch and Switch 1 are being created. I ran logcat during inclusion and see no errors. The 2 switches control only the Left outlet. It appears that a Switch 2 is needed to control the Right outlet.

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [March 14, 2022, 9:34pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/10 "2022-03-14T21:34:37Z")

</div>

> [@Terri\_Baker](#):
>
> I am trying to add a Minoston Z-Wave Plug Outlet Dual On/Off Switch Outlet (MP20Z) using the stock z-wave switch driver.

Do you mean you downloaded the stock driver and added that fingerprint?  
Which other capabilities do you need? The [“dual-switch”](https://github.com/SmartThingsCommunity/SmartThingsEdgeDrivers/blob/main/drivers/SmartThings/zwave-switch/profiles/dual-switch.yml) profile only has one switch in “main” and another in “switch1”, so, you should use the correct profile.

> [@Terri\_Baker](#):
>
> The 2 switches control only the Left outlet.

Can you share the logs of the “switch” events to see the content of the messages, please?

---

<div class="post-metadata">

**Author:** ![Terri\_Baker](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/terri_baker/32/95826_2.png) [@Terri\_Baker](https://community.smartthings.com/u/Terri_Baker)\
**Post date:** [March 15, 2022, 12:43am UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/11 "2022-03-15T00:43:56Z")

</div>

> [@nayelyz](#):
>
> Do you mean you downloaded the stock driver and added that fingerprint?

No, that fingerprint is already included in the stock driver, I did not add anything.

> [@nayelyz](#):
>
> The [“dual-switch”](https://github.com/SmartThingsCommunity/SmartThingsEdgeDrivers/blob/main/drivers/SmartThings/zwave-switch/profiles/dual-switch.yml) profile only has one switch in “main” and another in “switch1”

The way it is working is that both the Main and Switch 1 only control the left outlet. Neither switch turns on power to the right switch. I would expect Main to control the left outlet and Switch 1 to control the right outlet. I will get the logs

---

<div class="post-metadata">

**Author:** ![Terri\_Baker](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/terri_baker/32/95826_2.png) [@Terri\_Baker](https://community.smartthings.com/u/Terri_Baker)\
**Post date:** [March 15, 2022, 1:13am UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/12 "2022-03-15T01:13:24Z")

</div>

Here are the logs. The right outlet never gets turned on.

```auto
2022-03-15T01:10:58.211317076+00:00 TRACE Z-Wave Switch Received event with handler capability
2022-03-15T01:10:58.356711410+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> received command: {"component":"main","capability":"switch","command":"off","args":[],"positional_args":[]}2022-03-15T01:10:58.368672077+00:00 TRACE Z-Wave Switch Found CapabilityCommandDispatcher handler in zwave_switch
2022-03-15T01:10:58.374742410+00:00 TRACE Z-Wave Switch SWITCH_BINARY supported.
2022-03-15T01:10:58.384094743+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> sending Z-Wave command: {args={duration=0, target_value="OFF_DISABLE"}, cmd_class="SWITCH_BINARY", cmd_id="SET", dst_channels={}, encap="AUTO", payload="\x00\x00", src_channel=0, version=2}
2022-03-15T01:10:58.611267077+00:00 TRACE Z-Wave Switch Z-Wave command(aa0e0428) queued for radio transmission: CC:Switch Binary, CID:0x01
2022-03-15T01:10:58.655678743+00:00 DEBUG Z-Wave Switch Minoston Switch 1 device thread event handled
2022-03-15T01:10:58.664828743+00:00 DEBUG Z-Wave Switch Minoston Switch 1 device thread event handled
2022-03-15T01:10:58.872832410+00:00 TRACE Z-Wave Switch Z-Wave command(aa0e0428) transmit status: TRANSMIT_COMPLETE_OK
2022-03-15T01:10:58.987807743+00:00 TRACE Z-Wave Switch Received event with handler unnamed
2022-03-15T01:10:59.013569077+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> received Z-Wave command: {args={value="OFF_DISABLE"}, cmd_class="SWITCH_BINARY", cmd_id="REPORT", dst_channels={}, encap="NONE", payload="\x00", src_channel=0, version=1}
2022-03-15T01:10:59.026779744+00:00 TRACE Z-Wave Switch Found ZwaveDispatcher handler in zwave_switch
2022-03-15T01:10:59.033247744+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> emitting event: {"component_id":"main","capability_id":"switch","state":{"value":"off"},"attribute_id":"switch"}
2022-03-15T01:10:59.052548077+00:00 TRACE Z-Wave Switch Found ZwaveDispatcher handler in zwave_switch
2022-03-15T01:10:59.057910744+00:00 DEBUG Z-Wave Switch Minoston Switch 1 device thread event handled
2022-03-15T01:10:59.066424077+00:00 TRACE Z-Wave Switch Received event with handler unnamed
2022-03-15T01:10:59.080169077+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> received Z-Wave command: {args={value="OFF_DISABLE"}, cmd_class="SWITCH_BINARY", cmd_id="REPORT", dst_channels={0}, encap="NONE", payload="\x00", src_channel=1, version=1}
2022-03-15T01:10:59.102382077+00:00 TRACE Z-Wave Switch Found ZwaveDispatcher handler in zwave_switch
2022-03-15T01:10:59.109113744+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> emitting event: {"component_id":"switch1","capability_id":"switch","state":{"value":"off"},"attribute_id":"switch"}
2022-03-15T01:10:59.127571077+00:00 TRACE Z-Wave Switch Found ZwaveDispatcher handler in zwave_switch
2022-03-15T01:10:59.135194077+00:00 DEBUG Z-Wave Switch Minoston Switch 1 device thread event handled
2022-03-15T01:10:59.668345410+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> sending Z-Wave command: {args={}, cmd_class="SWITCH_BINARY", cmd_id="GET", dst_channels={}, encap="AUTO", payload="", src_channel=0, version=1}
2022-03-15T01:10:59.861476077+00:00 TRACE Z-Wave Switch Z-Wave command(2f4bbcb3) queued for radio transmission: CC:Switch Binary, CID:0x02
2022-03-15T01:10:59.876744077+00:00 DEBUG Z-Wave Switch Minoston Switch 1 device thread event handled
2022-03-15T01:11:00.028061411+00:00 TRACE Z-Wave Switch Z-Wave command(2f4bbcb3) transmit status: TRANSMIT_COMPLETE_OK
2022-03-15T01:11:00.303298411+00:00 TRACE Z-Wave Switch Received event with handler unnamed
2022-03-15T01:11:00.528027411+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> received Z-Wave command: {args={value="OFF_DISABLE"}, cmd_class="SWITCH_BINARY", cmd_id="REPORT", dst_channels={}, encap="S2_UNAUTH", payload="\x00", src_channel=0, version=1}
2022-03-15T01:11:00.578730078+00:00 TRACE Z-Wave Switch Found ZwaveDispatcher handler in zwave_switch
2022-03-15T01:11:00.603733078+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> emitting event: {"component_id":"main","capability_id":"switch","state":{"value":"off"},"attribute_id":"switch"}
2022-03-15T01:11:00.646312078+00:00 TRACE Z-Wave Switch Found ZwaveDispatcher handler in zwave_switch
2022-03-15T01:11:00.665149411+00:00 DEBUG Z-Wave Switch Minoston Switch 1 device thread event handled
2022-03-15T01:11:06.680220747+00:00 TRACE Z-Wave Switch Received event with handler capability
2022-03-15T01:11:06.708919747+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> received command: {"component":"switch1","capability":"switch","command":"on","args":[],"positional_args":[]}
2022-03-15T01:11:06.733535414+00:00 TRACE Z-Wave Switch Found CapabilityCommandDispatcher handler in zwave_switch
2022-03-15T01:11:06.739062747+00:00 TRACE Z-Wave Switch SWITCH_BINARY supported.
2022-03-15T01:11:06.747001414+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> sending Z-Wave command: {args={duration=0, target_value="ON_ENABLE"}, cmd_class="SWITCH_BINARY", cmd_id="SET", dst_channels={1}, encap="AUTO", payload="\xFF\x00", src_channel=0, version=2}
2022-03-15T01:11:06.837427747+00:00 TRACE Z-Wave Switch Z-Wave command(b5ac2d1e) queued for radio transmission: CC:Switch Binary, CID:0x01
2022-03-15T01:11:06.848705081+00:00 DEBUG Z-Wave Switch Minoston Switch 1 device thread event handled
2022-03-15T01:11:06.855763747+00:00 DEBUG Z-Wave Switch Minoston Switch 1 device thread event handled
2022-03-15T01:11:07.056969414+00:00 TRACE Z-Wave Switch Z-Wave command(b5ac2d1e) transmit status: TRANSMIT_COMPLETE_OK
2022-03-15T01:11:07.139019747+00:00 TRACE Z-Wave Switch Received event with handler unnamed
2022-03-15T01:11:07.148420414+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> received Z-Wave command: {args={value="ON_ENABLE"}, cmd_class="SWITCH_BINARY", cmd_id="REPORT", dst_channels={}, encap="NONE", payload="\xFF", src_channel=0, version=1}
2022-03-15T01:11:07.162403414+00:00 TRACE Z-Wave Switch Found ZwaveDispatcher handler in zwave_switch
2022-03-15T01:11:07.168879081+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> emitting event: {"component_id":"main","capability_id":"switch","state":{"value":"on"},"attribute_id":"switch"}
2022-03-15T01:11:07.190644414+00:00 TRACE Z-Wave Switch Found ZwaveDispatcher handler in zwave_switch
2022-03-15T01:11:07.196228747+00:00 DEBUG Z-Wave Switch Minoston Switch 1 device thread event handled
2022-03-15T01:11:07.403655748+00:00 TRACE Z-Wave Switch Received event with handler unnamed
2022-03-15T01:11:07.416759414+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> received Z-Wave command: {args={value="ON_ENABLE"}, cmd_class="SWITCH_BINARY", cmd_id="REPORT", dst_channels={0}, encap="NONE", payload="\xFF", src_channel=1, version=1}
2022-03-15T01:11:07.440708414+00:00 TRACE Z-Wave Switch Found ZwaveDispatcher handler in zwave_switch
2022-03-15T01:11:07.447208748+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> emitting event: {"component_id":"switch1","capability_id":"switch","state":{"value":"on"},"attribute_id":"switch"}
2022-03-15T01:11:07.465979414+00:00 TRACE Z-Wave Switch Found ZwaveDispatcher handler in zwave_switch
2022-03-15T01:11:07.471970748+00:00 DEBUG Z-Wave Switch Minoston Switch 1 device thread event handled
2022-03-15T01:11:07.858116081+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> sending Z-Wave command: {args={}, cmd_class="SWITCH_BINARY", cmd_id="GET", dst_channels={1}, encap="AUTO", payload="", src_channel=0, version=1}
2022-03-15T01:11:07.880494414+00:00 TRACE Z-Wave Switch Z-Wave command(1d2ceaac) queued for radio transmission: CC:Switch Binary, CID:0x02
2022-03-15T01:11:07.885795414+00:00 DEBUG Z-Wave Switch Minoston Switch 1 device thread event handled
2022-03-15T01:11:08.088884748+00:00 TRACE Z-Wave Switch Z-Wave command(1d2ceaac) transmit status: TRANSMIT_COMPLETE_OK
2022-03-15T01:11:08.111447081+00:00 TRACE Z-Wave Switch Received event with handler unnamed
2022-03-15T01:11:08.120866415+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> received Z-Wave command: {args={value="ON_ENABLE"}, cmd_class="SWITCH_BINARY", cmd_id="REPORT", dst_channels={0}, encap="S2_UNAUTH", payload="\xFF", src_channel=1, version=1}
2022-03-15T01:11:08.141554748+00:00 TRACE Z-Wave Switch Found ZwaveDispatcher handler in zwave_switch
2022-03-15T01:11:08.148392415+00:00 INFO Z-Wave Switch <ZwaveDevice: 380f26ec-50d9-4601-9798-d96b3df96eb7 [70] (Minoston Switch 1)> emitting event: {"component_id":"switch1","capability_id":"switch","state":{"value":"on"},"attribute_id":"switch"}
2022-03-15T01:11:08.163895415+00:00 TRACE Z-Wave Switch Found ZwaveDispatcher handler in zwave_switch
2022-03-15T01:11:08.169330748+00:00 DEBUG Z-Wave Switch Minoston Switch 1 device thread event handled

```

---

<div class="post-metadata">

**Author:** ![nayelyz](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nayelyz](https://community.smartthings.com/u/nayelyz)\
**Post date:** [March 16, 2022, 11:48pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/13 "2022-03-16T23:48:12Z")

</div>

Thank you for the information, @Terri_Baker.  
I already reported it to the engineering team. Please, let me know the results of your tests using the driver from Mariano

> [@\[ST Edge\] Issues with multi-component devices and third-party integrations](https://community.smartthings.com/t/st-edge-issues-with-multi-component-devices-and-third-party-integrations/236844/15):
>
> I published it again, just in case. If you have the CLI in use you can install it immediately with the command smartthings edge:drivers:install

---

<div class="post-metadata">

**Author:** ![Terri\_Baker](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/terri_baker/32/95826_2.png) [@Terri\_Baker](https://community.smartthings.com/u/Terri_Baker)\
**Post date:** [March 17, 2022, 4:16am UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/14 "2022-03-17T04:16:27Z")

</div>

> [@nayelyz](#):
>
> Please, let me know the results of your tests using the driver from Mariano

[This now works with Mariano’s driver](https://community.smartthings.com/t/st-edge-issues-with-multi-component-devices-and-third-party-integrations/236844/16)

---

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [March 17, 2022, 10:17pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/15 "2022-03-17T22:17:21Z")

</div>

> [@Terri\_Baker](#):
>
> > [@nayelyz](#):
> >
> > Please, let me know the results of your tests using the driver from Mariano
> 
> [This now works with Mariano’s driver](https://community.smartthings.com/t/st-edge-issues-with-multi-component-devices-and-third-party-integrations/236844/16)

@nayelyz,  
For what it’s worth, here’s what I changed in the main **init.lua**

I changed the assignment code of the map **endpoints to component\_id and from component\_id to endpoint** called in lifecycle init, in a similar way to what smartthing did in the fibaro double switch subdriver to solve something similar.

the difference is that this must work for others multicomponent devices of the driver, in fact I removed the call to the init lifecycle function that assigns map the endpoint and component\_id in the Fibaro double switch subdriver that smartthings added and it continues to work perfectly.

This is the changed code replacing the original commented with - -

```auto
--- Map component to end_points(channels)
---
--- @param device st.zwave.Device
--- @param component_id string ID
--- @return table dst_channels destination channels e.g. {2} for Z-Wave channel 2 or {} for unencapsulated
local function component_to_endpoint(device, component_id)
  --local ep_num = component_id:match("switch(%d)")
  --return { ep_num and tonumber(ep_num) } 
  local ep_num = tonumber(component_id:match("switch(%d)"))
  if ep_num == nil then
    return {}
  else
    return {ep_num + 1}
  end
end

```

```auto
--- Map end_point(channel) to Z-Wave endpoint 9 channel)
---
--- @param device st.zwave.Device
--- @param ep number the endpoint(Z-Wave channel) ID to find the component for
--- @return string the component ID the endpoint matches to
local function endpoint_to_component(device, ep)
  --local switch_comp = string.format("switch%d", ep)
   local switch_comp = string.format("switch%d", ep - 1)
  if device.profile.components[switch_comp] ~= nil then
    return switch_comp
  else
   return "main"
  end
end

```

```auto
--- Initialize device
---
--- @param self st.zwave.Driver
--- @param device st.zwave.Device
local device_init = function(self, device)
  device:set_component_to_endpoint_fn(component_to_endpoint)
  device:set_endpoint_to_component_fn(endpoint_to_component)
end

```

---

<div class="post-metadata">

**Author:** ![Terri\_Baker](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/terri_baker/32/95826_2.png) [@Terri\_Baker](https://community.smartthings.com/u/Terri_Baker)\
**Post date:** [July 17, 2022, 7:31pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/16 "2022-07-17T19:31:53Z")

</div>

@nayelyz and @Mariano_Colmenarejo  
I have lost the ability to control the switch 1 from the app or device using either stock or custom edge driver. Not sure when this started but I just noticed today.  
Switch 1 shows offline cloud. Main switch still works. I tried removing and reading device which did not solve the issue.

---

<div class="post-metadata">

**Author:** ![jkp](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/jkp/32/117130_2.png) [@jkp](https://community.smartthings.com/u/jkp)\
**Post date:** [July 17, 2022, 7:44pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/17 "2022-07-17T19:44:08Z")

</div>

does it work from [https://account.smartthings.com](https://account.smartthings.com) ?

---

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [July 17, 2022, 8:03pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/18 "2022-07-17T20:03:31Z")

</div>

> [@Terri\_Baker](#):
>
> Switch 1 shows offline cloud. Main switch still works. I tried removing and reading device which did not solve the issue.

Hi @Terri_Baker

What driver is it and what device?

I use 2 fibaro double switch and they work well

---

<div class="post-metadata">

**Author:** ![Terri\_Baker](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/terri_baker/32/95826_2.png) [@Terri\_Baker](https://community.smartthings.com/u/Terri_Baker)\
**Post date:** [July 17, 2022, 10:01pm UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/19 "2022-07-17T22:01:15Z")

</div>

> [@Terri\_Baker](#):
>
> Minoston Z-Wave Plug Outlet Dual On/Off Switch Outlet (MP20Z) using the stock z-wave switch driver.  
> mfr:0312 prod:FF00 model:FF05

It was working great with the z-wave switch mc or stock z-wave switch drivers until it wasn’t. I still have an evalogik 2 ch switch that works fine. Mariano you added both of these to your driver a while back.

> [@jkp](#):
>
> does it work from [https://account.smartthings.com](https://account.smartthings.com)

It doesn’t show the second switch

---

<div class="post-metadata">

**Author:** ![Mariano\_Colmenarejo](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/mariano_colmenarejo/32/220132_2.png) [@Mariano\_Colmenarejo](https://community.smartthings.com/u/Mariano_Colmenarejo)\
**Post date:** [July 18, 2022, 7:42am UTC](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733/20 "2022-07-18T07:42:20Z")

</div>

> [@Terri\_Baker](#):
>
> It was working great with the z-wave switch mc or stock z-wave switch drivers until it wasn’t. I still have an evalogik 2 ch switch that works fine. Mariano you added both of these to your driver a while back.

Not that this could happen.  
Did you try to make a refresh slipping your finger on the screen?  
Did you try to turn it on or off from a routine or scene or from mechanical switch?

If this does not remove the cloud broken, only occurs to me that you could make a driver change, erase cache and change the driver or reboot hub.

> [@Terri\_Baker](#):
>
> > [@jkp](#):
> >
> > [https://account.smartthings.com](https://account.smartthings.com)
> 
> It doesn’t show the second switch

In [my.smartthings.com](http://my.smartthings.com) the secondary components are not seen and the Custom Capabilities not work. This website is very forgotten by SmartThings

[Next page](https://community.smartthings.com/t/st-edge-issue-with-the-z-wave-switch-driver/235733.md?page=2)
