[Solved] Easy Question MQTT vs. Event

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
scalg
New user
Posts: 3
Joined: 08 Aug 2017, 02:53

[Solved] Easy Question MQTT vs. Event

#1 Post by scalg » 08 Aug 2017, 02:58

Hi,

I'm trying to simply activation this event via MQTT but i cannot get around it ! Can anyone help me ?

Here's the event in question :

on spray do
gpio,15,1
timerSet 1,1
endon

on Rules#Timer=1 do
gpio,15,0
endon

The name of my EspEasy is SprayNode, the name of my device (GPIO) is Spray and the name of my event spray. I've tried many combinaison without success. SprayNode/cmd/spray, SprayNode/Spray/spray ....

Do i need a payload of 1 ?
Last edited by scalg on 08 Aug 2017, 18:09, edited 1 time in total.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Easy Question MQTT vs. Event

#2 Post by papperone » 08 Aug 2017, 07:54

for me it works like this (I send out cmd via MQTT using nodered):

1) topic = "/<modulename>/<devicename>/cmd"
2) payload = "event,<eventname>"

in your case if shoudl be: topic = "/SprayNode/Spray/cmd" and payload "event,spray"

hope it helps :)
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

scalg
New user
Posts: 3
Joined: 08 Aug 2017, 02:53

Re: Easy Question MQTT vs. Event

#3 Post by scalg » 08 Aug 2017, 11:58

Wow Thanks !! It's working !

really appreciated ! :D

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

Re: Easy Question MQTT vs. Event

#4 Post by grovkillen » 08 Aug 2017, 12:12

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:

scalg
New user
Posts: 3
Joined: 08 Aug 2017, 02:53

Re: Easy Question MQTT vs. Event

#5 Post by scalg » 08 Aug 2017, 16:58

Yes but the event syntax in the wiki is "event <event>" and in reality it's "event,<event>".

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

Re: Easy Question MQTT vs. Event

#6 Post by grovkillen » 08 Aug 2017, 17:04

Ah, great. Will fix!
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: Bing [Bot] and 33 guests