MQTT Initiate Event

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
robinj
New user
Posts: 1
Joined: 07 Dec 2017, 13:34

MQTT Initiate Event

#1 Post by robinj » 07 Dec 2017, 13:52

I have a couple of events defined under the rules section which start timers and then switch gpio states. I can quite happily instigate these events using http requests as per the ESPEasy command reference below. Since event is a 'special' type, I gather I should also be able to trigger it using MQTT but seem unable to do this. Does anyone know if this actually works, Cannot find any examples on the web

Event Special Create an event, it's possible to send a float value along as well. event,<eventName>
event,<eventName>=<eventValue>

Many thanks

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

Re: MQTT Initiate Event

#2 Post by grovkillen » 07 Dec 2017, 13:57

You can trigger an event by sending the payload to this topic:

Generic topic

Code: Select all

<MQTT subscribe template>/cmd
Event payload

Code: Select all

event,<eventName>=<eventValue>
https://www.letscontrolit.com/wiki/inde ... _Reference
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:

Who is online

Users browsing this forum: Ahrefs [Bot], Anthropic Claude Bot [bot] and 11 guests