[solved] need help by mqtt imports on an oled display

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
tklein.lotte@web.de
Normal user
Posts: 18
Joined: 29 Mar 2017, 12:05

[solved] need help by mqtt imports on an oled display

#1 Post by tklein.lotte@web.de » 31 Mar 2017, 10:42

hello,

can somebody please explain to me why mosquitto_pub -t wemos/line2 -m "14" update the display on an wemos d1 mini (esp mega) and this one mosquitto_pub -t Wemos_Schlafzimmer/line2 -m "12" doesn't work.
The device ist named "Wemos_Schlafzimmer" and the original path of OpenHAB MQTT ist default.

Greetings
Thomas
Attachments
mqtt_wemos_problem.png
mqtt_wemos_problem.png (70.37 KiB) Viewed 3148 times
Last edited by tklein.lotte@web.de on 31 Mar 2017, 15:27, edited 1 time in total.

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

Re: need help by mqtt imports on an oled display

#2 Post by grovkillen » 31 Mar 2017, 13:48

I think you forget the first "/" in your publication. By the way I go with the MQTT standard of not having a leading / in my topics just because of this problem you are facing.

You either add a / in the beginning or change the controller setting by removing the leading / in both publish and subscribe field.
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:

tklein.lotte@web.de
Normal user
Posts: 18
Joined: 29 Mar 2017, 12:05

Re: need help by mqtt imports on an oled display

#3 Post by tklein.lotte@web.de » 31 Mar 2017, 15:27

thx grovkillen.

I've found the stupid mistake. Under my MQTT Import device the string contained "wemos". I'll test you informations.

Greetings
Thomas

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 0 guests