I am running OH 2.5.0-SNAPSHOT, build #1566 under docker on an i5 system. MQTT was starting correctly with older 2.5.0-SNAPSHOTs, but with build #1566 I cannot get the mqtt.generic binding to start without errors.
I have a log containing the MQTT entries starting from the org.openhab.binding.mqtt bundle start entry, but it is too large to paste here (> 250 KB). The log output filtered on ERROR is short enough to paste here:
2019-04-07 06:36:27.019 [ERROR][59-9b6c61a0982f][org.openhab.binding.mqtt.generic ] - bundle org.openhab.binding.mqtt.generic:2.5.0.201904040210 (241)[org.openhab.binding.mqtt.MqttChannelStateDescriptionProvider(297)] : Could not load implementation object class org.openhab.binding.mqtt.MqttChannelStateDescriptionProvider
2019-04-07 06:36:27.029 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.generic ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.generic
2019-04-07 06:36:27.044 [ERROR][59-9b6c61a0982f][org.openhab.binding.mqtt.generic ] - bundle org.openhab.binding.mqtt.generic:2.5.0.201904040210 (241)[org.openhab.binding.mqtt.MqttChannelStateDescriptionProvider(297)] : Could not load implementation object class org.openhab.binding.mqtt.MqttChannelStateDescriptionProvider
2019-04-07 06:36:27.048 [ERROR][59-9b6c61a0982f][org.openhab.binding.mqtt.generic ] - bundle org.openhab.binding.mqtt.generic:2.5.0.201904040210 (241)[org.openhab.binding.mqtt.MqttChannelTypeProvider(298)] : Could not load implementation object class org.openhab.binding.mqtt.MqttChannelTypeProvider
2019-04-07 06:36:27.050 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.generic ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.generic
2019-04-07 06:36:27.062 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.generic ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.generic
2019-04-07 06:36:27.068 [ERROR][59-9b6c61a0982f][org.openhab.binding.mqtt.generic ] - bundle org.openhab.binding.mqtt.generic:2.5.0.201904040210 (241)[org.openhab.binding.mqtt.MqttChannelTypeProvider(298)] : Could not load implementation object class org.openhab.binding.mqtt.MqttChannelTypeProvider
2019-04-07 06:36:27.072 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.generic ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.generic
2019-04-07 06:36:27.072 [ERROR][59-9b6c61a0982f][org.openhab.binding.mqtt.generic ] - bundle org.openhab.binding.mqtt.generic:2.5.0.201904040210 (241)[org.openhab.binding.mqtt.MqttChannelTypeProvider(298)] : Could not load implementation object class org.openhab.binding.mqtt.MqttChannelTypeProvider
2019-04-07 06:36:27.085 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.generic ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.generic
2019-04-07 06:36:27.109 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.generic ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.generic
2019-04-07 06:36:27.133 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.generic ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.generic
2019-04-07 06:36:27.187 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.generic ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.generic
2019-04-07 06:36:27.217 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.generic ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.generic
2019-04-07 06:36:27.238 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.generic ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.generic
2019-04-07 06:36:27.270 [ERROR][lisher@3f67593e][g.openhab.binding.mqtt.homeassistant] - FrameworkEvent ERROR - org.openhab.binding.mqtt.homeassistant
2019-04-07 06:36:27.286 [ERROR][lisher@3f67593e][g.openhab.binding.mqtt.homeassistant] - FrameworkEvent ERROR - org.openhab.binding.mqtt.homeassistant
2019-04-07 06:36:27.313 [ERROR][lisher@3f67593e][g.openhab.binding.mqtt.homeassistant] - FrameworkEvent ERROR - org.openhab.binding.mqtt.homeassistant
2019-04-07 06:36:27.327 [ERROR][lisher@3f67593e][g.openhab.binding.mqtt.homeassistant] - FrameworkEvent ERROR - org.openhab.binding.mqtt.homeassistant
2019-04-07 06:36:27.342 [ERROR][lisher@3f67593e][g.openhab.binding.mqtt.homeassistant] - FrameworkEvent ERROR - org.openhab.binding.mqtt.homeassistant
2019-04-07 06:36:27.363 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.homie ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.homie
2019-04-07 06:36:27.374 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.homie ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.homie
2019-04-07 06:36:27.387 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.homie ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.homie
2019-04-07 06:36:27.399 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.homie ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.homie
2019-04-07 06:36:27.412 [ERROR][lisher@3f67593e][org.openhab.binding.mqtt.homie ] - FrameworkEvent ERROR - org.openhab.binding.mqtt.homie
I configure MQTT with ${OPENHAB_CONF}/services/addons.cfg and both thing and item files.
MQTT thing configuration:
Bridge mqtt:broker:mqtt_broker [
host="127.0.0.1",
secure=false,
port=1883,
qos=0,
retain=false,
clientid="Oh2MqttClient",
keep_alive_time=30000,
reconnect_time=60000,
username="client",
password="password"
] {
Thing topic wifi_sw03 "Sonoff Switch 3" {
Channels:
Type switch : command "Power Control" [
commandTopic="cmd/wifi-sw03/POWER",
stateTopic="stat/wifi-sw03/RESULT",
transformationPattern="JSONPATH:$.POWER",
retained=true,
on="ON",
off="OFF"
]
Type string : updated "Time" [
stateTopic="tele/wifi-sw03/STATE",
transformationPattern="JSONPATH:$.Time"
]
Type number : uptime "Switch Uptime" [
stateTopic="tele/wifi-sw03/STATE",
transformationPattern="JSONPATH:$.Uptime"
]
Type number : vcc "VCC" [
stateTopic="tele/wifi-sw03/STATE",
transformationPattern="JSONPATH:$.Vcc"
]
Type switch : state "Power State" [
stateTopic="tele/wifi-sw03/STATE",
transformationPattern="JSONPATH:$.POWER",
retained=true,
on="ON",
off="OFF"
]
Type number : ap "Wifi AP" [
stateTopic="tele/wifi-sw03/STATE",
transformationPattern="JSONPATH:$.Wifi.AP"
]
Type string : ssid "Wifi SSID" [
stateTopic="tele/wifi-sw03/STATE",
transformationPattern="JSONPATH:$.Wifi.SSId"
]
Type number : rssi "Wifi RSSI" [
stateTopic="tele/wifi-sw03/STATE",
transformationPattern="JSONPATH:$.Wifi.RSSI"
]
Type string : mac "Wifi AP MAC" [
stateTopic="tele/wifi-sw03/STATE",
transformationPattern="JSONPATH:$.Wifi.APMac"
]
}
}
Has some aspect of MQTT configuration changed in the latest snapshot version of the MQTT binding?