I’ve just starting on this with zwave (reference: Multiple instances of Openhab) . I will have a main Openhab instance (its a vm, so I can’t physically connect a usb zwave stick to it), and I will have a openhabian based instance on a raspberry pi.
I know the mqtt transport (as used in the openhab.cfg). Where you define it as mqtt:mosquitto.url=tcp://localhost:1883
But how does this differ from mqtt-eventbus: and do I have to install something to get access to mqtt-eventbus?
So given at the moment my zwave network will consist of a controller and a multi sensor, I will be wanting to push temp readings from the multisensor to the main OH instance.
So my raspberry pi would have this config:
mqtt:mosquitto.url=tcp://master:1883
mqtt:mosquitto.clientId=slave1
mqtt:mosquitto.retain=true
mqtt-eventbus:broker=mosquitto
mqtt-eventbus:statePublishTopic=/slave1/out/${item}/state
mqtt-eventbus:commandSubscribeTopic=/slave1/in/${item}/command
And I assume on the raspberry Pi a temperature zwave item would look like:
Number zwave_temperature “Multisensor 1 Temperature [%.1f °C]” (g_temperature) {zwave binding temperature sensor}
But how do I get the zwave sensor on the slave (raspberry pi) to then push that temp value received from the zwave device to the mqtt bus that the master can read?