[Solved] Wireless Switch Actuator 2-channel, flush-mount (HM-LC-Sw2-FM) only reports one channel

Hi,
as I did not find the problem in the forum, I will just start one in order to be found.

Only “Channel 1” of a "Wireless Switch Actuator 2-channel, flush-mount (HM-LC-Sw2-FM)" can be controlled over the OH3 UI.

Bug report can be found here:
https://github.com/openhab/openhab-addons/issues/12595

BR
PeterK

Hi,
it took me some time, but I found a “solution”… or at least a workaround.

When switching the light, the log showed:

2022-04-15 16:51:18.311 [WARN ] [ternal.handler.HomematicThingHandler] - Channel not found for datapoint 'SEQ1034420:2#STATE'
2022-04-15 16:51:18.323 [WARN ] [ternal.handler.HomematicThingHandler] - Channel not found for datapoint 'SEQ1034420:2#WORKING'

I therefore manually added the second channel in the jsonDB:
/var/lib/openhab/jsondb//var/lib/openhab/jsondb

from

[...]
         {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "1#ON_TIME"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:1#ON_TIME"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_1_ON_TIME"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_1_ON_TIME"
          },
          "label": "On Time",
          "description": "Switch-on time",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "1#INHIBIT"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:1#INHIBIT"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_1_INHIBIT"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_1_INHIBIT"
          },
          "label": "Inhibit",
          "description": "Lock",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "1#ON_TIME_AUTOMATIC"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:1#ON_TIME_AUTOMATIC"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_1_ON_TIME_AUTOMATIC"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_1_ON_TIME_AUTOMATIC"
          },
          "label": "On Time Automatic",
          "description": "Automatic switch-on time",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "1#WORKING"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:1#WORKING"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_1_WORKING"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_1_WORKING"
          },
          "label": "Working",
          "description": "Working",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "1#STATE"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:1#STATE"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_1_STATE"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_1_STATE"
          },
          "label": "State",
          "description": "Switching status",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "1#INSTALL_TEST"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:1#INSTALL_TEST"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_1_INSTALL_TEST"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_1_INSTALL_TEST"
          },
          "label": "Install Test",
          "description": "Installationtest",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        }

[...]

to

[...]
{
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "1#ON_TIME"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:1#ON_TIME"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_1_ON_TIME"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_1_ON_TIME"
          },
          "label": "On Time",
          "description": "Switch-on time",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "1#INHIBIT"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:1#INHIBIT"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_1_INHIBIT"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_1_INHIBIT"
          },
          "label": "Inhibit",
          "description": "Lock",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "1#ON_TIME_AUTOMATIC"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:1#ON_TIME_AUTOMATIC"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_1_ON_TIME_AUTOMATIC"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_1_ON_TIME_AUTOMATIC"
          },
          "label": "On Time Automatic",
          "description": "Automatic switch-on time",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "1#WORKING"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:1#WORKING"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_1_WORKING"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_1_WORKING"
          },
          "label": "Working",
          "description": "Working",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "1#STATE"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:1#STATE"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_1_STATE"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_1_STATE"
          },
          "label": "State",
          "description": "Switching status",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "1#INSTALL_TEST"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:1#INSTALL_TEST"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_1_INSTALL_TEST"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_1_INSTALL_TEST"
          },
          "label": "Install Test",
          "description": "Installationtest",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "2#ON_TIME"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:2#ON_TIME"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_2_ON_TIME"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_2_ON_TIME"
          },
          "label": "On Time",
          "description": "Switch-on time",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "2#INHIBIT"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:2#INHIBIT"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_2_INHIBIT"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_2_INHIBIT"
          },
          "label": "Inhibit",
          "description": "Lock",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Number",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "2#ON_TIME_AUTOMATIC"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:2#ON_TIME_AUTOMATIC"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_2_ON_TIME_AUTOMATIC"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_2_ON_TIME_AUTOMATIC"
          },
          "label": "On Time Automatic",
          "description": "Automatic switch-on time",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "2#WORKING"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:2#WORKING"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_2_WORKING"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_2_WORKING"
          },
          "label": "Working",
          "description": "Working",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "2#STATE"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:2#STATE"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_2_STATE"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_2_STATE"
          },
          "label": "State",
          "description": "Switching status",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        },
        {
          "acceptedItemType": "Switch",
          "kind": "STATE",
          "uid": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM",
              "3014F711A0001F58A992F087",
              "SEQ1034420",
              "2#INSTALL_TEST"
            ],
            "uid": "homematic:HM-LC-Sw2-FM:xxxx:xxxx:2#INSTALL_TEST"
          },
          "channelTypeUID": {
            "segments": [
              "homematic",
              "HM-LC-Sw2-FM_2_INSTALL_TEST"
            ],
            "uid": "homematic:HM-LC-Sw2-FM_2_INSTALL_TEST"
          },
          "label": "Install Test",
          "description": "Installationtest",
          "configuration": {
            "properties": {
              "delay": 0.0,
              "receiveDelay": 0.0
            }
          },
          "properties": {},
          "defaultTags": []
        }
[...]

Then I added the link to the Item manually in
/var/lib/openhab/jsondb/org.openhab.core.thing.link.ItemChannelLink.json

from

[...]
"ELW_WO_Lampe_Decke -\u003e homematic:HM-LC-Sw2-FM:xxx:xxx:1#STATE": {
    "class": "org.openhab.core.thing.link.ItemChannelLink",
    "value": {
      "channelUID": {
        "segments": [
          "homematic",
          "HM-LC-Sw2-FM",
          "3014F711A0001F58A992F087",
          "SEQ1034420",
          "1#STATE"
        ],
        "uid": "homematic:HM-LC-Sw2-FM:xxx:xxx:1#STATE"
      },
      "configuration": {
        "properties": {}
      },
      "itemName": "ELW_WO_Lampe_Decke"
    }
  },

[...]

to

[...]
"ELW_WO_Lampe_Decke -\u003e homematic:HM-LC-Sw2-FM:xxx:xxx:1#STATE": {
    "class": "org.openhab.core.thing.link.ItemChannelLink",
    "value": {
      "channelUID": {
        "segments": [
          "homematic",
          "HM-LC-Sw2-FM",
          "3014F711A0001F58A992F087",
          "SEQ1034420",
          "1#STATE"
        ],
        "uid": "homematic:HM-LC-Sw2-FM:xxx:xxx:1#STATE"
      },
      "configuration": {
        "properties": {}
      },
      "itemName": "ELW_WO_Lampe_Decke"
    }
  },
"ELW_WO_Lampe_Seite -\u003e homematic:HM-LC-Sw2-FM:xxx:xxx:2#STATE": {
    "class": "org.openhab.core.thing.link.ItemChannelLink",
    "value": {
      "channelUID": {
        "segments": [
          "homematic",
          "HM-LC-Sw2-FM",
          "3014F711A0001F58A992F087",
          "SEQ1034420",
          "2#STATE"
        ],
        "uid": "homematic:HM-LC-Sw2-FM:xxx:xxx:2#STATE"
      },
      "configuration": {
        "properties": {}
      },
      "itemName": "ELW_WO_Lampe_Seite"
    }
  },
[...]

Now it works!

Hope this helps
BR
PeterK