PiDome MQTT topics

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
oversc0re
New user
Posts: 3
Joined: 22 Sep 2016, 22:22

PiDome MQTT topics

#1 Post by oversc0re » 22 Sep 2016, 22:34

Hi all!

I switched recently from openhab to Pidome. I switched ESP easy configuration to Pidome's MQTT broker, however things are working only one way now. Sensors values are correctly transmitted from ESP to MQTT server (/hooks/deivces/17/group/temp), but I can't find the right way to switch a GPIO output on the ESP from MQTT. I can see that ESP subscribes to the topic /Home/ but whatever I send to that topic, it has no effect.
I don't know how to address the ESP in the first place. I tried searching for "Home" in the source code, but failed miserably. Can anyone suggest what to do or where to look (i was successfully controlling GPIOs e.g. /myesp/cmd pulse,12,1,1000 on openhab configuration).

Thank you for any suggestions and regards
oversc0re.

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: PiDome MQTT topics

#2 Post by Drum » 23 Sep 2016, 12:23

Check the subscribe template in tools/advanced. I have no idea how Pidome work, but you usually want the subscribe to be unique, so you can publish to that unit not all units, but for testing I guess it doesn't matter. Also make sure when you plubish it is exactly the same as what you subscribe to, for example the leading "/". You should see any messages received in the log. I have 2 tools I use for troubleshooting MQTT messages, MyMQTT on my android phone and Node Red on my Raspberry Pi 3. Both can be configured to subscribe to all, but MyMQTT is easier for sending test messages. IMO
See the Pidome section here there is a note in red, which is usually important.
http://www.esp8266.nu/index.php/EasyProtocols

There has also been some recent activity in the forum on this topic, take a look at these, I think there may be something there. Start with the second one first, I think.
http://www.esp8266.nu/forum/viewtopic.p ... 8&start=40

http://www.esp8266.nu/forum/viewtopic.php?f=5&t=721

oversc0re
New user
Posts: 3
Joined: 22 Sep 2016, 22:22

Re: PiDome MQTT topics

#3 Post by oversc0re » 02 Oct 2016, 14:52

Hello,

Thank you for your reply. I knew most of the things, but I didn't know that I can change the subscribe templates here:
Drum wrote:Check the subscribe template in tools/advanced.
I tested lots of combinations with MQTT settings but I wasn't able to get a command through.

I ended up using OpenHAB MQTT settings with Pidome's publish template and it works!

Thanx for help,

Over.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 13 guests