Question about Harmony Integration

What I do want to achieve is:
Switch a TPLink Steckdose with my Harmony Elite using openhab2 (which is running on a synology ds918)

What I already achieved is that
1.) HueEmulation Services running and recognized by Harmony Elite
2.) I can switch on and off the TPLink using openhab basic ui
3.) I can only switch off the TPLink using my harmony remote control.

What I want to achieve that I can either switch on AND off the TPLink using my harmony remote control.

What I noticed that I managed to switch on via harmony just once. Switching off and back on again DOES NOT work. I also repaired and resynced my harmony

What is causing the problem that I can switch on and off the TPLink using the basic ui but NOT via the harmony elite?

here is my default.sitemap
sitemap default label=“My first sitemap”

{

Switch item=Subwoofer label=“Plug”

}

here my default.items
Switch Subwoofer “TPLink für Subwoofer” <light> (gWohnzimmer) [“Lighting”] { channel=“tplinksmarthome:hs110:C6A524:switch” }

  • Platform information:
    • Hardware: Harmony Elite + Hub + Synology DS918
    • openHAB version: 2.4.0
  • Issue of the topic: see above
  • Please post : see above

silly question: If I update the sitemap or the items files do I have to restart openhab2 , do I have to change / update anything on the harmony side?

And of course I installed the special developer firmware on my harmony so that openhab can reach my harmony: https://community.logitech.com/s/question/0D55A00008D4bZ4SAJ/harmony-hub-firmware-update-fixes-vulnerabilities. On my harmony remote control I see the firmware version; 4.15.250, is that correct?

events.log (only for today):
2019-03-30 08:58:09.997 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 08:58:09.999 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 08:58:10.003 [vent.ItemStateChangedEvent] - Subwoofer changed from ON to OFF
2019-03-30 08:58:21.994 [vent.ItemStateChangedEvent] - tplinksmarthome_hs110_C6A524_switch changed from ON to OFF
2019-03-30 10:48:23.405 [.ItemChannelLinkAddedEvent] - Link ‘Subwoofer-tplinksmarthome:hs110:C6A524:power’ has been added.
2019-03-30 10:51:03.606 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command ON
2019-03-30 10:51:03.607 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become ON
2019-03-30 10:51:03.610 [vent.ItemStateChangedEvent] - Subwoofer changed from OFF to ON
2019-03-30 10:51:05.649 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 10:51:05.650 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 10:51:05.652 [vent.ItemStateChangedEvent] - Subwoofer changed from ON to OFF
2019-03-30 10:54:08.941 [ome.event.ItemUpdatedEvent] - Item ‘Subwoofer’ has been updated.
2019-03-30 10:54:21.253 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command ON
2019-03-30 10:54:21.254 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become ON
2019-03-30 10:54:21.256 [vent.ItemStateChangedEvent] - Subwoofer changed from NULL to ON
2019-03-30 10:54:22.690 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 10:54:22.691 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 10:54:22.693 [vent.ItemStateChangedEvent] - Subwoofer changed from ON to OFF
2019-03-30 10:54:35.843 [ome.event.ItemUpdatedEvent] - Item ‘Subwoofer’ has been updated.
2019-03-30 10:54:39.163 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command ON
2019-03-30 10:54:39.164 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become ON
2019-03-30 10:54:39.165 [vent.ItemStateChangedEvent] - Subwoofer changed from NULL to ON
2019-03-30 10:54:39.932 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 10:54:39.933 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 10:54:39.934 [vent.ItemStateChangedEvent] - Subwoofer changed from ON to OFF
2019-03-30 11:08:28.964 [temChannelLinkRemovedEvent] - Link ‘Subwoofer => tplinksmarthome:hs110:C6A524:power’ has been removed.
2019-03-30 11:08:28.968 [temChannelLinkRemovedEvent] - Link ‘Subwoofer => tplinksmarthome:hs110:C6A524:switch’ has been removed.
2019-03-30 11:08:32.153 [.ItemChannelLinkAddedEvent] - Link ‘Subwoofer-tplinksmarthome:hs110:C6A524:switch’ has been added.
2019-03-30 11:08:32.153 [vent.ItemStateChangedEvent] - Subwoofer changed from NULL to OFF
2019-03-30 11:09:04.712 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command ON
2019-03-30 11:09:04.713 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become ON
2019-03-30 11:09:04.717 [vent.ItemStateChangedEvent] - Subwoofer changed from OFF to ON
2019-03-30 11:09:07.268 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command ON
2019-03-30 11:09:07.269 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become ON
2019-03-30 11:09:09.565 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 11:09:09.566 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 11:09:09.568 [vent.ItemStateChangedEvent] - Subwoofer changed from ON to OFF
2019-03-30 11:09:09.986 [vent.ItemStateChangedEvent] - tplinksmarthome_hs110_C6A524_power changed from 0.0 to 8.332
2019-03-30 11:09:23.958 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 11:09:23.959 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 11:09:25.944 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command ON
2019-03-30 11:09:25.945 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become ON
2019-03-30 11:09:25.947 [vent.ItemStateChangedEvent] - Subwoofer changed from OFF to ON
2019-03-30 11:09:41.397 [vent.ItemStateChangedEvent] - tplinksmarthome_hs110_C6A524_switch changed from OFF to ON
2019-03-30 11:09:41.398 [vent.ItemStateChangedEvent] - tplinksmarthome_hs110_C6A524_power changed from 8.332 to 8.755
2019-03-30 11:09:48.792 [.ItemChannelLinkAddedEvent] - Link ‘Subwoofer-tplinksmarthome:hs110:C6A524:power’ has been added.
2019-03-30 11:09:58.701 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 11:09:58.702 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 11:09:58.703 [vent.ItemStateChangedEvent] - Subwoofer changed from ON to OFF
2019-03-30 11:10:01.910 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command ON
2019-03-30 11:10:01.911 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become ON
2019-03-30 11:10:01.912 [vent.ItemStateChangedEvent] - Subwoofer changed from OFF to ON
2019-03-30 11:10:11.572 [vent.ItemStateChangedEvent] - tplinksmarthome_hs110_C6A524_power changed from 8.755 to 8.767
2019-03-30 11:10:22.959 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 11:10:22.960 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 11:10:22.961 [vent.ItemStateChangedEvent] - Subwoofer changed from ON to OFF
2019-03-30 11:10:27.790 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command 100
2019-03-30 11:10:44.924 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command 100
2019-03-30 11:10:46.259 [vent.ItemStateChangedEvent] - tplinksmarthome_hs110_C6A524_switch changed from ON to OFF
2019-03-30 11:10:46.259 [vent.ItemStateChangedEvent] - tplinksmarthome_hs110_C6A524_power changed from 8.767 to 0.0
2019-03-30 11:10:53.717 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command 100
2019-03-30 11:10:57.536 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command 100
2019-03-30 11:11:00.324 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command ON
2019-03-30 11:11:00.325 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become ON
2019-03-30 11:11:00.326 [vent.ItemStateChangedEvent] - Subwoofer changed from OFF to ON
2019-03-30 11:11:02.396 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 11:11:02.397 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 11:11:02.398 [vent.ItemStateChangedEvent] - Subwoofer changed from ON to OFF
2019-03-30 11:15:34.970 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command 100
2019-03-30 11:17:03.308 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command ON
2019-03-30 11:17:03.309 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become ON
2019-03-30 11:17:03.310 [vent.ItemStateChangedEvent] - Subwoofer changed from OFF to ON
2019-03-30 11:17:06.074 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 11:17:06.075 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 11:17:06.076 [vent.ItemStateChangedEvent] - Subwoofer changed from ON to OFF
2019-03-30 11:17:08.748 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command ON
2019-03-30 11:17:08.749 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become ON
2019-03-30 11:17:08.750 [vent.ItemStateChangedEvent] - Subwoofer changed from OFF to ON
2019-03-30 11:17:10.023 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 11:17:10.023 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 11:17:10.024 [vent.ItemStateChangedEvent] - Subwoofer changed from ON to OFF
2019-03-30 11:21:46.664 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command 97
2019-03-30 11:22:02.661 [ome.event.ItemUpdatedEvent] - Item ‘Subwoofer’ has been updated.
2019-03-30 11:22:20.616 [vent.ItemStateChangedEvent] - Subwoofer changed from NULL to OFF
2019-03-30 11:22:20.927 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command ON
2019-03-30 11:22:20.928 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become ON
2019-03-30 11:22:20.929 [vent.ItemStateChangedEvent] - Subwoofer changed from OFF to ON
2019-03-30 11:22:35.806 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 11:22:35.807 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 11:22:35.809 [vent.ItemStateChangedEvent] - Subwoofer changed from ON to OFF
2019-03-30 11:22:38.672 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command 100
2019-03-30 11:22:50.697 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command 100
2019-03-30 11:23:02.207 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command 100
2019-03-30 11:24:05.536 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command ON
2019-03-30 11:24:05.538 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become ON
2019-03-30 11:24:05.539 [vent.ItemStateChangedEvent] - Subwoofer changed from OFF to ON
2019-03-30 11:24:17.686 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command OFF
2019-03-30 11:24:17.687 [nt.ItemStatePredictedEvent] - Subwoofer predicted to become OFF
2019-03-30 11:24:17.688 [vent.ItemStateChangedEvent] - Subwoofer changed from ON to OFF
2019-03-30 11:24:23.447 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command 100
2019-03-30 11:24:35.334 [ome.event.ItemCommandEvent] - Item ‘Subwoofer’ received command 100

openhab.log (for today)

2019-03-28 00:00:00.001 [INFO ] [ng.fritzbox.internal.FritzboxBinding] - Fritzbox conditional deActivate: false
2019-03-29 00:00:00.002 [INFO ] [ng.fritzbox.internal.FritzboxBinding] - Fritzbox conditional deActivate: false
2019-03-30 00:00:00.001 [INFO ] [ng.fritzbox.internal.FritzboxBinding] - Fritzbox conditional deActivate: false
2019-03-30 10:48:23.401 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘default.items’
2019-03-30 10:51:00.949 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:51:03.607 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:51:03.608 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:51:05.650 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:51:05.651 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:51:15.059 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘default.items’
2019-03-30 10:51:17.428 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:51:19.672 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:51:21.256 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:51:21.850 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:51:22.131 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:51:22.368 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:51:22.555 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:54:08.884 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘default.items’
2019-03-30 10:54:21.256 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:54:22.692 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:54:35.840 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘default.items’
2019-03-30 10:54:39.164 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 10:54:39.933 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:07:03.645 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:08:28.963 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘default.items’ has errors, therefore ignoring it: [1,1]: missing EOF at ‘Switc’

2019-03-30 11:08:32.146 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘default.items’
2019-03-30 11:09:48.787 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘default.items’
2019-03-30 11:09:56.583 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:09:58.703 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:10:01.912 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:10:22.961 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:11:00.326 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:11:02.398 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:15:25.753 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘default.items’
2019-03-30 11:16:54.136 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:16:56.122 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:17:01.180 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:17:03.309 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:17:06.076 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:17:08.750 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:17:10.024 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:22:02.658 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘default.items’
2019-03-30 11:22:20.929 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:22:35.808 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:24:05.539 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘ON’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:24:17.688 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String
2019-03-30 11:53:26.123 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model ‘default.items’

Before you can proceed you need to fix that error:

Exception while formatting value ‘OFF’ of item Subwoofer with format ‘%.1f W’: f != java.lang.String

This error does not match your sitemap and item definition you posted, so the question is: did you configure some items via PaperUI instead of text files? You have a power channel linked to an item Subwoofer, but also a switch channel linked to an item Subwoofer. That won’t work, item names have to be unique. You are formatting a switch item with some %.1f W format. You don’t need a format at all for a switch item.
Please start reading the basics:

https://www.openhab.org/docs/configuration/sitemaps.html

Hi sihui,
thanks for your input.
I already managed to remove the error message by reconfiguring my default.items and default.sitemap.
Now for your input:

I changed the Subwoofer Thing by adding “Paper UI” to the name as follows:

I copied and pasted the info from there

to the switch definition in default.items as follows:

That should do the job.

Furthermore some other user pointed out to restart openhab and to clean the cache and the tmp files.

Then i renamed the switch as follows to check whether the changes have been forwarded to my harmony:

I see now the correct name Subwoofer2

Now I could switch on and off the TPLink… but only once. After that nothing works anymore.
Although I can use the basic ui to switch on and off perfectly it does work on the harmony just ONCE then never again?

From the eventlog I see the events coming in… but after once switching on and off there are no more events generated. So I assume that something with the harmony hub or with the hue emulation services is wrong. Any idea?

No need for that. I was talking about Item names, not Thing names. You did not read the docs I linked to, I guess?

Yes, that is the correct way.

You changed the label of the item, not the item name. Please read the docs!

How I renamed the switch name to Subwoofer2
I just don’t get it. Although I read the docs but I don’t get why the name of the switch does matter anyways?

All I do understand is that the name of the switch need to match the name in the site map. But why that influences the behaviour with harmony hub … i don’t get it.

So in the end: This does NOT work:
Switch Subwoofer “Subwoofer2” [“Lighting”] { channel=“tplinksmarthome:hs110:C6A524:switch” }
Switch Coffeemachine “Kaffeemaschine” { channel=“tplinksmarthome:hs110:C689B4:switch” }

sitemap default label=“My first sitemap”
{
Switch item=Subwoofer label=“Subwoofer”
Switch item=Coffeemachine label=“Kaffeemaschine”
}

and this DOES WORK:
Switch Subwoofer2 “Subwoofer2” [“Lighting”] { channel=“tplinksmarthome:hs110:C6A524:switch” }
Switch Coffeemachine “Kaffeemaschine” { channel=“tplinksmarthome:hs110:C689B4:switch” }

sitemap default label=“My first sitemap”
{
Switch item=Subwoofer2 label=“Subwoofer”
Switch item=Coffeemachine label=“Kaffeemaschine”
}

Correct, the item name, the item label does not matter.

itemtype itemname "labeltext [stateformat]" <iconname> (group1, group2, ...) ["tag1", "tag2", ...] {bindingconfig}

Switch Subwoofer2 "Subwoofer2" ["Lighting"] { channel="tplinksmarthome:hs110:C6A524:switch" }

Switch is your itemtype, Subwoofer2 is your itemname, “Subwoofer2” is your item labeltext, “Lighting” is one of your tags, channel=“tplink…” is your bindingconfig.