I created an items file without he following content: Switch ShellyBuero "Büro-Licht" {mqtt=">[ShellyBuero:shellies/shelly1-5548C3/relay/0/command:command:*:MAP(shelly.map)],<[ShellyBuero:shellies/shelly1-5548C3/relay/0:state:MAP(shelly.map)]"}
I also tried: Switch ShellyBuero "Büro-Licht" {mqtt=">[mqtt:topic:ShellyBuero:shellies/shelly1-5548C3/relay/0/command:command:*:MAP(shelly.map)],<[mqtt:topic:ShellyBuero:shellies/shelly1-5548C3/relay/0:state:MAP(shelly.map)]"}
This is a configuration for MQTT binding version 1.x
MQTT binding version 2.x uses Things and channels, version 1.x does not.
Taking into account that it’s what you get by default and that you’ve managed to make a Thing, you probably have 2.x installed.
Abandon whatever old guide is telling you about {mqtt= and look at more recent ones, you’ll be wanting to configure and link channels for your thing and Item.
That’s good. So, if you operate the OH switch and it sends a message, is it the topic and payload that the shelley is looking for? If you operate the shelley locally, does it produce a topic and payload that you’ve configured OH to look for? May we know what these messages are?
This comes up when open hab tries to display the switch: 2019-08-17 12:06:20.200 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'ShellyBuero' for widget org.eclipse.smarthome.model.sitemap.Switch 2019-08-17 12:06:20.209 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'ShellyBuero' for widget org.eclipse.smarthome.model.sitemap.Switch 2019-08-17 12:06:20.212 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'ShellyBuero' for widget org.eclipse.smarthome.model.sitemap.Switch 2019-08-17 12:06:20.217 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'ShellyBuero' for widget org.eclipse.smarthome.model.sitemap.Switch
This comes up when switching:
2019-08-17 12:06:23.800 [INFO ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at 'items/ShellyBuero' for the unknown item 'ShellyBuero'. 2019-08-17 12:06:26.516 [INFO ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at 'items/ShellyBuero' for the unknown item 'ShellyBuero'.
You don’t have an Item named ShellyBuero
Check spelling, uppercase etc. against your xxx.items file
Look in your openhab.log at boot time for entry - Loading model 'xxx.items'
2019-08-17 13:49:04.870 [ome.event.ItemCommandEvent] - Item 'shellybuero' received command ON 2019-08-17 13:49:04.877 [nt.ItemStatePredictedEvent] - shellybuero predicted to become NULL 2019-08-17 13:49:05.945 [ome.event.ItemCommandEvent] - Item 'shellybuero' received command OFF 2019-08-17 13:49:05.956 [nt.ItemStatePredictedEvent] - shellybuero predicted to become NULL 2019-08-17 13:49:28.347 [ome.event.ItemCommandEvent] - Item 'shellybuero' received command ON 2019-08-17 13:49:28.355 [nt.ItemStatePredictedEvent] - shellybuero predicted to become NULL 2019-08-17 13:49:29.366 [ome.event.ItemCommandEvent] - Item 'shellybuero' received command OFF 2019-08-17 13:49:29.379 [nt.ItemStatePredictedEvent] - shellybuero predicted to become NULL 2019-08-17 13:49:30.019 [ome.event.ItemCommandEvent] - Item 'shellybuero' received command ON 2019-08-17 13:49:30.026 [nt.ItemStatePredictedEvent] - shellybuero predicted to become NULL 2019-08-17 13:49:30.644 [ome.event.ItemCommandEvent] - Item 'shellybuero' received command OFF 2019-08-17 13:49:30.652 [nt.ItemStatePredictedEvent] - shellybuero predicted to become NULL
But i’m not reading any messages in MQTT.fx and the shelly is not switching.