i am using openhab on a raspberry pi
i just upgraded the system and suddenly the mqtt items stopped working i read on some threads that a fresh install will help but it still does not work
my esp8266 is able to publish messages to the broker but openhab is not able to publish
i did sudo nano /etc/openhab2/services/mqtt.cfg
after i installed the mqtt binding but the file was empty so i copied the content from a github page
#
# Define your MQTT broker connections here for use in the MQTT Binding or MQTT
# Persistence bundles. Replace <broker> with an ID you choose.
#
# URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
broker.url=tcp://192.168.1.3:1883
# Optional. Client id (max 23 chars) to use when connecting to the broker.
# If not provided a default one is generated.
#broker.clientId=broker
# Optional. User id to authenticate with the broker.
#<broker>.user=<user>
# Optional. Password to authenticate with the broker.
#<broker>.pwd=<password>
# Optional. Set the quality of service level for sending messages to this broker.
# Possible values are 0 (Deliver at most once),1 (Deliver at least once) or 2
# (Deliver exactly once). Defaults to 0.
#<broker>.qos=<qos>
# Optional. True or false. Defines if the broker should retain the messages sent to
# it. Defaults to false.
broker.retain=true
# Optional. True or false. Defines if messages are published asynchronously or
# synchronously. Defaults to true.
#<broker>.async=<async>
# Optional. Defines the last will and testament that is sent when this client goes offline
# Format: topic:message:qos:retained <br/>
#<broker>.lwt=<last will definition>
But no luck i have no idea what is going wrong here
my items file
//Date
DateTime Time "Time [%1$tH:%1$tM]" <time> { channel="ntp:ntp:demo:dateTime" }
DateTime Date "Date [%1$tA, %1$td.%1$tm.%1$tY]" <calendar> { channel="ntp:ntp:demo:dateTime" }
//Lights
//roomlight
Switch roomlight "Room Light" <light> [ "Lighting" ]{mqtt=">[broker:Sam_Room/lights/main/roomlight:command:ON:1],>[broker:sam_room/lights/main/roomlight:command:OFF:0]"}
Switch test "Test" <light>
//Fans
//roomfan
Switch roomfan "Fan" <fan_ceiling> [ "Switchable" ] {mqtt=">[broker:Sam_Room/fans/roomfan:command:ON:1],>[broker:sam_room/fans/roomfan:command:OFF:0]"}
//Temperature
//roomtemperature
Number Temperature "Room temperature [%.1f °C]" <temperature> {mqtt="<[broker:sam_room/temperature:state:default]"}
Number Humidity "Humidity [%.1f%%]" <humidity> {mqtt="<[broker:sam_room/humidity:state:default]"}
//RGB LED Strip Control
//Groups
Group roomledrgbGroup "Light RGB" (All)
//Room LED Strip
Color roomledrgbColor "Light RGB" <colorpicker> (roomledrgbGroup) ["Lighting"]
String roomledrgbString (roomledrgbGroup) {mqtt=">[broker:sam_room/lights/rgb/roomledrgb:command:*:default]"}
am i missing something or did i do something wrong please guide me