OPENHABIAN doesn´t show MQTT Temp

Hello,

just new here and openHab is running well…

I just don´t get the MQTT data displayed. I run OPENHABIAN on a RASPBERRY PI.
The system runs at least a year and is more or less a testsystem actually only used on xmas :wink:

I use it to switch powersockets for the tree and some decoration. I´m always trying to make the system bigger…
Just want to use it with some low budget arduino stuff on selfmade sensors and co.

NOW the problem.

I have a items and sitemap configurated and working. Rules are working well…
Use http request to switch 433MHz sockets and relaybox via selfmade arduino 433MHz bridge.
All fine and running.
Problem is not getting the status of the switches so i want to implement MQTT.
MQTT is running on synology NAS and subscribe and publish seem to work (checked with MQTT fx)
But i can´t see the temp in this case on my sitemap. In my opinion it seems to be correct but i haven´t a display.

In MQTT fx i use following:

Client Id:              Kroete
IP:                        192.168.2.55
Port:                     1883
User and Passwort blank

Publish:              temperature     54
Subscribe:          temperature      

on openhab items:

Number  FF_FamilyRoom_Temperature    "Temperatur Schildkroeten"  <temperature> (FF_FamilyRoom) {mqtt="<[Kroete:temperature:state:default]"}

Sitemap:

Text item=FF_FamilyRoom_Temperature label="Temperatur Schildkroeten"

If i subscribe on Android MQTT Dashboard i get the temperature shown.
But in OpenHab nothing…

Some hint what to look for ??? Last year i decided to let it be as it is… but new year new luck … maybe…

Regards…

You have to tell it to display the temp as part of the label.

So i added
[%.1f °C]
in items … no change

Number  FF_FamilyRoom_Temperature    "Temperatur Schildkroeten [%.1f °C]"  <temperature> (FF_FamilyRoom) {mqtt="<[Kroete:temperature:state:default]"}

after that in sitemaps .... no change

Text item=FF_FamilyRoom_Temperature label="Temperatur Schildkroeten [%.1f °C]"

How did you configure MQTT in mqtt.cfg?

Have you reviewed MQTT Binding (v1.11) Getting Started 101

1 Like

Can you publish you mqtt.cfg, please

My MQTT.cfg

ssl://localhost:8883
mosquitto.url=tcp://192.168.2.55:1883
mosquitto.clientId=openhabian

I just found the first mistake yesterday… don´t know why i couldn´t see it for such a long time: Had a wrong IP adress in my mqtt.cfg
realised that issue by using openhabianpi:9001 which i hadn´t known before

Think i come closer but for now still not working

Made the NAME of the Item more simple for the moment

The items

Group    Home                        "Unser Zuhause"       <house>

Group    GF                          "Erdgeschoss"         <groundfloor>   (Home)
Group    FF                          "Erster Stock"        <firstfloor>    (Home)

Group    GF_Backyard                 "Hinterhof"           <lawnmower>     (Home, GF)
Group    GF_Corridor                 "Gang"                <corridor>      (Home, GF)
Group    GF_Dining                   "Esszimmer"                           (Home, GF)
Group    GF_Garage                   "Garage"              <garage>        (Home, GF)
Group    GF_KidsRoom                 "Kinderzimmer"        <girl_2>        (Home, GF)
Group    GF_Kitchen                  "Kueche"              <kitchen>       (Home, GF)
Group    GF_LivingRoom               "Wohnzimmer"          <sofa>          (Home, GF)
Group    GF_MasterBedroom            "Hauptschlafzimmer"   <bedroom_red>   (Home, GF)
Group    GF_Toilet                   "Toilette"            <toilet>        (Home, GF)
Group    GF_Terrace                  "Terrasse"            <terrace>       (Home, GF)
Group    FF_Balcony                  "Balkon"                              (Home, FF)
Group    FF_Bathroom                 "Badezimmer"          <bath>          (Home, FF)
Group    FF_Bedroom                  "Kinderzimmer"        <boy_2>         (Home, FF)
Group    FF_FamilyRoom               "Familienzimmer"      <parents_2_4>   (Home, FF)
Group    FF_Hallway                  "Flur"                <corridor>      (Home, FF)
Group    FF_KidsRoom                 "Kinderzimmer"        <girl_2>        (Home, FF)
Group    FF_Office                   "Buero"               <office>        (Home, FF)
Group    FF_StorageRoom              "Lagerraum"           <suitcase>      (Home, FF)

Switch   GF_Backyard_Light           "Licht"               <light>         (GF_Backyard, gLight)           ["Lighting"]    
Switch   GF_Corridor_Light           "Licht"               <light>         (GF_Corridor, gLight)           ["Lighting"]     
Switch   GF_Corridor_Power           "Steckdose"           <poweroutlet>   (GF_Corridor, gPower)           ["Switchable"]   
Switch   GF_Corridor_Xmas            "Kranz"                <xmas>          (GF_Corridor, gXmas)           ["Switchable"]   {http=">[ON:POST:http://192.168.2.200/ein2] >[OFF:POST:http://192.168.2.200/aus2]"}
Switch   GF_Dining_Light             "Licht"               <light>         (GF_Dining, gLight)             ["Lighting"]     
Switch   GF_Dining_Power             "Steckdose"           <poweroutlet>   (GF_Dining, gPower)             ["Switchable"]   
Switch   GF_Garage_Light             "Licht"               <light>         (GF_Garage, gLight)             ["Lighting"]     
Switch   GF_Garage_Power             "Steckdose"           <poweroutlet>   (GF_Garage, gPower)             ["Switchable"]   
Switch   GF_KidsRoom_Light           "Licht"               <light>         (GF_KidsRoom, gLight)           ["Lighting"]     
Switch   GF_KidsRoom_Power           "Steckdose"           <poweroutlet>   (GF_KidsRoom, gPower)           ["Switchable"]   
Switch   GF_Kitchen_Light            "Licht"               <light>         (GF_Kitchen, gLight)            ["Lighting"]     
Switch   GF_Kitchen_Power            "Steckdose"           <poweroutlet>   (GF_Kitchen, gPower)            ["Switchable"]   
Switch   GF_LivingRoom_Light         "Licht"               <light>         (GF_LivingRoom, gLight)         ["Lighting"]     
Switch   GF_LivingRoom_Power         "Steckdose"           <poweroutlet>   (GF_LivingRoom, gPower)         ["Switchable"]   
Switch   GF_LivingRoom_Xmas          "Christbaum"                <xmas>          (GF_LivingRoom, gXmas)          ["Switchable"]   {http=">[ON:POST:http://192.168.2.200/ein7] >[OFF:POST:http://192.168.2.200/aus7]"}
Switch   GF_LivingRoom_Wii           "Zocken"                 <none>          (GF_LivingRoom, gWii)           ["Switchable"]   {http=">[ON:POST:http://192.168.2.200/ein4] >[OFF:POST:http://192.168.2.200/aus4]"}
Switch   GF_LivingRoom_Mediacenter   "MediaCenter"         <none>          (GF_LivingRoom, gMediacenter)   ["Switchable"]   {http=">[ON:POST:http://192.168.2.200/ein1] >[OFF:POST:http://192.168.2.200/aus1]"}
Switch   GF_MasterBedroom_Light      "Licht"               <light>         (GF_MasterBedroom, gLight)      ["Lighting"]     
Switch   GF_MasterBedroom_Power      "Steckdose"           <poweroutlet>   (GF_MasterBedroom, gPower)      ["Switchable"]   
Switch   GF_Toilet_Light             "Licht"               <light>         (GF_Toilet, gLight)             ["Lighting"]     
Switch   GF_Toilet_Power             "Steckdose"           <poweroutlet>   (GF_Toilet, gPower)             ["Switchable"]   
Switch   GF_Terrace_Light            "Licht"               <light>         (GF_Terrace, gLight)            ["Lighting"]     
Switch   GF_Terrace_Power            "Steckdose"           <poweroutlet>   (GF_Terrace, gPower)            ["Switchable"]   
Switch   GF_Terrace_Xmas             "Busch"                <xmas>          (GF_Terrace, gXmas)             ["Switchable"]   {http=">[ON:POST:http://192.168.2.200/ein5] >[OFF:POST:http://192.168.2.200/aus5]"}
Switch   FF_Balcony_Light            "Licht"               <light>         (FF_Balcony, gLight)            ["Lighting"]     
Switch   FF_Balcony_Power            "Steckdose"           <poweroutlet>   (FF_Balcony, gPower)            ["Switchable"]   
Switch   FF_Bathroom_Light           "Licht"               <light>         (FF_Bathroom, gLight)           ["Lighting"]     
Switch   FF_Bathroom_Power           "Steckdose"           <poweroutlet>   (FF_Bathroom, gPower)           ["Switchable"]   
Switch   FF_Bedroom_Light            "Licht"               <light>         (FF_Bedroom, gLight)            ["Lighting"]     
Switch   FF_Bedroom_Power            "Steckdose"           <poweroutlet>   (FF_Bedroom, gPower)            ["Switchable"]   
Switch   FF_FamilyRoom_Light         "Licht"               <light>         (FF_FamilyRoom, gLight)         ["Lighting"]     {http=">[ON:POST:http://192.168.2.200/um1] >[OFF:POST:http://192.168.2.200/um1]"}
Switch   FF_FamilyRoom_Light2        "Licht 2"             <light>   	   (FF_FamilyRoom, gLight)         ["Lighting"]     {http=">[ON:POST:http://192.168.2.200/um2] >[OFF:POST:http://192.168.2.200/um2]"}
Switch   FF_FamilyRoom_Power         "Steckdose"   	<poweroutlet>        (FF_FamilyRoom, gMotion)                         
Number   Temperature   "Temperatur"   	<temperature> 	(FF_FamilyRoom, gTemperature)			{mqtt="<[mosquitto:Kroete\temperature:state:default]"}
Number   Humidity	     "Luftfeuchte"	<humidity>	  (FF_FamilyRoom, gTemperature)			{mqtt="<[mosquitto:Kroete\humidity:state:default]"}
Switch   FF_Hallway_Light            "Licht"               <light>         (FF_Hallway, gLight)            ["Lighting"]     
Switch   FF_Hallway_Power            "Steckdose"           <poweroutlet>   (FF_Hallway, gPower)            ["Switchable"]   
Switch   FF_KidsRoom_Light           "Licht"               <light>         (FF_KidsRoom, gLight)           ["Lighting"]     
Switch   FF_KidsRoom_Power           "Steckdose"           <poweroutlet>   (FF_KidsRoom, gPower)           ["Switchable"]   
Switch   FF_Office_Light             "Licht"               <light>         (FF_Office, gLight)             ["Lighting"]     
Switch   FF_Office_Power             "Steckdose"           <poweroutlet>   (FF_Office, gPower)             ["Switchable"]   
Switch   FF_StorageRoom_Light        "Licht"               <light>         (FF_StorageRoom, gLight)        ["Lighting"]  

Group:Switch:OR(ON, OFF)   gLight         "Licht"             <light>         (Home)
Group:Switch:OR(ON, OFF)   gPower         "Steckdose"         <poweroutlet>   (Home)
Group:Switch:OR(ON, OFF)   gXmas          "Xmas"              <none>          (Home)
Group:Switch:OR(ON, OFF)   gWii           "Wii"               <none>          (Home)
Group:Switch:OR(ON, OFF)   gMediacenter   "MediaCenter"       <none>          (Home)
Group:Switch:OR(ON, OFF)   gMotion        "Bewegungsmelder"   <motion>        (Home)
´´´
the sitemap
```csv
sitemap UnserHaus label="Unser Zuhause" {
    Frame label="Erdgeschoss" icon="groundfloor" {
        Group item=GF_Backyard label="Hinterhof"
		{Switch item=GF_Backyard_Light label="Garagenecke"}
        Group item=GF_Corridor label="Gang"
		{Switch item=GF_Corridor_Light label="Licht"
		 Switch item=GF_Corridor_Power label="Steckdose"
		 Switch item=GF_Corridor_Xmas label="Xmas"}
        Group item=GF_Dining label="Esszimmer"
		{Switch item=GF_Dining_Light label="Esstisch"
		 Switch item=GF_Dining_Power label="Fondue"}
		 Group item=GF_Kitchen label="Kueche"
		{Switch item=GF_Kitchen_Light label="Deckenleuchte"
		 Switch item=GF_Kitchen_Power label="Arbeitsplatte"}
        Group item=GF_Garage label="Garage"
		{Switch item=GF_Garage_Light label="Deckenleuchte"
		Switch item=GF_Garage_Power label="Osten"		}
        Group item=GF_KidsRoom label="Kinderzimmer"
		{Switch item=GF_KidsRoom_Light label="Kinderzimmer"
		Switch item=GF_KidsRoom_Power label="Kinderzimmer"}
        Group item=GF_LivingRoom label="Wohnzimmer"
		{Switch item=GF_LivingRoom_Light label="Decke"
		Switch item=GF_LivingRoom_Power label="Steckdose"
		Switch item=GF_LivingRoom_Xmas label="Christbaum"
		Switch item=GF_LivingRoom_Wii label="Zocken"
		Switch item=GF_LivingRoom_Mediacenter label="MediaCenter"}
        Group item=GF_MasterBedroom label="Elternschlafzimmer"
		{Switch item=GF_MasterBedroom_Light label="Deckenleuchte"}
        Group item=GF_Toilet label="Toilette"
		{Switch item=GF_Toilet_Light label="Deckenleuchte"}
        Group item=GF_Terrace label="Terrasse"
		{Switch item=GF_Terrace_Light label="Wandleuchte"}
    }

    Frame label="Erster Stock" icon="firstfloor" {
        Group item=FF_Balcony label="Balkon"{
		Switch item=FF_Balcony_Light label="Wandleuchte"
		Switch item=FF_Balcony_Power label="Steckdose"}
                      
        Group item=FF_Bathroom label="Badezimmer"{
        Switch item=FF_Bathroom_Light label="Deckenleuchte"
        Switch item=FF_Bathroom_Power label="Waschbecken"}
              
		Group item=FF_Bedroom label="Kinderzimmer"{
        Switch item=FF_Bedroom_Light label="Schlafzimmer"
        Switch item=FF_Bedroom_Power label="Schlafzimmer"}
              
		Group item=FF_FamilyRoom label="Familienzimmer"{
         Switch item=FF_FamilyRoom_Light label="Deckenleuchte"
         Switch item=FF_FamilyRoom_Power label="Steckdose"
		 Switch item=FF_FamilyRoom_Light2 label="Deckenleuchte_2"
		 Text item=Temperature label="Temperatur Kroeten [%.1f °C]"
		 Text item=Humidity label="Luftfeuchte Kroeten [%.1f %%]"}
              
		Group item=FF_Hallway label="Flur"{
        Switch item=FF_Hallway_Light label="Deckenleuchte"
        Switch item=FF_Hallway_Power label="Steckdose"}
          
		Group item=FF_KidsRoom label="Kinderzimmer"{
         Switch item=FF_KidsRoom_Light label="Deckenleuchte"
         Switch item=FF_KidsRoom_Power label="Steckdose"}
              
		Group item=FF_Office label="Buero"{
         Switch item=FF_Office_Light label="Deckenleuchte"
         Switch item=FF_Office_Power label="Steckdose"}
           
		Group item=FF_StorageRoom label="Lagerraum"{
		Switch item=FF_StorageRoom_Light label="Deckenleuchte"}
       
    }

    Frame {
        Text label="Xmas" {
            Switch item=GF_Corridor_Xmas label="Gang"
            Switch item=GF_LivingRoom_Xmas label="Wohnzimmer"
            Switch item=GF_Terrace_Xmas label="Terrasse"
        }

        Text label="Temperatur" icon="temperature" {
            Text item=Temperature label="Familienzimmer"
        }
    }
}

openhabianpi:9001 filtered for MQTT
Why is here Starting connection MOSQUITTO and then Starting connection ?
do i need persistence ?
thought persistence is only needed by fetching OLD values at startup

2018-10-27 09:14:28.458 [WARN ] [g.dispatch.internal.ConfigDispatcher] - Could not process config file '.#mqtt-persistence.cfg': /etc/openhab2/services/.#mqtt-persistence.cfg (No such file or directory)

2018-10-27 09:14:48.247 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.

2018-10-27 09:14:48.251 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mosquitto'

2018-10-27 09:14:48.505 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection '<broker>'

2018-10-27 09:14:48.557 [ERROR] [penhab.io.transport.mqtt.MqttService] - Error starting broker connection

org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server

	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:79) [226:org.openhab.io.transport.mqtt:1.11.0]

	at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:650) [226:org.openhab.io.transport.mqtt:1.11.0]

	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:70) ~[?:?]

2018-10-27 09:14:50.076 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:topic

2018-10-27 09:14:50.079 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:message

You mqtt.cfg is wrong:
Remove the ssl line or comment it out
Use:

mosquitto.url=tcp://192.168.2.55:1883
mosquitto.clientId=openhabian

If openHAB and mosquitto are running on the same machine:

mosquitto.url=tcp://localhost:1883
mosquitto.clientId=openhabian

Sorry… was a copy paste error…

this line is already commented out. I can´t understand why there is the message START CONNECTION BROKER

Thanks for your help… :+1:

2018-10-27 20:14:44.861 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.

2018-10-27 20:14:44.864 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mosquitto'

2018-10-27 20:14:45.157 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection '<broker>'

2018-10-27 20:14:45.305 [ERROR] [penhab.io.transport.mqtt.MqttService] - Error starting broker connection

org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server

	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:79) [226:org.openhab.io.transport.mqtt:1.11.0]

	at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:650) [226:org.openhab.io.transport.mqtt:1.11.0]

	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:70) ~[?:?]

Clear the cache

Still the same…

actual log:

2018-10-27 20:14:40.083 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'UnserHaus.sitemap'
2018-10-27 20:14:40.162 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'test.sitemap'
2018-10-27 20:14:44.217 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
2018-10-27 20:14:44.315 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-10-27 20:14:44.432 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2018-10-27 20:14:44.817 [INFO ] [b.core.service.AbstractActiveService] - HTTP Refresh Service has been started
2018-10-27 20:14:44.861 [INFO ] [penhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
2018-10-27 20:14:44.864 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'mosquitto'
2018-10-27 20:14:45.157 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection '<broker>'
2018-10-27 20:14:45.305 [ERROR] [penhab.io.transport.mqtt.MqttService] - Error starting broker connection
org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server
	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:79) [226:org.openhab.io.transport.mqtt:1.11.0]
	at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:650) [226:org.openhab.io.transport.mqtt:1.11.0]
	at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.net.ConnectException: Connection refused (Connection refused)
	at java.net.PlainSocketImpl.socketConnect(Native Method) ~[?:?]
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[?:?]
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[?:?]
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[?:?]
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:?]
	at java.net.Socket.connect(Socket.java:589) ~[?:?]
	at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:70) ~[?:?]
	... 2 more
2018-10-27 20:14:46.602 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:topic
2018-10-27 20:14:46.606 [WARN ] [mqtt.internal.MqttPersistenceService] - mqtt-persistence:message
2018-10-27 20:14:47.265 [WARN ] [xtr064.internal.FritzboxTr064Binding] - Fritzbox User was not provided in config. Using default username.
2018-10-27 20:14:49.080 [INFO ] [b.core.service.AbstractActiveService] - FritzboxTr064 Refresh Service has been started
2018-10-27 20:14:49.093 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-10-27 20:14:49.102 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-10-27 20:14:49.108 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-10-27 20:14:49.117 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Temperature' for widget org.eclipse.smarthome.model.sitemap.Text
2018-10-27 20:14:49.120 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item for widget org.eclipse.smarthome.model.sitemap.Text
2018-10-27 20:14:49.126 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Humidity' for widget org.eclipse.smarthome.model.sitemap.Text
2018-10-27 20:14:49.129 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Humidity' for widget org.eclipse.smarthome.model.sitemap.Text
2018-10-27 20:14:49.133 [ERROR] [ui.internal.items.ItemUIRegistryImpl] - Cannot retrieve item 'Humidity' for widget org.eclipse.smarthome.model.sitemap.Text

please publish your complete mqtt.cfg

MQTT.CFG

# 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
mosquitto.url=tcp://192.168.2.55:1883

# Optional. Client id (max 23 chars) to use when connecting to the broker.
# If not provided a random default is generated.
mosquitto.clientId=openhabian

# Optional. True or false. If set to true, allows the use of clientId values
# up to 65535 characters long. Defaults to false.
# NOTE: clientId values longer than 23 characters may not be supported by all
# MQTT servers. Check the server documentation.
#<broker>.allowLongerClientIds=false

# Optional. User id to authenticate with the broker.
# mosquitto.user=openhabian

# Optional. Password to authenticate with the broker.
# mosquitto.pwd=mosquitto

# 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=<retain>

# 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>

As i told at the beginning of the thread it´s no problem to get the mqtt read with MQTT Dashboard on the android phone. As Client i use MQTT fx for testing.

Settings on MQTT fx:
Broker Address : 192.168.2.55
Broker Port : 1883
Client Id : Kroete
Time out set to 30
keep alive set to 120
autoreconnect

Mqtt Dashboard Settings:

Address: 192.168.2.55
Port: 1883
Kroete
temperature
QOS 0

Add this:

pid:org.openhab.mqtt

as the VERY FIRST LINE of mqtt.cfg and restart openHAB

Once it works, comment it out

So… the issue starting first time connecting to the Broker mosquitto and second time to Broker “broker” seems to be gone for now.

Still got no temp displayed but the errormessage on startup seems to be gone.
Thanks… think now it´s on a good way

But can you explain what this line does?

It forces openhab to accept ONLY the mqtt.cfg below and therefore removes the “ghost” <broker>

Let’s have a look at your items now…

Number   Temperature   "Temperatur"   	<temperature> 	(FF_FamilyRoom, gTemperature)			{mqtt="<[mosquitto:temperature:state:default]"}
Number   Humidity	     "Luftfeuchte"	<humidity>	  (FF_FamilyRoom, gTemperature)			{mqtt="<[mosquitto:humidity:state:default]"}

So i changed the item and sitemap back to the start again…

Number   FF_FamilyRoom_Temperature   "Temperatur"           <temperature>  (FF_FamilyRoom, gTemperature)   	{mqtt="<[mosquitto:kroete/temperature:state:default]"}
Number   FF_FamilyRoom_Humidity	     "Luftfeuchte"	        <humidity>	   (FF_FamilyRoom, gTemperature)	{mqtt="<[mosquitto:kroete/humidity:state:default]"}

and made them all lowercase. For testing i changed it to a more simple name but in the end it should me with names of the rooms and so on.

The sitemap actually looks like this now

Group item=FF_FamilyRoom label="Familienzimmer"{
         Switch item=FF_FamilyRoom_Light label="Deckenleuchte"
         Switch item=FF_FamilyRoom_Power label="Steckdose"
		 Switch item=FF_FamilyRoom_Light2 label="Deckenleuchte_2"
		 Text item=FF_FamilyRoom_Temperature label="Temperatur Kroeten [%.1f °C]"
		 Text item=FF_FamilyRoom_Humidity label="Luftfeuchte Kroeten [%.1f %%]"}

And i will change nothing without you for now not to get new bugs. :wink:

According to:

Your binding should be

{ mqtt="<[mosquitto:temperature:state:default]" }
and
{ mqtt="<[mosquitto:humidity:state:default]" }