MQTT: Multiple things in Bridge definition

Hi all,

I have an Openhab installation (Version 2.5.3) that only uses the files approach. Nothing has been created via paperUI and no paperUI configurations files are in the according folder. So plain file based.

When I create multiple things within a MQTT bridge, only the bridge and the first thing appear on PaperUI and even the command “smartphone:things list” in the console does not show all the configured things.

log:tail throws no errors.

Whats wrong with the file?

Thanks
Horst

Bridge mqtt:broker:andimqttbroker "MQTT Broker.SCR" [host="192.168.0.2", secure=false] 
{
    Thing topic Generic_MQTT_Thing "MQTT Testlab.SCR" @ "Arbeitszimmer" 
    {
        Channels:
            Type switch : lamp "Kitchen Lamp" [ stateTopic="lamp/enabled", commandTopic="lamp/enabled/set" ]
            Type switch : fancylamp "Fancy Lamp" [ stateTopic="fancy/lamp/state", commandTopic="fancy/lamp/command", on="i-am-on", off="i-am-off" ]
            Type string : alarmpanel "Alarm system" [ stateTopic="alarm/panel/state", commandTopic="alarm/panel/set", allowedStates="ARMED_HOME,ARMED_AWAY,UNARMED" ]
            Type colorRGB : lampcolor "Kitchen Lamp color" [ stateTopic="lamp/color", commandTopic="lamp/color/set", rgb=true ]
            Type dimmer : blind "Blind" [ stateTopic="blind/state", commandTopic="blind/set", min=0, max=5, step=1 ]
            Type number : kesselabgas "KesselAbgas" [stateTopic="gas/abgas", commandTopic="gas/abgas/set"]
    }

    Thing topic Generic_MQTT_Thing "MQTT Occupancy Sensor SCR" @ "NodON PIR" 
    {
        Channels:
            Type switch : PIRNodOn "PIR Sensor scr" [ stateTopic="openhab/PIR", commandTopic="openhab/PIR", retained=false, postCommand=false ]
    }

    Thing topic Generic_MQTT_Thing "MicroPlugSwitch SCR" @ "MicroSmartPlug"
    {
        Channels:
            Type switch : MicroSmartPlugSwitch "MicroSmart On/Off" [ stateTopic="openhab/SmartPlug", commandTopic="openhab/SmartPlug", retained=false, postCommand=false ]
    }
}
1 Like

You gave all created (generic) MQTT things the same name (" Generic_MQTT_Thing"). You have to use different names!

1 Like

OMG. <Head -> Table; Head -> Table>

Thanks

2 Likes

@HarterHorst we have all been there!!!

LOL My mind was trying to parse that as html.

1 Like

Me too

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.