Page 1 of 1

mqtt problem with wemos mini and BME Sensor

Posted: 10 Sep 2018, 17:31
by sendnudes
Hello, i am using some esp boards with different temperature sensors. most of them are DHT based but i have also some BME Sensors.
One BME is connected and configured with a Wemos D1 Mini.
Readings from the sensor are working fine. i can see temperature, humidity and pressure in the device menu on the webinterface of easy esp but i got no informations on the mqtt broker.
the mqtt setup is the same like on my other esps with the dht sensors.

controller subscribe: Climate/Office
controller publish: Climate/Office
controller lwl topic: Climate/Office/%valname%

if i subscribe to Climate/Office/#
i only get the info topic: Climate/Office/%valname%
with the connect and disconnect strings but no temperature or other informations

Re: mqtt problem with wemos mini and BME Sensor

Posted: 10 Sep 2018, 17:45
by grovkillen
You're not using %tskname% and %valname% in the publish topic meaning that you aren't giving the broker unique topics per value being sent. Is that what you want?

Re: mqtt problem with wemos mini and BME Sensor

Posted: 11 Sep 2018, 09:38
by sendnudes
the mosquitto logfile is showing me that:

1536651134: ESPW-1 0 Climate/Office/
1536651134: Received PUBLISH from ESPW-1 (d0, q0, r1, m0, 'Climate/Office/%valname%', ... (9 bytes))

but for my understanding %valname% is a systemvar and has to transport the information which is stored in the var not ne name by itself

Re: mqtt problem with wemos mini and BME Sensor

Posted: 11 Sep 2018, 10:22
by grovkillen
I suggest you change the publish topic to: Climate/Office/%valname%

Re: mqtt problem with wemos mini and BME Sensor

Posted: 11 Sep 2018, 11:18
by sendnudes
problem solved. thank you

Re: mqtt problem with wemos mini and BME Sensor

Posted: 11 Sep 2018, 13:40
by grovkillen
Glad I could help! :)