mqtt problem with wemos mini and BME Sensor

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
sendnudes
New user
Posts: 3
Joined: 10 Sep 2018, 17:12

mqtt problem with wemos mini and BME Sensor

#1 Post by sendnudes » 10 Sep 2018, 17:31

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

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: mqtt problem with wemos mini and BME Sensor

#2 Post by grovkillen » 10 Sep 2018, 17:45

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?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

sendnudes
New user
Posts: 3
Joined: 10 Sep 2018, 17:12

Re: mqtt problem with wemos mini and BME Sensor

#3 Post by sendnudes » 11 Sep 2018, 09:38

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

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: mqtt problem with wemos mini and BME Sensor

#4 Post by grovkillen » 11 Sep 2018, 10:22

I suggest you change the publish topic to: Climate/Office/%valname%
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

sendnudes
New user
Posts: 3
Joined: 10 Sep 2018, 17:12

Re: mqtt problem with wemos mini and BME Sensor

#5 Post by sendnudes » 11 Sep 2018, 11:18

problem solved. thank you

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: mqtt problem with wemos mini and BME Sensor

#6 Post by grovkillen » 11 Sep 2018, 13:40

Glad I could help! :)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests