[SOLVED] Channels not showing up

I’m trying to use temp sensors connected on a ESP12 flashed with espeasy.
At the moment i have 2 sensors connected witch are working fine and are publishing there data.
The problem witch i have is that i have a file created with the 2 sensors but only 1 is showing up in PaperUI.
When i link the one that showed up with the 2 items i always get the same value.
What am i doing wrong?

Thing mqtt:topic:Esp1 "Huis" (mqtt:systemBroker:embedded-mqtt-broker) @ "Huis" {
    Channels:
        Type number : temp     "T_Aan"         [ stateTopic="ESP1/Aanvoer/A1" ]
        Type number : temp     "T_Af"          [ stateTopic="ESP1/Afvoer/A2" ]
    }
Number GF_LR_Aanvoer  "T_Aan [%.1f °C]" <temperature> (Home, gTemperature) { channel="mqtt:systemBroker:embedded-mqtt-broker:ESP1:Aanvoer:A1" }
Number GF_LR_Afvoer  "T_Af [%.1f °C]" <temperature> (Home, gTemperature) { channel="mqtt:systemBroker:embedded-mqtt-broker:ESP1:Afvoer:A2" }

It’s recommended to create your Thing using PaperUI and use files for your items. That being mentioned I do not see an issue with either of your files.

Do you see anything in the logs? Have you tried restarting OH and watching the logs as it loads?

Are you using the embedded broker or mosquitto?

Try:

    Type number : temp_A1     "T_Aan"         [ stateTopic="ESP1/Aanvoer/A1" ]
    Type number : temp_A2   "T_Af"

I have restarted OH and i see the following appearing:
2019-12-21 18:53:44.233 [WARN ] [.MqttBrokerConnectionServiceInstance] - MqttBroker connection configuration faulty: host : You need to provide a hostname/IP!

2019-12-21 18:53:44.312 [INFO ] [roker.internal.EmbeddedBrokerService] - Broker persistence file: mqttembedded.bin

2019-12-21 18:53:44.487 [WARN ] [roker.internal.EmbeddedBrokerService] - persistence corrupt: Could not deserialize [-84, -19, 0, 5, 115, 114, 0, 45, 105, 111, 46, 109, 111, 113, 117, 101, 116, 116, 101, 46, 98, 114, 111, 107, 101, 114, 46, 115, 117, 98, 115, 99, 114, 105, 112, 116, 105, 111, 110, 115, 46, 83, 117, 98, 115, 99, 114, 105, 112, 116, 105, 111, 110, -47, 11, -117, 54, 80, -6, 26, -58, 2, 0, 3, 76, 0, 8, 99, 108, 105, 101, 110, 116, 73, 100, 116, 0, 18, 76, 106, 97, 118, 97, 47, 108, 97, 110, 103, 47, 83, 116, 114, 105, 110, 103, 59, 76, 0, 12, 114, 101, 113, 117, 101, 115, 116, 101, 100, 81, 111, 115, 116, 0, 37, 76, 105, 111, 47, 110, 101, 116, 116, 121, 47, 104, 97, 110, 100, 108, 101, 114, 47, 99, 111, 100, 101, 99, 47, 109, 113, 116, 116, 47, 77, 113, 116, 116, 81, 111, 83, 59, 76, 0, 11, 116, 111, 112, 105, 99, 70, 105, 108, 116, 101, 114, 116, 0, 40, 76, 105, 111, 47, 109, 111, 113, 117, 101, 116, 116, 101, 47, 98, 114, 111, 107, 101, 114, 47, 115, 117, 98, 115, 99, 114, 105, 112, 116, 105, 111, 110, 115, 47, 84, 111, 112, 105, 99, 59, 120, 112, 116, 0, 22, 109, 113, 116, 116, 45,… [1.4.199/0], deleting /var/lib/openhab2/mqttembedded.bin

I dont know what to

i am using the embedded broker.

I will try it using Paper UI to create a new Thing.

Uninstall the mqtt binding (the embedded one moquette) and use openhabian-config tool to install mosquitto mqtt. Then restart OH and maybe clean the cache.

What are you running OH on, Raspberry Pi or other?

I believe the problem is you are using the same name for both channels.

Thing mqtt:topic:Esp1 "Huis" (mqtt:systemBroker:embedded-mqtt-broker) @ "Huis" {
Channels:
Type number : temp     "T_Aan"         [ stateTopic="ESP1/Aanvoer/A1" ]
Type number : temp     "T_Af"          [ stateTopic="ESP1/Afvoer/A2" ]
}

Try giving them a unique name.

Thing mqtt:topic:Esp1 “Huis” (mqtt:systemBroker:embedded-mqtt-broker) @ “Huis” {
Channels:
Type number : temp_A1 “T_Aan” [ stateTopic=“ESP1/Aanvoer/A1” ]
Type number : temp_A2 “T_Af” [ stateTopic=“ESP1/Afvoer/A2” ]
}

@pascal Each “item” has an individual name so I would think it should work as is but your suggestion is worth a try.

@John91180 Naming issue or not it’s recommended to use the mosquitto broker as moquette has been reported as having issues.

If you choose to keep the embedded broker then for the errors in the logs above remove the embedded broker thing, then remove the /var/lib/openhab2/mqttembedded.bin file and add the embedded broker thing again.

Thanks, the problem was the same name.