[Edge drivers] MCO Home switch MH-S311, MH-S312 & MH-S314

I did the changes @Mariano_Colmenarejo


Switch came out as 4 tiles. Still cannot control on/off from app.

2023-07-16T12:29:16.055275606+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:16.071763273+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes="KEY_RELEASED", scene_number=1, sequence_number=92, slow_refresh=false}, cmd_class="CENTRAL_SCENE", cmd_id="NOTIFICATION", dst_channels={}, encap="NONE", payload="\x5C\x01\x01", src_channel=0, version=3}
2023-07-16T12:29:16.123447273+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:16.141606939+00:00 WARN Z-Wave Switch INT  Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:16.153513939+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:16.154619939+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:16.156246606+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class="BASIC", cmd_id="REPORT", dst_channels={1}, encap="NONE", payload="\xFF", src_channel=1, version=1}
2023-07-16T12:29:16.183543939+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch -> multi metering switch
2023-07-16T12:29:16.184369939+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> emitting event: {"state":{"value":"on"},"capability_id":"switch","component_id":"main","attribute_id":"switch"}
2023-07-16T12:29:16.186091273+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:20.804399940+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:20.812815606+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class="BASIC", cmd_id="REPORT", dst_channels={2}, encap="NONE", payload="\xFF", src_channel=2, version=1}
2023-07-16T12:29:20.826464606+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch -> multi metering switch
2023-07-16T12:29:20.853240273+00:00 INFO Z-Wave Switch INT  <ZwaveChildDevice: a7d5d0c7-14ee-491c-9585-14c3bd6272b7 [08800706-b176-495d-8aa5-b3513b118635][02] (WYFY Switch 2)> emitting event: {"state":{"value":"on"},"capability_id":"switch","component_id":"main","attribute_id":"switch"}
2023-07-16T12:29:20.860716940+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:20.867583273+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:20.868846607+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes="KEY_RELEASED", scene_number=2, sequence_number=93, slow_refresh=false}, cmd_class="CENTRAL_SCENE", cmd_id="NOTIFICATION", dst_channels={}, encap="NONE", payload="\x5D\x01\x02", src_channel=0, version=3}
2023-07-16T12:29:20.885745940+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:20.892709940+00:00 WARN Z-Wave Switch INT  Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:20.896182607+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:22.471034940+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:22.484399940+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class="BASIC", cmd_id="REPORT", dst_channels={3}, encap="NONE", payload="\xFF", src_channel=3, version=1}
2023-07-16T12:29:22.492715273+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch -> multi metering switch
2023-07-16T12:29:22.503248273+00:00 INFO Z-Wave Switch INT  <ZwaveChildDevice: a5eb1d40-b3b5-4ab2-a02d-1dd9f27d4f78 [08800706-b176-495d-8aa5-b3513b118635][03] (WYFY Switch 3)> emitting event: {"state":{"value":"on"},"capability_id":"switch","component_id":"main","attribute_id":"switch"}
2023-07-16T12:29:22.543201607+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:22.544049273+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:22.547790273+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes="KEY_RELEASED", scene_number=3, sequence_number=94, slow_refresh=false}, cmd_class="CENTRAL_SCENE", cmd_id="NOTIFICATION", dst_channels={}, encap="NONE", payload="\x5E\x01\x03", src_channel=0, version=3}
2023-07-16T12:29:22.565321940+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:22.572309607+00:00 WARN Z-Wave Switch INT  Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:22.577016940+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:23.908542274+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:23.916233274+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes="KEY_RELEASED", scene_number=4, sequence_number=95, slow_refresh=false}, cmd_class="CENTRAL_SCENE", cmd_id="NOTIFICATION", dst_channels={}, encap="NONE", payload="\x5F\x01\x04", src_channel=0, version=3}
2023-07-16T12:29:23.920661274+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:23.951109940+00:00 WARN Z-Wave Switch INT  Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:23.955354607+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:23.964072274+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:23.965334607+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class="BASIC", cmd_id="REPORT", dst_channels={}, encap="NONE", payload="\xFF", src_channel=0, version=1}
2023-07-16T12:29:23.968294940+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch -> multi metering switch
2023-07-16T12:29:23.969469607+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:23.970664607+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:23.979810607+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class="BASIC", cmd_id="REPORT", dst_channels={4}, encap="NONE", payload="\xFF", src_channel=4, version=1}
2023-07-16T12:29:23.989906607+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch -> multi metering switch
2023-07-16T12:29:24.000130940+00:00 INFO Z-Wave Switch INT  <ZwaveChildDevice: 79fabdf8-81b4-4590-a5fa-a4161064f722 [08800706-b176-495d-8aa5-b3513b118635][04] (WYFY Switch 4)> emitting event: {"state":{"value":"on"},"capability_id":"switch","component_id":"main","attribute_id":"switch"}
2023-07-16T12:29:24.010210274+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:29.704277941+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:29.706128274+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes="KEY_RELEASED", scene_number=1, sequence_number=96, slow_refresh=false}, cmd_class="CENTRAL_SCENE", cmd_id="NOTIFICATION", dst_channels={}, encap="NONE", payload="\x60\x01\x01", src_channel=0, version=3}
2023-07-16T12:29:29.728511941+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:29.741765608+00:00 WARN Z-Wave Switch INT  Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:29.753132608+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:29.754222608+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:29.755887274+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=0}, cmd_class="BASIC", cmd_id="REPORT", dst_channels={1}, encap="NONE", payload="\x00", src_channel=1, version=1}
2023-07-16T12:29:29.783605941+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch -> multi metering switch
2023-07-16T12:29:29.784420608+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> emitting event: {"state":{"value":"off"},"capability_id":"switch","component_id":"main","attribute_id":"switch"}
2023-07-16T12:29:29.786128941+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:30.437828274+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:30.445613941+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=0}, cmd_class="BASIC", cmd_id="REPORT", dst_channels={2}, encap="NONE", payload="\x00", src_channel=2, version=1}
2023-07-16T12:29:30.537464608+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch -> multi metering switch
2023-07-16T12:29:30.548009941+00:00 INFO Z-Wave Switch INT  <ZwaveChildDevice: a7d5d0c7-14ee-491c-9585-14c3bd6272b7 [08800706-b176-495d-8aa5-b3513b118635][02] (WYFY Switch 2)> emitting event: {"state":{"value":"off"},"capability_id":"switch","component_id":"main","attribute_id":"switch"}
2023-07-16T12:29:30.576829941+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:30.577670941+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:30.579308941+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes="KEY_RELEASED", scene_number=2, sequence_number=97, slow_refresh=false}, cmd_class="CENTRAL_SCENE", cmd_id="NOTIFICATION", dst_channels={}, encap="NONE", payload="\x61\x01\x02", src_channel=0, version=3}
2023-07-16T12:29:30.598313941+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:30.605955274+00:00 WARN Z-Wave Switch INT  Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:30.608476941+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:31.111170608+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:31.122838608+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=0}, cmd_class="BASIC", cmd_id="REPORT", dst_channels={3}, encap="NONE", payload="\x00", src_channel=3, version=1}
2023-07-16T12:29:31.129663608+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch -> multi metering switch
2023-07-16T12:29:31.140565941+00:00 INFO Z-Wave Switch INT  <ZwaveChildDevice: a5eb1d40-b3b5-4ab2-a02d-1dd9f27d4f78 [08800706-b176-495d-8aa5-b3513b118635][03] (WYFY Switch 3)> emitting event: {"state":{"value":"off"},"capability_id":"switch","component_id":"main","attribute_id":"switch"}
2023-07-16T12:29:31.168936608+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:31.170057608+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:31.181834608+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes="KEY_RELEASED", scene_number=3, sequence_number=98, slow_refresh=false}, cmd_class="CENTRAL_SCENE", cmd_id="NOTIFICATION", dst_channels={}, encap="NONE", payload="\x62\x01\x03", src_channel=0, version=3}
2023-07-16T12:29:31.189345608+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:31.196974941+00:00 WARN Z-Wave Switch INT  Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:31.198287608+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:31.830953941+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:31.835278941+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes="KEY_RELEASED", scene_number=4, sequence_number=99, slow_refresh=false}, cmd_class="CENTRAL_SCENE", cmd_id="NOTIFICATION", dst_channels={}, encap="NONE", payload="\x63\x01\x04", src_channel=0, version=3}
2023-07-16T12:29:31.849329941+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:31.872778274+00:00 WARN Z-Wave Switch INT  Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:31.884767941+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:31.885627941+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:31.887276274+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=0}, cmd_class="BASIC", cmd_id="REPORT", dst_channels={}, encap="NONE", payload="\x00", src_channel=0, version=1}
2023-07-16T12:29:31.889110274+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch -> multi metering switch
2023-07-16T12:29:31.890293274+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:31.901676608+00:00 TRACE Z-Wave Switch INT  Received event with handler unnamed
2023-07-16T12:29:31.902950941+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=0}, cmd_class="BASIC", cmd_id="REPORT", dst_channels={4}, encap="NONE", payload="\x00", src_channel=4, version=1}
2023-07-16T12:29:31.923122941+00:00 TRACE Z-Wave Switch INT  Found ZwaveDispatcher handler in zwave_switch -> multi metering switch
2023-07-16T12:29:31.934032274+00:00 INFO Z-Wave Switch INT  <ZwaveChildDevice: 79fabdf8-81b4-4590-a5fa-a4161064f722 [08800706-b176-495d-8aa5-b3513b118635][04] (WYFY Switch 4)> emitting event: {"state":{"value":"off"},"capability_id":"switch","component_id":"main","attribute_id":"switch"}
2023-07-16T12:29:31.943937274+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:38.354352275+00:00 TRACE Z-Wave Switch INT  Received event with handler capability
2023-07-16T12:29:38.401693942+00:00 TRACE Z-Wave Switch INT  Z-Wave command(66a0c7fc) queued for radio transmission: CC:Switch Multi-level, CID:0x01
2023-07-16T12:29:38.404946275+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received command: {"component":"main","command":"on","positional_args":{},"args":{},"capability":"switch"}
2023-07-16T12:29:38.408477942+00:00 TRACE Z-Wave Switch INT  Found CapabilityCommandDispatcher handler in zwave_switch
2023-07-16T12:29:38.423500609+00:00 TRACE Z-Wave Switch INT  SWITCH_MULTILEVEL supported.
2023-07-16T12:29:38.424732609+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={duration="default", value="ON_ENABLE"}, cmd_class="SWITCH_MULTILEVEL", cmd_id="SET", dst_channels={1}, encap="AUTO", payload="\xFF\xFF", src_channel=0, version=2}
2023-07-16T12:29:38.446209609+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:38.461031275+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:38.521645275+00:00 TRACE Z-Wave Switch INT  Z-Wave command(66a0c7fc) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:43.362089609+00:00 TRACE Z-Wave Switch INT  Received event with handler capability
2023-07-16T12:29:43.454352609+00:00 TRACE Z-Wave Switch INT  Z-Wave command(7fa45c6b) queued for radio transmission: CC:Switch Multi-level, CID:0x01
2023-07-16T12:29:43.462001943+00:00 INFO Z-Wave Switch INT  <ZwaveChildDevice: a7d5d0c7-14ee-491c-9585-14c3bd6272b7 [08800706-b176-495d-8aa5-b3513b118635][02] (WYFY Switch 2)> received command: {"component":"main","command":"on","positional_args":{},"args":{},"capability":"switch"}
2023-07-16T12:29:43.472593276+00:00 TRACE Z-Wave Switch INT  Found CapabilityCommandDispatcher handler in zwave_switch
2023-07-16T12:29:43.473782943+00:00 TRACE Z-Wave Switch INT  SWITCH_MULTILEVEL supported.
2023-07-16T12:29:43.474945943+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={duration="default", value="ON_ENABLE"}, cmd_class="SWITCH_MULTILEVEL", cmd_id="SET", dst_channels={2}, encap="AUTO", payload="\xFF\xFF", src_channel=0, version=2}
2023-07-16T12:29:43.494195943+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 2 device thread event handled
2023-07-16T12:29:43.498278943+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 2 device thread event handled
2023-07-16T12:29:43.526696609+00:00 TRACE Z-Wave Switch INT  Z-Wave command(559161ac) queued for radio transmission: CC:Switch Multi-level, CID:0x02
2023-07-16T12:29:43.542393943+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={}, cmd_class="SWITCH_MULTILEVEL", cmd_id="GET", dst_channels={1}, encap="AUTO", payload="", src_channel=0, version=1}
2023-07-16T12:29:43.549754609+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 1 device thread event handled
2023-07-16T12:29:43.629710276+00:00 TRACE Z-Wave Switch INT  Z-Wave command(7fa45c6b) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:43.700649276+00:00 TRACE Z-Wave Switch INT  Z-Wave command(559161ac) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:48.273120276+00:00 TRACE Z-Wave Switch INT  Received event with handler capability
2023-07-16T12:29:48.371701276+00:00 TRACE Z-Wave Switch INT  Z-Wave command(2077a2a7) queued for radio transmission: CC:Switch Multi-level, CID:0x01
2023-07-16T12:29:48.375008610+00:00 INFO Z-Wave Switch INT  <ZwaveChildDevice: a5eb1d40-b3b5-4ab2-a02d-1dd9f27d4f78 [08800706-b176-495d-8aa5-b3513b118635][03] (WYFY Switch 3)> received command: {"component":"main","command":"on","positional_args":{},"args":{},"capability":"switch"}
2023-07-16T12:29:48.392414943+00:00 TRACE Z-Wave Switch INT  Found CapabilityCommandDispatcher handler in zwave_switch
2023-07-16T12:29:48.393616276+00:00 TRACE Z-Wave Switch INT  SWITCH_MULTILEVEL supported.
2023-07-16T12:29:48.394791610+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={duration="default", value="ON_ENABLE"}, cmd_class="SWITCH_MULTILEVEL", cmd_id="SET", dst_channels={3}, encap="AUTO", payload="\xFF\xFF", src_channel=0, version=2}
2023-07-16T12:29:48.438865276+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 3 device thread event handled
2023-07-16T12:29:48.450456610+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 3 device thread event handled
2023-07-16T12:29:48.512439276+00:00 TRACE Z-Wave Switch INT  Z-Wave command(5089d84d) queued for radio transmission: CC:Switch Multi-level, CID:0x02
2023-07-16T12:29:48.521678276+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={}, cmd_class="SWITCH_MULTILEVEL", cmd_id="GET", dst_channels={2}, encap="AUTO", payload="", src_channel=0, version=1}
2023-07-16T12:29:48.530321276+00:00 TRACE Z-Wave Switch INT  Z-Wave command(2077a2a7) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:48.553168610+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 2 device thread event handled
2023-07-16T12:29:48.629705610+00:00 TRACE Z-Wave Switch INT  Z-Wave command(5089d84d) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:50.843216943+00:00 TRACE Z-Wave Switch INT  Received event with handler capability
2023-07-16T12:29:50.876633610+00:00 TRACE Z-Wave Switch INT  Z-Wave command(c32804c5) queued for radio transmission: CC:Switch Multi-level, CID:0x01
2023-07-16T12:29:50.879902943+00:00 INFO Z-Wave Switch INT  <ZwaveChildDevice: 79fabdf8-81b4-4590-a5fa-a4161064f722 [08800706-b176-495d-8aa5-b3513b118635][04] (WYFY Switch 4)> received command: {"component":"main","command":"on","positional_args":{},"args":{},"capability":"switch"}
2023-07-16T12:29:50.881240943+00:00 TRACE Z-Wave Switch INT  Found CapabilityCommandDispatcher handler in zwave_switch
2023-07-16T12:29:50.882539610+00:00 TRACE Z-Wave Switch INT  SWITCH_MULTILEVEL supported.
2023-07-16T12:29:50.883696943+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={duration="default", value="ON_ENABLE"}, cmd_class="SWITCH_MULTILEVEL", cmd_id="SET", dst_channels={4}, encap="AUTO", payload="\xFF\xFF", src_channel=0, version=2}
2023-07-16T12:29:50.932500610+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 4 device thread event handled
2023-07-16T12:29:50.935662610+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 4 device thread event handled
2023-07-16T12:29:51.029633943+00:00 TRACE Z-Wave Switch INT  Z-Wave command(c32804c5) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:53.451764944+00:00 TRACE Z-Wave Switch INT  Z-Wave command(03fd3e84) queued for radio transmission: CC:Switch Multi-level, CID:0x02
2023-07-16T12:29:53.453277277+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={}, cmd_class="SWITCH_MULTILEVEL", cmd_id="GET", dst_channels={3}, encap="AUTO", payload="", src_channel=0, version=1}
2023-07-16T12:29:53.462856610+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 3 device thread event handled
2023-07-16T12:29:53.529715610+00:00 TRACE Z-Wave Switch INT  Z-Wave command(03fd3e84) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:55.950123277+00:00 TRACE Z-Wave Switch INT  Z-Wave command(1750a59c) queued for radio transmission: CC:Switch Multi-level, CID:0x02
2023-07-16T12:29:55.951678277+00:00 INFO Z-Wave Switch INT  <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={}, cmd_class="SWITCH_MULTILEVEL", cmd_id="GET", dst_channels={4}, encap="AUTO", payload="", src_channel=0, version=1}
2023-07-16T12:29:55.960837944+00:00 DEBUG Z-Wave Switch INT  WYFY Switch 4 device thread event handled
2023-07-16T12:29:56.037743944+00:00 TRACE Z-Wave Switch INT  Z-Wave command(1750a59c) transmit status: TRANSMIT_COMPLETE_OK

Log are as above

@zamir_amran

Please, could you remove the format to logs?

@Mariano_Colmenarejo you mean like this?

2023-07-16T12:29:16.055275606+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:16.071763273+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes=“KEY_RELEASED”, scene_number=1, sequence_number=92, slow_refresh=false}, cmd_class=“CENTRAL_SCENE”, cmd_id=“NOTIFICATION”, dst_channels={}, encap=“NONE”, payload=“\x5C\x01\x01”, src_channel=0, version=3}
2023-07-16T12:29:16.123447273+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:16.141606939+00:00 WARN Z-Wave Switch INT Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:16.153513939+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:16.154619939+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:16.156246606+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={1}, encap=“NONE”, payload=“\xFF”, src_channel=1, version=1}
2023-07-16T12:29:16.183543939+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-16T12:29:16.184369939+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> emitting event: {“state”:{“value”:“on”},“capability_id”:“switch”,“component_id”:“main”,“attribute_id”:“switch”}
2023-07-16T12:29:16.186091273+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:20.804399940+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:20.812815606+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={2}, encap=“NONE”, payload=“\xFF”, src_channel=2, version=1}
2023-07-16T12:29:20.826464606+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-16T12:29:20.853240273+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: a7d5d0c7-14ee-491c-9585-14c3bd6272b7 [08800706-b176-495d-8aa5-b3513b118635][02] (WYFY Switch 2)> emitting event: {“state”:{“value”:“on”},“capability_id”:“switch”,“component_id”:“main”,“attribute_id”:“switch”}
2023-07-16T12:29:20.860716940+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:20.867583273+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:20.868846607+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes=“KEY_RELEASED”, scene_number=2, sequence_number=93, slow_refresh=false}, cmd_class=“CENTRAL_SCENE”, cmd_id=“NOTIFICATION”, dst_channels={}, encap=“NONE”, payload=“\x5D\x01\x02”, src_channel=0, version=3}
2023-07-16T12:29:20.885745940+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:20.892709940+00:00 WARN Z-Wave Switch INT Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:20.896182607+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:22.471034940+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:22.484399940+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={3}, encap=“NONE”, payload=“\xFF”, src_channel=3, version=1}
2023-07-16T12:29:22.492715273+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-16T12:29:22.503248273+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: a5eb1d40-b3b5-4ab2-a02d-1dd9f27d4f78 [08800706-b176-495d-8aa5-b3513b118635][03] (WYFY Switch 3)> emitting event: {“state”:{“value”:“on”},“capability_id”:“switch”,“component_id”:“main”,“attribute_id”:“switch”}
2023-07-16T12:29:22.543201607+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:22.544049273+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:22.547790273+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes=“KEY_RELEASED”, scene_number=3, sequence_number=94, slow_refresh=false}, cmd_class=“CENTRAL_SCENE”, cmd_id=“NOTIFICATION”, dst_channels={}, encap=“NONE”, payload=“\x5E\x01\x03”, src_channel=0, version=3}
2023-07-16T12:29:22.565321940+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:22.572309607+00:00 WARN Z-Wave Switch INT Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:22.577016940+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:23.908542274+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:23.916233274+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes=“KEY_RELEASED”, scene_number=4, sequence_number=95, slow_refresh=false}, cmd_class=“CENTRAL_SCENE”, cmd_id=“NOTIFICATION”, dst_channels={}, encap=“NONE”, payload=“\x5F\x01\x04”, src_channel=0, version=3}
2023-07-16T12:29:23.920661274+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:23.951109940+00:00 WARN Z-Wave Switch INT Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:23.955354607+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:23.964072274+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:23.965334607+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={}, encap=“NONE”, payload=“\xFF”, src_channel=0, version=1}
2023-07-16T12:29:23.968294940+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-16T12:29:23.969469607+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:23.970664607+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:23.979810607+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={4}, encap=“NONE”, payload=“\xFF”, src_channel=4, version=1}
2023-07-16T12:29:23.989906607+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-16T12:29:24.000130940+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: 79fabdf8-81b4-4590-a5fa-a4161064f722 [08800706-b176-495d-8aa5-b3513b118635][04] (WYFY Switch 4)> emitting event: {“state”:{“value”:“on”},“capability_id”:“switch”,“component_id”:“main”,“attribute_id”:“switch”}
2023-07-16T12:29:24.010210274+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:29.704277941+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:29.706128274+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes=“KEY_RELEASED”, scene_number=1, sequence_number=96, slow_refresh=false}, cmd_class=“CENTRAL_SCENE”, cmd_id=“NOTIFICATION”, dst_channels={}, encap=“NONE”, payload=“\x60\x01\x01”, src_channel=0, version=3}
2023-07-16T12:29:29.728511941+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:29.741765608+00:00 WARN Z-Wave Switch INT Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:29.753132608+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:29.754222608+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:29.755887274+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=0}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={1}, encap=“NONE”, payload=“\x00”, src_channel=1, version=1}
2023-07-16T12:29:29.783605941+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-16T12:29:29.784420608+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> emitting event: {“state”:{“value”:“off”},“capability_id”:“switch”,“component_id”:“main”,“attribute_id”:“switch”}
2023-07-16T12:29:29.786128941+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:30.437828274+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:30.445613941+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=0}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={2}, encap=“NONE”, payload=“\x00”, src_channel=2, version=1}
2023-07-16T12:29:30.537464608+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-16T12:29:30.548009941+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: a7d5d0c7-14ee-491c-9585-14c3bd6272b7 [08800706-b176-495d-8aa5-b3513b118635][02] (WYFY Switch 2)> emitting event: {“state”:{“value”:“off”},“capability_id”:“switch”,“component_id”:“main”,“attribute_id”:“switch”}
2023-07-16T12:29:30.576829941+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:30.577670941+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:30.579308941+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes=“KEY_RELEASED”, scene_number=2, sequence_number=97, slow_refresh=false}, cmd_class=“CENTRAL_SCENE”, cmd_id=“NOTIFICATION”, dst_channels={}, encap=“NONE”, payload=“\x61\x01\x02”, src_channel=0, version=3}
2023-07-16T12:29:30.598313941+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:30.605955274+00:00 WARN Z-Wave Switch INT Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:30.608476941+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:31.111170608+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:31.122838608+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=0}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={3}, encap=“NONE”, payload=“\x00”, src_channel=3, version=1}
2023-07-16T12:29:31.129663608+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-16T12:29:31.140565941+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: a5eb1d40-b3b5-4ab2-a02d-1dd9f27d4f78 [08800706-b176-495d-8aa5-b3513b118635][03] (WYFY Switch 3)> emitting event: {“state”:{“value”:“off”},“capability_id”:“switch”,“component_id”:“main”,“attribute_id”:“switch”}
2023-07-16T12:29:31.168936608+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:31.170057608+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:31.181834608+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes=“KEY_RELEASED”, scene_number=3, sequence_number=98, slow_refresh=false}, cmd_class=“CENTRAL_SCENE”, cmd_id=“NOTIFICATION”, dst_channels={}, encap=“NONE”, payload=“\x62\x01\x03”, src_channel=0, version=3}
2023-07-16T12:29:31.189345608+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:31.196974941+00:00 WARN Z-Wave Switch INT Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:31.198287608+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:31.830953941+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:31.835278941+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={key_attributes=“KEY_RELEASED”, scene_number=4, sequence_number=99, slow_refresh=false}, cmd_class=“CENTRAL_SCENE”, cmd_id=“NOTIFICATION”, dst_channels={}, encap=“NONE”, payload=“\x63\x01\x04”, src_channel=0, version=3}
2023-07-16T12:29:31.849329941+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch
2023-07-16T12:29:31.872778274+00:00 WARN Z-Wave Switch INT Attempted to generate event for 08800706-b176-495d-8aa5-b3513b118635.main but it does not support capability Button
2023-07-16T12:29:31.884767941+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:31.885627941+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:31.887276274+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=0}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={}, encap=“NONE”, payload=“\x00”, src_channel=0, version=1}
2023-07-16T12:29:31.889110274+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-16T12:29:31.890293274+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:31.901676608+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-16T12:29:31.902950941+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received Z-Wave command: {args={value=0}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={4}, encap=“NONE”, payload=“\x00”, src_channel=4, version=1}
2023-07-16T12:29:31.923122941+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-16T12:29:31.934032274+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: 79fabdf8-81b4-4590-a5fa-a4161064f722 [08800706-b176-495d-8aa5-b3513b118635][04] (WYFY Switch 4)> emitting event: {“state”:{“value”:“off”},“capability_id”:“switch”,“component_id”:“main”,“attribute_id”:“switch”}
2023-07-16T12:29:31.943937274+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:38.354352275+00:00 TRACE Z-Wave Switch INT Received event with handler capability
2023-07-16T12:29:38.401693942+00:00 TRACE Z-Wave Switch INT Z-Wave command(66a0c7fc) queued for radio transmission: CC:Switch Multi-level, CID:0x01
2023-07-16T12:29:38.404946275+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> received command: {“component”:“main”,“command”:“on”,“positional_args”:{},“args”:{},“capability”:“switch”}
2023-07-16T12:29:38.408477942+00:00 TRACE Z-Wave Switch INT Found CapabilityCommandDispatcher handler in zwave_switch
2023-07-16T12:29:38.423500609+00:00 TRACE Z-Wave Switch INT SWITCH_MULTILEVEL supported.
2023-07-16T12:29:38.424732609+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={duration=“default”, value=“ON_ENABLE”}, cmd_class=“SWITCH_MULTILEVEL”, cmd_id=“SET”, dst_channels={1}, encap=“AUTO”, payload=“\xFF\xFF”, src_channel=0, version=2}
2023-07-16T12:29:38.446209609+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:38.461031275+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:38.521645275+00:00 TRACE Z-Wave Switch INT Z-Wave command(66a0c7fc) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:43.362089609+00:00 TRACE Z-Wave Switch INT Received event with handler capability
2023-07-16T12:29:43.454352609+00:00 TRACE Z-Wave Switch INT Z-Wave command(7fa45c6b) queued for radio transmission: CC:Switch Multi-level, CID:0x01
2023-07-16T12:29:43.462001943+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: a7d5d0c7-14ee-491c-9585-14c3bd6272b7 [08800706-b176-495d-8aa5-b3513b118635][02] (WYFY Switch 2)> received command: {“component”:“main”,“command”:“on”,“positional_args”:{},“args”:{},“capability”:“switch”}
2023-07-16T12:29:43.472593276+00:00 TRACE Z-Wave Switch INT Found CapabilityCommandDispatcher handler in zwave_switch
2023-07-16T12:29:43.473782943+00:00 TRACE Z-Wave Switch INT SWITCH_MULTILEVEL supported.
2023-07-16T12:29:43.474945943+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={duration=“default”, value=“ON_ENABLE”}, cmd_class=“SWITCH_MULTILEVEL”, cmd_id=“SET”, dst_channels={2}, encap=“AUTO”, payload=“\xFF\xFF”, src_channel=0, version=2}
2023-07-16T12:29:43.494195943+00:00 DEBUG Z-Wave Switch INT WYFY Switch 2 device thread event handled
2023-07-16T12:29:43.498278943+00:00 DEBUG Z-Wave Switch INT WYFY Switch 2 device thread event handled
2023-07-16T12:29:43.526696609+00:00 TRACE Z-Wave Switch INT Z-Wave command(559161ac) queued for radio transmission: CC:Switch Multi-level, CID:0x02
2023-07-16T12:29:43.542393943+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={}, cmd_class=“SWITCH_MULTILEVEL”, cmd_id=“GET”, dst_channels={1}, encap=“AUTO”, payload=“”, src_channel=0, version=1}
2023-07-16T12:29:43.549754609+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-16T12:29:43.629710276+00:00 TRACE Z-Wave Switch INT Z-Wave command(7fa45c6b) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:43.700649276+00:00 TRACE Z-Wave Switch INT Z-Wave command(559161ac) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:48.273120276+00:00 TRACE Z-Wave Switch INT Received event with handler capability
2023-07-16T12:29:48.371701276+00:00 TRACE Z-Wave Switch INT Z-Wave command(2077a2a7) queued for radio transmission: CC:Switch Multi-level, CID:0x01
2023-07-16T12:29:48.375008610+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: a5eb1d40-b3b5-4ab2-a02d-1dd9f27d4f78 [08800706-b176-495d-8aa5-b3513b118635][03] (WYFY Switch 3)> received command: {“component”:“main”,“command”:“on”,“positional_args”:{},“args”:{},“capability”:“switch”}
2023-07-16T12:29:48.392414943+00:00 TRACE Z-Wave Switch INT Found CapabilityCommandDispatcher handler in zwave_switch
2023-07-16T12:29:48.393616276+00:00 TRACE Z-Wave Switch INT SWITCH_MULTILEVEL supported.
2023-07-16T12:29:48.394791610+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={duration=“default”, value=“ON_ENABLE”}, cmd_class=“SWITCH_MULTILEVEL”, cmd_id=“SET”, dst_channels={3}, encap=“AUTO”, payload=“\xFF\xFF”, src_channel=0, version=2}
2023-07-16T12:29:48.438865276+00:00 DEBUG Z-Wave Switch INT WYFY Switch 3 device thread event handled
2023-07-16T12:29:48.450456610+00:00 DEBUG Z-Wave Switch INT WYFY Switch 3 device thread event handled
2023-07-16T12:29:48.512439276+00:00 TRACE Z-Wave Switch INT Z-Wave command(5089d84d) queued for radio transmission: CC:Switch Multi-level, CID:0x02
2023-07-16T12:29:48.521678276+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={}, cmd_class=“SWITCH_MULTILEVEL”, cmd_id=“GET”, dst_channels={2}, encap=“AUTO”, payload=“”, src_channel=0, version=1}
2023-07-16T12:29:48.530321276+00:00 TRACE Z-Wave Switch INT Z-Wave command(2077a2a7) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:48.553168610+00:00 DEBUG Z-Wave Switch INT WYFY Switch 2 device thread event handled
2023-07-16T12:29:48.629705610+00:00 TRACE Z-Wave Switch INT Z-Wave command(5089d84d) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:50.843216943+00:00 TRACE Z-Wave Switch INT Received event with handler capability
2023-07-16T12:29:50.876633610+00:00 TRACE Z-Wave Switch INT Z-Wave command(c32804c5) queued for radio transmission: CC:Switch Multi-level, CID:0x01
2023-07-16T12:29:50.879902943+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: 79fabdf8-81b4-4590-a5fa-a4161064f722 [08800706-b176-495d-8aa5-b3513b118635][04] (WYFY Switch 4)> received command: {“component”:“main”,“command”:“on”,“positional_args”:{},“args”:{},“capability”:“switch”}
2023-07-16T12:29:50.881240943+00:00 TRACE Z-Wave Switch INT Found CapabilityCommandDispatcher handler in zwave_switch
2023-07-16T12:29:50.882539610+00:00 TRACE Z-Wave Switch INT SWITCH_MULTILEVEL supported.
2023-07-16T12:29:50.883696943+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={duration=“default”, value=“ON_ENABLE”}, cmd_class=“SWITCH_MULTILEVEL”, cmd_id=“SET”, dst_channels={4}, encap=“AUTO”, payload=“\xFF\xFF”, src_channel=0, version=2}
2023-07-16T12:29:50.932500610+00:00 DEBUG Z-Wave Switch INT WYFY Switch 4 device thread event handled
2023-07-16T12:29:50.935662610+00:00 DEBUG Z-Wave Switch INT WYFY Switch 4 device thread event handled
2023-07-16T12:29:51.029633943+00:00 TRACE Z-Wave Switch INT Z-Wave command(c32804c5) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:53.451764944+00:00 TRACE Z-Wave Switch INT Z-Wave command(03fd3e84) queued for radio transmission: CC:Switch Multi-level, CID:0x02
2023-07-16T12:29:53.453277277+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={}, cmd_class=“SWITCH_MULTILEVEL”, cmd_id=“GET”, dst_channels={3}, encap=“AUTO”, payload=“”, src_channel=0, version=1}
2023-07-16T12:29:53.462856610+00:00 DEBUG Z-Wave Switch INT WYFY Switch 3 device thread event handled
2023-07-16T12:29:53.529715610+00:00 TRACE Z-Wave Switch INT Z-Wave command(03fd3e84) transmit status: TRANSMIT_COMPLETE_OK
2023-07-16T12:29:55.950123277+00:00 TRACE Z-Wave Switch INT Z-Wave command(1750a59c) queued for radio transmission: CC:Switch Multi-level, CID:0x02
2023-07-16T12:29:55.951678277+00:00 INFO Z-Wave Switch INT <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)> sending Z-Wave command: {args={}, cmd_class=“SWITCH_MULTILEVEL”, cmd_id=“GET”, dst_channels={4}, encap=“AUTO”, payload=“”, src_channel=0, version=1}
2023-07-16T12:29:55.960837944+00:00 DEBUG Z-Wave Switch INT WYFY Switch 4 device thread event handled
2023-07-16T12:29:56.037743944+00:00 TRACE Z-Wave Switch INT Z-Wave command(1750a59c) transmit status: TRANSMIT_COMPLETE_OK

@zamir_amran

The problem I see is that the driver is using the defaults for the switch on and off capability and since they changed them to use switch_multiLevel by default instead of switch binary, so there are many switches that don’t work like that.

I don’t think they’ve fixed anything with this change, but they’ve broken quite a few others.

You have to use a custom handler for switch_binary or basic set.

Now I am almost out of battery in the mobile, when I get home I will look for the code that you have to add

@zamir_amran

I don’t have access to the code of the default libraries, but I think that’s how it should work

  • In the multi-metering-switch folder, open the init.lua file and replace the code from lines 157 to 164:
capability_handlers = {
     [capabilities.refresh.ID] = {
       [capabilities.refresh.commands.refresh.NAME] = do_refresh
     },
     [capabilities.energyMeter.ID] = {
       [capabilities.energyMeter.commands.resetEnergyMeter.NAME] = reset
     }
   },
  • Copy and paste this code in its place:
capability_handlers = {
     [capabilities.refresh.ID] = {
       [capabilities.refresh.commands.refresh.NAME] = do_refresh
     },
     [capabilities.energyMeter.ID] = {
       [capabilities.energyMeter.commands.resetEnergyMeter.NAME] = reset
     },
[capabilities.switch.ID] = {
       [capabilities.switch.commands.on.NAME] = switch_on_handler,
       [capabilities.switch.commands.off.NAME] = switch_off_handler
     },
   },
  • copy this code in the empty line 154 :
-- switch_set_command_handler
local function switch_set_helper(driver, device, value, command)
   local set
   local get
   local delay = constants.DEFAULT_GET_STATUS_DELAY
   if device:is_cc_supported(cc.SWITCH_BINARY) then
     log.trace_with({ hub_logs = true }, "SWITCH_BINARY supported.")
     set = SwitchBinary:Set({
       target_value = value,
       duration = 0
     })
     get = SwitchBinary:Get({})
   else
     log.trace_with({ hub_logs = true }, "SWITCH_BINARY and SWITCH_MULTILEVEL NOT supported. Use Basic.Set()")
     set = Basic:Set({
       value = value
     })
     get = Basic:Get({})
   end
   device:send_to_component(set, command.component)
   local query_device = function()
     device:send_to_component(get, command.component)
   end
   device.thread:call_with_delay(delay, query_device)
end

--switch_on_handler
local function switch_on_handler(driver, device, command)
   print("<<<<<<< switch_on_handler >>>>>>")

switch_set_helper(driver, device, SwitchBinary.value.ON_ENABLE, command)
end

-- switch_off_handler
local function switch_off_handler(driver, device, command)
   print("<<<<<<< switch_off_handler >>>>>>")

switch_set_helper(driver, device, SwitchBinary.value.OFF_DISABLE, command)
end
  • On line 26, which should be empty, copy this code:
--- @type st.zwave.constants
local constants = require "st.zwave.constants"
  • save the changes

With the CLI:

  • pack the driver
  • assign the driver to your channel
  • Install the new driver on your hub

You can delete the previous logs.

can you capture log by pressing on in the app on the main device, the child 2, the 3 and the 4?

Hi @Mariano_Colmenarejo

Done the changes. Here is the log captured by pressing on in the app.

2023-07-17T00:54:31.190832443+00:00 TRACE Z-Wave Switch INT Found CapabilityCommandDispatcher handler in zwave_switch → multi metering switch
2023-07-17T00:54:31.191705443+00:00 PRINT Z-Wave Switch INT <<<<<<< switch_off_handler >>>>>>
2023-07-17T00:54:31.192876109+00:00 ERROR Z-Wave Switch INT WYFY Switch 1 thread encountered error: [string “st/dispatcher.lua”]:233: Error encountered while processing event for <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)>:
arg1: table: 0x1975f88
[string “st/dispatcher.lua”]:233: Error encountered while processing event for <ZwaveDevice: 08800706-b176-495d-8aa5-b3513b118635 [37] (WYFY Switch 1)>:
arg1: table: 0x1975f88
[string “multi-metering-switch/init.lua”]:164: attempt to index a nil value (global ‘log’)
2023-07-17T00:54:39.770693441+00:00 TRACE Z-Wave Switch INT Received event with handler capability
2023-07-17T00:54:39.793906774+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: a7d5d0c7-14ee-491c-9585-14c3bd6272b7 [08800706-b176-495d-8aa5-b3513b118635][02] (WYFY Switch 2)> received command: {“component”:“main”,“args”:{},“positional_args”:{},“capability”:“switch”,“command”:“off”}
2023-07-17T00:54:39.800682774+00:00 TRACE Z-Wave Switch INT Found CapabilityCommandDispatcher handler in zwave_switch → multi metering switch
2023-07-17T00:54:39.801528441+00:00 PRINT Z-Wave Switch INT <<<<<<< switch_off_handler >>>>>>
2023-07-17T00:54:39.802704107+00:00 ERROR Z-Wave Switch INT WYFY Switch 2 thread encountered error: [string “st/dispatcher.lua”]:233: Error encountered while processing event for <ZwaveChildDevice: a7d5d0c7-14ee-491c-9585-14c3bd6272b7 [08800706-b176-495d-8aa5-b3513b118635][02] (WYFY Switch 2)>:
arg1: table: 0x19a9d60
[string “st/dispatcher.lua”]:233: Error encountered while processing event for <ZwaveChildDevice: a7d5d0c7-14ee-491c-9585-14c3bd6272b7 [08800706-b176-495d-8aa5-b3513b118635][02] (WYFY Switch 2)>:
arg1: table: 0x19a9d60
[string “multi-metering-switch/init.lua”]:164: attempt to index a nil value (global ‘log’)
2023-07-17T00:55:22.780711430+00:00 TRACE Z-Wave Switch INT Received event with handler capability
2023-07-17T00:55:22.817611430+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: a5eb1d40-b3b5-4ab2-a02d-1dd9f27d4f78 [08800706-b176-495d-8aa5-b3513b118635][03] (WYFY Switch 3)> received command: {“component”:“main”,“args”:{},“positional_args”:{},“capability”:“switch”,“command”:“off”}
2023-07-17T00:55:22.824542097+00:00 TRACE Z-Wave Switch INT Found CapabilityCommandDispatcher handler in zwave_switch → multi metering switch
2023-07-17T00:55:22.825383097+00:00 PRINT Z-Wave Switch INT <<<<<<< switch_off_handler >>>>>>
2023-07-17T00:55:22.826558097+00:00 ERROR Z-Wave Switch INT WYFY Switch 3 thread encountered error: [string “st/dispatcher.lua”]:233: Error encountered while processing event for <ZwaveChildDevice: a5eb1d40-b3b5-4ab2-a02d-1dd9f27d4f78 [08800706-b176-495d-8aa5-b3513b118635][03] (WYFY Switch 3)>:
arg1: table: 0x1850c58
[string “st/dispatcher.lua”]:233: Error encountered while processing event for <ZwaveChildDevice: a5eb1d40-b3b5-4ab2-a02d-1dd9f27d4f78 [08800706-b176-495d-8aa5-b3513b118635][03] (WYFY Switch 3)>:
arg1: table: 0x1850c58
[string “multi-metering-switch/init.lua”]:164: attempt to index a nil value (global ‘log’)
2023-07-17T00:55:46.030688092+00:00 TRACE Z-Wave Switch INT Received event with handler capability
2023-07-17T00:55:46.047382092+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: 79fabdf8-81b4-4590-a5fa-a4161064f722 [08800706-b176-495d-8aa5-b3513b118635][04] (WYFY Switch 4)> received command: {“component”:“main”,“args”:{},“positional_args”:{},“capability”:“switch”,“command”:“off”}
2023-07-17T00:55:46.055216092+00:00 TRACE Z-Wave Switch INT Found CapabilityCommandDispatcher handler in zwave_switch → multi metering switch
2023-07-17T00:55:46.056051758+00:00 PRINT Z-Wave Switch INT <<<<<<< switch_off_handler >>>>>>
2023-07-17T00:55:46.057218425+00:00 ERROR Z-Wave Switch INT WYFY Switch 4 thread encountered error: [string “st/dispatcher.lua”]:233: Error encountered while processing event for <ZwaveChildDevice: 79fabdf8-81b4-4590-a5fa-a4161064f722 [08800706-b176-495d-8aa5-b3513b118635][04] (WYFY Switch 4)>:
arg1: table: 0x19778c8
[string “st/dispatcher.lua”]:233: Error encountered while processing event for <ZwaveChildDevice: 79fabdf8-81b4-4590-a5fa-a4161064f722 [08800706-b176-495d-8aa5-b3513b118635][04] (WYFY Switch 4)>:
arg1: table: 0x19778c8
[string “multi-metering-switch/init.lua”]:164: attempt to index a nil value (global ‘log’)

Hi @zamir_amran

Add this code in the empty line 14

local log = require "log"

Save, pack, assign to channel and install new driver

@Mariano_Colmenarejo

Sorry. I added the line to wrong file. The switch are working now.

2023-07-17T09:43:07.870752172+00:00 TRACE Z-Wave Switch INT Received event with handler capability
2023-07-17T09:43:07.909231172+00:00 TRACE Z-Wave Switch INT Z-Wave command(f5c87b22) queued for radio transmission: CC:Switch Binary, CID:0x01
2023-07-17T09:43:07.913032839+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> received command: {“command”:“on”,“args”:{},“positional_args”:{},“capability”:“switch”,“component”:“main”}
2023-07-17T09:43:07.914399839+00:00 TRACE Z-Wave Switch INT Found CapabilityCommandDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:07.915626172+00:00 PRINT Z-Wave Switch INT <<<<<<< switch_on_handler >>>>>>
2023-07-17T09:43:07.916807172+00:00 TRACE Z-Wave Switch INT SWITCH_BINARY supported.
2023-07-17T09:43:07.917973506+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY 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}
2023-07-17T09:43:07.944430172+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-17T09:43:07.951014172+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-17T09:43:07.982282506+00:00 TRACE Z-Wave Switch INT Z-Wave command(f5c87b22) transmit status: TRANSMIT_COMPLETE_OK
2023-07-17T09:43:08.024698839+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-17T09:43:08.027771839+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={1}, encap=“NONE”, payload=“\xFF”, src_channel=1, version=1}
2023-07-17T09:43:08.059524506+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:08.060361506+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> emitting event: {“state”:{“value”:“on”},“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”}
2023-07-17T09:43:08.063378506+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-17T09:43:08.966426839+00:00 TRACE Z-Wave Switch INT Z-Wave command(8d6165b0) queued for radio transmission: CC:Switch Binary, CID:0x02
2023-07-17T09:43:08.973010172+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY 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}
2023-07-17T09:43:08.974786506+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-17T09:43:09.129618172+00:00 TRACE Z-Wave Switch INT Z-Wave command(8d6165b0) transmit status: TRANSMIT_COMPLETE_OK
2023-07-17T09:43:09.160320506+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-17T09:43:09.161165506+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY 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}
2023-07-17T09:43:09.224951506+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:09.225787839+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> emitting event: {“state”:{“value”:“on”},“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”}
2023-07-17T09:43:09.232266172+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-17T09:43:12.584473840+00:00 TRACE Z-Wave Switch INT Received event with handler capability
2023-07-17T09:43:12.623916173+00:00 TRACE Z-Wave Switch INT Z-Wave command(120a11ad) queued for radio transmission: CC:Switch Binary, CID:0x01
2023-07-17T09:43:12.630824173+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: 9501df9e-e994-4c26-b0cb-02b1eae53933 [a9642eda-6985-4ed7-8b10-ae3f59fc1c34][02] (WYFY Switch 2)> received command: {“command”:“on”,“args”:{},“positional_args”:{},“capability”:“switch”,“component”:“main”}
2023-07-17T09:43:12.638413840+00:00 TRACE Z-Wave Switch INT Found CapabilityCommandDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:12.639753840+00:00 PRINT Z-Wave Switch INT <<<<<<< switch_on_handler >>>>>>
2023-07-17T09:43:12.640940173+00:00 TRACE Z-Wave Switch INT SWITCH_BINARY supported.
2023-07-17T09:43:12.643731173+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> sending Z-Wave command: {args={duration=0, target_value=“ON_ENABLE”}, cmd_class=“SWITCH_BINARY”, cmd_id=“SET”, dst_channels={2}, encap=“AUTO”, payload=“\xFF\x00”, src_channel=0, version=2}
2023-07-17T09:43:12.649236506+00:00 DEBUG Z-Wave Switch INT WYFY Switch 2 device thread event handled
2023-07-17T09:43:12.650063840+00:00 DEBUG Z-Wave Switch INT WYFY Switch 2 device thread event handled
2023-07-17T09:43:12.829583840+00:00 TRACE Z-Wave Switch INT Z-Wave command(120a11ad) transmit status: TRANSMIT_COMPLETE_OK
2023-07-17T09:43:12.850337173+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-17T09:43:12.853258506+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={2}, encap=“NONE”, payload=“\xFF”, src_channel=2, version=1}
2023-07-17T09:43:12.871071173+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:12.915242173+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: 9501df9e-e994-4c26-b0cb-02b1eae53933 [a9642eda-6985-4ed7-8b10-ae3f59fc1c34][02] (WYFY Switch 2)> emitting event: {“state”:{“value”:“on”},“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”}
2023-07-17T09:43:12.916663173+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-17T09:43:13.669200173+00:00 TRACE Z-Wave Switch INT Z-Wave command(5f0376ba) queued for radio transmission: CC:Switch Binary, CID:0x02
2023-07-17T09:43:13.670742173+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> sending Z-Wave command: {args={}, cmd_class=“SWITCH_BINARY”, cmd_id=“GET”, dst_channels={2}, encap=“AUTO”, payload=“”, src_channel=0, version=1}
2023-07-17T09:43:13.679941840+00:00 DEBUG Z-Wave Switch INT WYFY Switch 2 device thread event handled
2023-07-17T09:43:13.771278173+00:00 TRACE Z-Wave Switch INT Z-Wave command(5f0376ba) transmit status: TRANSMIT_COMPLETE_OK
2023-07-17T09:43:13.798660506+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-17T09:43:13.801782506+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY 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=2, version=1}
2023-07-17T09:43:13.822675173+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:13.833430840+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: 9501df9e-e994-4c26-b0cb-02b1eae53933 [a9642eda-6985-4ed7-8b10-ae3f59fc1c34][02] (WYFY Switch 2)> emitting event: {“state”:{“value”:“on”},“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”}
2023-07-17T09:43:13.841426173+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-17T09:43:15.657986840+00:00 TRACE Z-Wave Switch INT Received event with handler capability
2023-07-17T09:43:15.694442173+00:00 TRACE Z-Wave Switch INT Z-Wave command(624647ae) queued for radio transmission: CC:Switch Binary, CID:0x01
2023-07-17T09:43:15.698077507+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: 213696b1-34b1-46f6-b4b9-e74625e96b80 [a9642eda-6985-4ed7-8b10-ae3f59fc1c34][03] (WYFY Switch 3)> received command: {“command”:“on”,“args”:{},“positional_args”:{},“capability”:“switch”,“component”:“main”}
2023-07-17T09:43:15.699520507+00:00 TRACE Z-Wave Switch INT Found CapabilityCommandDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:15.700752173+00:00 PRINT Z-Wave Switch INT <<<<<<< switch_on_handler >>>>>>
2023-07-17T09:43:15.701941173+00:00 TRACE Z-Wave Switch INT SWITCH_BINARY supported.
2023-07-17T09:43:15.703529507+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> sending Z-Wave command: {args={duration=0, target_value=“ON_ENABLE”}, cmd_class=“SWITCH_BINARY”, cmd_id=“SET”, dst_channels={3}, encap=“AUTO”, payload=“\xFF\x00”, src_channel=0, version=2}
2023-07-17T09:43:15.719330840+00:00 DEBUG Z-Wave Switch INT WYFY Switch 3 device thread event handled
2023-07-17T09:43:15.726645507+00:00 DEBUG Z-Wave Switch INT WYFY Switch 3 device thread event handled
2023-07-17T09:43:15.800604840+00:00 TRACE Z-Wave Switch INT Z-Wave command(624647ae) transmit status: TRANSMIT_COMPLETE_OK
2023-07-17T09:43:15.821244840+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-17T09:43:15.824425840+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={3}, encap=“NONE”, payload=“\xFF”, src_channel=3, version=1}
2023-07-17T09:43:15.842471840+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:15.853065840+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: 213696b1-34b1-46f6-b4b9-e74625e96b80 [a9642eda-6985-4ed7-8b10-ae3f59fc1c34][03] (WYFY Switch 3)> emitting event: {“state”:{“value”:“on”},“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”}
2023-07-17T09:43:15.865538507+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-17T09:43:16.740798173+00:00 TRACE Z-Wave Switch INT Z-Wave command(a0397631) queued for radio transmission: CC:Switch Binary, CID:0x02
2023-07-17T09:43:16.748181840+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> sending Z-Wave command: {args={}, cmd_class=“SWITCH_BINARY”, cmd_id=“GET”, dst_channels={3}, encap=“AUTO”, payload=“”, src_channel=0, version=1}
2023-07-17T09:43:16.749650840+00:00 DEBUG Z-Wave Switch INT WYFY Switch 3 device thread event handled
2023-07-17T09:43:16.929647840+00:00 TRACE Z-Wave Switch INT Z-Wave command(a0397631) transmit status: TRANSMIT_COMPLETE_OK
2023-07-17T09:43:16.959313173+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-17T09:43:16.960157840+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY 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=3, version=1}
2023-07-17T09:43:17.013746840+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:17.034049840+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: 213696b1-34b1-46f6-b4b9-e74625e96b80 [a9642eda-6985-4ed7-8b10-ae3f59fc1c34][03] (WYFY Switch 3)> emitting event: {“state”:{“value”:“on”},“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”}
2023-07-17T09:43:17.035572173+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-17T09:43:18.521131507+00:00 TRACE Z-Wave Switch INT Received event with handler capability
2023-07-17T09:43:18.557468507+00:00 TRACE Z-Wave Switch INT Z-Wave command(d8843750) queued for radio transmission: CC:Switch Binary, CID:0x01
2023-07-17T09:43:18.617323507+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: faefbe7c-39c8-41d6-92d1-157574ee9c90 [a9642eda-6985-4ed7-8b10-ae3f59fc1c34][04] (WYFY Switch 4)> received command: {“command”:“on”,“args”:{},“positional_args”:{},“capability”:“switch”,“component”:“main”}
2023-07-17T09:43:18.623619507+00:00 TRACE Z-Wave Switch INT Found CapabilityCommandDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:18.626274174+00:00 PRINT Z-Wave Switch INT <<<<<<< switch_on_handler >>>>>>
2023-07-17T09:43:18.630453174+00:00 TRACE Z-Wave Switch INT SWITCH_BINARY supported.
2023-07-17T09:43:18.633804840+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> sending Z-Wave command: {args={duration=0, target_value=“ON_ENABLE”}, cmd_class=“SWITCH_BINARY”, cmd_id=“SET”, dst_channels={4}, encap=“AUTO”, payload=“\xFF\x00”, src_channel=0, version=2}
2023-07-17T09:43:18.640718840+00:00 DEBUG Z-Wave Switch INT WYFY Switch 4 device thread event handled
2023-07-17T09:43:18.641548507+00:00 DEBUG Z-Wave Switch INT WYFY Switch 4 device thread event handled
2023-07-17T09:43:18.760540174+00:00 TRACE Z-Wave Switch INT Z-Wave command(d8843750) transmit status: TRANSMIT_COMPLETE_OK
2023-07-17T09:43:18.800760174+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-17T09:43:18.801596174+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={4}, encap=“NONE”, payload=“\xFF”, src_channel=4, version=1}
2023-07-17T09:43:18.815673840+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:18.819862507+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: faefbe7c-39c8-41d6-92d1-157574ee9c90 [a9642eda-6985-4ed7-8b10-ae3f59fc1c34][04] (WYFY Switch 4)> emitting event: {“state”:{“value”:“on”},“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”}
2023-07-17T09:43:18.850641507+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-17T09:43:18.851475174+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-17T09:43:18.852675174+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> received Z-Wave command: {args={value=255}, cmd_class=“BASIC”, cmd_id=“REPORT”, dst_channels={}, encap=“NONE”, payload=“\xFF”, src_channel=0, version=1}
2023-07-17T09:43:18.867579174+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:18.879920507+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled
2023-07-17T09:43:19.689232507+00:00 TRACE Z-Wave Switch INT Z-Wave command(253ecac7) queued for radio transmission: CC:Switch Binary, CID:0x02
2023-07-17T09:43:19.727637840+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY Switch 1)> sending Z-Wave command: {args={}, cmd_class=“SWITCH_BINARY”, cmd_id=“GET”, dst_channels={4}, encap=“AUTO”, payload=“”, src_channel=0, version=1}
2023-07-17T09:43:19.758294840+00:00 DEBUG Z-Wave Switch INT WYFY Switch 4 device thread event handled
2023-07-17T09:43:19.865352174+00:00 TRACE Z-Wave Switch INT Z-Wave command(253ecac7) transmit status: TRANSMIT_COMPLETE_OK
2023-07-17T09:43:20.056515507+00:00 TRACE Z-Wave Switch INT Received event with handler unnamed
2023-07-17T09:43:20.057770840+00:00 INFO Z-Wave Switch INT <ZwaveDevice: a9642eda-6985-4ed7-8b10-ae3f59fc1c34 [44] (WYFY 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=4, version=1}
2023-07-17T09:43:20.098679840+00:00 TRACE Z-Wave Switch INT Found ZwaveDispatcher handler in zwave_switch → multi metering switch
2023-07-17T09:43:20.125354507+00:00 INFO Z-Wave Switch INT <ZwaveChildDevice: faefbe7c-39c8-41d6-92d1-157574ee9c90 [a9642eda-6985-4ed7-8b10-ae3f59fc1c34][04] (WYFY Switch 4)> emitting event: {“state”:{“value”:“on”},“attribute_id”:“switch”,“capability_id”:“switch”,“component_id”:“main”}
2023-07-17T09:43:20.141451174+00:00 DEBUG Z-Wave Switch INT WYFY Switch 1 device thread event handled

1 Like

@zamir_amran

I’m glad it works, in August I’ll fix my driver

@Mariano_Colmenarejo

Thank you very much & all credit goes to you. Really appreciate wonderful job you are doing for this community.

I will test this driver with all MCO switch that I have now & let you know if everything works well. Thank you again.

2 Likes

@zamir_amran

If you want you can delete the logs so that the thread is cleaner, they are no longer necessary

2 Likes

Hi @zamir_amran

Modified driver for your devices

───────────────────────────────────────────────────
 Name         Z-Wave Switch and Child Mc
 Version      2023-07-31T21:43:50.247029504
───────────────────────────────────────────────────
- id: 015F/3111/5102
    deviceLabel: WYFY Switch 1
    manufacturerId: 0x015F
    productType: 0x3111
    #productId: 0x5102 # 0x5103
    deviceProfileName: switch-binary
  - id: 015F/3121/5102
    deviceLabel: WYFY Switch 1
    manufacturerId: 0x015F
    productType: 0x3121
    #productId: 0x5102 # 0x5103
    deviceProfileName: dual-switch
  - id: 015F/3141/5102
    deviceLabel: WYFY Switch 1
    manufacturerId: 0x015F
    productType: 0x3141
    #productId: 0x5102 # 0x5103
    deviceProfileName: switch-multicomponent-4

Hi @Mariano_Colmenarejo

Thank you for your support. Will test this out.

Hi All
I wonder if anybody could give me a link to the MCO driver for the two gang.

I found one on another channel but the fingerprint doesn’t work.

Thansk

K

Hi @Ken_Moir

What are the fingerprints?

This driver may work
Z-Wave Switch and Child Mc in this Channel link

Hi Thanks
for replying. I actually found the mariano one that you describe above last night and got it working.

all good.

many thanks

ken

1 Like

Hi Zamir, I have the S314 as well, I was wondering if you got yours to work in the end?

Hi Mariano,

I have gotten my 4 button MCO panel to work with your driver, but it takes very long for a button press on the panel to turn on the lights.

However, from the app the buttons work instantly.

Is this due to a long polling interval for my touch panel?

Hi @zsaigol

When you click on the physical device the driver does nothing to turn the lights on or off.
The lights are turned on or off by the device’s own hardware and software.

In this case, the only thing the driver does is update the status in the app when the device reports it.

Dear Mariano,

I realise that the buttons don’t control anything directly, but it is taking a few minutes for my touch panel to report back to the hub.

Is there any way to speed up the refresh interval? I remember there was a way to do that in the old Groovy coding.

Thanks for the quick response and help with getting the driver to work in the first place!