MQTT Binding not working on Openhab2

My MQTT Binding is not working

I have problems to get my mqtt binding working.

installed:
MQTT binding is installed,
clean install with the openhab2 image for raspi ==> I used a raspi 3 b +
installed mosquitto => config anonymous connection allowed => on port 1
install mqtt binding in openhab (nothing else)
configured services/mqtt.conf
create item and sitemap i listed below
tested the mosquitto mqtt broker with manual command it is working perfectly

mqtt.cfg

pid:org.openhab.mqtt
broker.url=tcp://192.168.1.114:1883
broker.clientId=openhab2
broker.user=openhabian
broker.pwd=openhabian

openhab.log
2018-12-25 12:56:33.766 [ome.event.ItemCommandEvent] - Item ‘Light_GF_Corridor_Ceiling’ received command ON

2018-12-25 12:56:33.815 [vent.ItemStateChangedEvent] - Light_GF_Corridor_Ceiling changed from OFF to ON

2018-12-25 12:56:35.311 [ome.event.ItemCommandEvent] - Item ‘Light_GF_Corridor_Ceiling’ received command OFF

2018-12-25 12:56:35.345 [vent.ItemStateChangedEvent] - Light_GF_Corridor_Ceiling changed from ON to OFF

mosquitto.log

1545721403: New connection from ::1 on port 1883.
1545721403: New client connected from ::1 as mosqsub/2084-openHABian (c1, k60).
1545721521: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.

demo.items

Switch Light_GF_Corridor_Ceiling    "Ceiling 123" { mqtt=">[mosquitto:/switch/test:command:ON:1],>[mosquitto:/switch/test:command:OFF:0]" }

I’ve been trying to get switch working for the past 2 days, but no luck i require your help to resolve the issue !!

Sorry for my bad English!
best regards,Capture
Tanmay

Which version of the binding did you install? v1 or v2?
Your use of the mqtt.cfg and item bindings is for v1 only.

1 Like

Thank you Vincent for quick response.

I have installed binding from Paper UI.
Capture1

Capture

You have installed the MQTTv2 binding

You need to create a MQTT broker thing
and then an MQTT generic thing

2 Likes

Thank you very much for your help…!! :slight_smile:

I am new to openhab so it is very difficult to understand. If you have any simple steps to do it.

Not today, maybe tomorrow.
Christmas day, Children…

1 Like

No Problem…Merry Christmas…!!:grinning:

See this one instead:

1 Like

Thank you Vincent…!!! :slight_smile:

I really appreciate @vzorglub to help in getting the MQTT ready. Thank you so much… :slight_smile: