For me it works as follow:
Things:
Thing mqtt:topic:OG1_ba_li_schalter "OG1_ba_li_schalter" (mqtt:broker:mosquitto) { Channels: Type string : online "Online" [ stateTopic="shellies/shellyswitch25-xxx13/online" ] Type switch : power1 "Power1" [ stateTopic="shellies/shellyswitch25-xxx13/relay/0", on="on", off="off", commandTopic="shellies/shellyswitch25-xxx13/relay/0/command", on="on", off="off"] Type switch : power2 "Power2" [ stateTopic="shellies/shellyswitch25-xxx13/relay/1", on="on", off="off", commandTopic="shellies/shellyswitch25-xxx13/relay/1/command", on="on", off="off"] }
Items:
Switch OG1_ba_li_decke "Licht Decke" <light> (gOG1_ba,gOG1_Licht) ["Lighting"] { channel="mqtt:topic:OG1_ba_li_schalter:power1" } Switch OG1_ba_li_spiegel "Licht Spiegel" <light> (gOG1_ba,gOG1_Licht) ["Lighting"] { channel="mqtt:topic:OG1_ba_li_schalter:power2" }
Quite easy and simple.