MQTT listen to a GPIO, but not name

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
BlueMan
New 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.
Attachments
Selection_109.png
Selection_109.png (59.55 KiB) Viewed 3301 times

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

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: https://espeasy.readthedocs.io/en/lates ... 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: 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 13 guests