Multibinding Items ZWAVE + MQTT - not working

Hi,

Im new to openhab.

I would like to combine ZWave Binding + MQTT Binding in one item string.

Zwave in Habmin is running. I see Channels.
Mqtt binding is working also.

I startet with Danfoss Zwave Radiator.
This Zwave Node have a Battery Channel.I would like to publish this Battery Cahnnel with MQTT.

So I created a Items file in /Items

Number    Wohnzimmer_Esstisch_Thermostat_Battery    "Wohnzimmer Esstisch Thermostat Battery Status [%d %%]"    {channel="zwave:device:7fe0340b:node4:battery-level", mqtt=">[mosquitto:openHAB/Main-OH/zwave/thermostat/Wohnzimmer_Esstisch_Thermostat_Battery:state:default]"}

This is not working.
Heres the LOG:

10:11:28.972 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'mqtt-zwave.items'
10:11:28.984 [ERROR] [el.item.internal.GenericItemProvider] - Binding configuration of type 'mqtt' of item 'Wohnzimmer_Esstisch_Thermostat_Battery' could not be parsed correctly.
org.eclipse.smarthome.model.item.BindingConfigParseException: Configuration 'mosquitto:openHAB/Main-OH/zwave/thermostat/Wohnzimmer_Esstisch_Thermostat_Battery' is not a valid outbound configuration: Configuration requires 5 parameters separated by ':'
	at org.openhab.core.binding.internal.BindingConfigReaderDelegate.processBindingConfiguration(BindingConfigReaderDelegate.java:50)[176:org.openhab.core.compat1x:2.1.0]
	at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:325)[123:org.eclipse.smarthome.model.item:0.9.0.b5]
	at org.eclipse.smarthome.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:297)[123:org.eclipse.smarthome.model.item:0.9.0.b5]
	at org.eclipse.smarthome.model.item.internal.GenericItemProvider.processBindingConfigsFromModel(GenericItemProvider.java:182)[123:org.eclipse.smarthome.model.item:0.9.0.b5]
	at org.eclipse.smarthome.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:367)[123:org.eclipse.smarthome.model.item:0.9.0.b5]
	at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.notifyListeners(ModelRepositoryImpl.java:286)[122:org.eclipse.smarthome.model.core:0.9.0.b5]
	at org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl.addOrRefreshModel(ModelRepositoryImpl.java:136)[122:org.eclipse.smarthome.model.core:0.9.0.b5]
	at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.checkFile(FolderObserver.java:234)[122:org.eclipse.smarthome.model.core:0.9.0.b5]
	at org.eclipse.smarthome.model.core.internal.folder.FolderObserver.processWatchEvent(FolderObserver.java:297)[122:org.eclipse.smarthome.model.core:0.9.0.b5]
	at org.eclipse.smarthome.core.service.WatchQueueReader.run(WatchQueueReader.java:206)[98:org.eclipse.smarthome.core:0.9.0.b5]
	at java.lang.Thread.run(Thread.java:748)[:1.8.0_152]

Can someone give me a hint.

thx
LG

You are missing a parameter, there’s only 4 when it expects 5.

You probably want your item to be:

Number    Wohnzimmer_Esstisch_Thermostat_Battery    "Wohnzimmer Esstisch Thermostat Battery Status [%d %%]"    {channel="zwave:device:7fe0340b:node4:battery-level", mqtt=">[mosquitto:openHAB/Main-OH/zwave/thermostat/Wohnzimmer_Esstisch_Thermostat_Battery:state:*:default]"}

Thx alot!
thats it.

Maybe u could give me another hint :wink:

I would like to know a state of a binary Zwave switch via MQTT.

ITEM:

Switch	Wohnzimmer_Esstisch_Switch	"Wohnzimmer Esstisch Switch"	{channel="zwave:device:7fe0340b:node3:switch_binary", mqtt=">[mosquitto:openHAB/Main-OH/zwave/switch/Wohnzimmer_Esstisch_Switch/state:state:*:default]", mqtt="<[mosquitto:openHAB/Main-OH/zwave/switch/Wohnzimmer_Esstisch_Switch/command:command:ON:1]", mqtt="<[mosquitto:openHAB/Main-OH/zwave/switch/Wohnzimmer_Esstisch_Switch/command:command:OFF:0]"}

When i publish a “1” with MQTT to

openHAB/Main-OH/zwave/switch/Wohnzimmer_Esstisch_Switch/command

…the Zwave switch work.
But when i toggle the switch via Dashboard I don’t get a state update at the topic

openHAB/Main-OH/zwave/switch/Wohnzimmer_Esstisch_Switch/state

best regards

OK…

i tried and tried

heres my solution :wink:

Switch	Wohnzimmer_Esstisch_Switch	"Wohnzimmer Esstisch Switch"	{channel="zwave:device:7fe0340b:node3:switch_binary", mqtt=">[mosquitto:openHAB/Main-OH/out/zwave/switch/Wohnzimmer_Esstisch:command:ON:1], >[mosquitto:openHAB/Main-OH/out/zwave/switch/Wohnzimmer_Esstisch:command:OFF:0], <[mosquitto:openHAB/Main-OH/in/zwave/switch/Wohnzimmer_Esstisch:command:ON:1], <[mosquitto:openHAB/Main-OH/in/zwave/switch/Wohnzimmer_Esstisch:command:OFF:0]"}

I created a seperate topic for “inbound” and “outboud” …otherwise it ended up in
endless mqtt loops.

Maybe theres a way to prevent loop with one topic for in and out?
Best regards