All,
I’d need some help. Given that I was using the old syntax and understand that I should rather use the new one I simply copied the full examples from the new documentation page (see above), but it still isn’t working.
When I copy this into my mqtt.things file
Bridge mqtt:broker:myUnsecureBroker [ host=“192.168178.46”,secure=“OFF” ]
{
Thing mqtt:topic:mything {
Channels:
Type switch : lamp “Kitchen Lamp” [ mqttstate=“lamp/enabled”, mqttcommand=“lamp/enabled/set” ]
Type switch : fancylamp “Fancy Lamp” [ mqttstate=“fancy/lamp/state”, mqttcommand=“fancy/lamp/command”, on=“i-am-on”, off=“i-am-off” ]
Type string : alarmpanel “Alarm system” [ mqttstate=“alarm/panel/state”, mqttcommand=“alarm/panel/set”, allowedStates=“ARMED_HOME,ARMED_AWAY,UNARMED” ]
Type color : lampcolor “Kitchen Lamp color” [ mqttstate=“lamp/color”, mqttcommand=“lamp/color/set”, rgb=true ]
Type dimmer : blind “Blind” [ mqttstate=“blind/state”, mqttcommand=“blind/set”, min=0, max=5, step=1 ]
}
}
I get a
2018-12-16 11:00:21.749 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘mqtt.things’, using it anyway:
Provide a thing type ID and a thing ID in this format:
<thingTypeId> <thingId>
2018-12-16 11:00:21.764 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model ‘mqtt.things’
warning/error. Displaying one of the switches in UI and changing them results in nothing being written out to MQTT. Using other tools I made sure I can read/write anonymously.
Secondly I get the following messages in the logs when i bundle:start the mqtt bundles
2018-12-16 11:08:31.628 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2018-12-16 11:08:31.631 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection ‘mosquitto’
2018-12-16 11:08:31.701 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection ‘m2m-eclipse’
2018-12-16 11:08:31.737 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection ‘broker’
so three brokers are started but I have only 1 in my mqtt.cfg file. Where are the brokers “mosquitto” and “m2m-eclipse” coming from?
broker.url=tcp://192.168.178.46:1883
broker.clientId=openhab
I’m pretty much sure there are only beginner config issues but I would be grateful for any hint what is going wrong
Thanks
Stefan