MQTT listen to a GPIO, but not name

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Normal user
Posts: 1
Joined: 22 Mar 2020, 22:22

MQTT listen to a GPIO, but not name

#1 Post by BlueMan » 22 Mar 2020, 22:36

I have a problem with switching a state for a relay (Przekaznik) with MQTT - I would like to use the name of device instead gpio. This will be the same way as espeasy broadcasting a message of changed state of a device.

To change a state, with this command:

Code: Select all

ESP_Gabinet/gpio/12 1
(or zero to turn it off) is working fine, but when I want to use

Code: Select all

ESP_Gabinet/Przekaznik/State 1
then nothing happens.
Selection_109.png (59.55 KiB) Viewed 2028 times

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

Re: MQTT listen to a GPIO, but not name

#2 Post by grovkillen » 23 Mar 2020, 06:59

You should use the cmd topic. See here: ... mmand.html
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:
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests