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 ?
[Solved] Easy Question MQTT vs. Event
Moderators: grovkillen, Stuntteam, TD-er
-
- New user
- Posts: 3
- Joined: 08 Aug 2017, 02:53
[Solved] Easy Question MQTT vs. Event
Last edited by scalg on 08 Aug 2017, 18:09, edited 1 time in total.
-
- Normal user
- Posts: 497
- Joined: 04 Oct 2016, 23:16
Re: Easy Question MQTT vs. Event
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
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
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
-
- New user
- Posts: 3
- Joined: 08 Aug 2017, 02:53
Re: Easy Question MQTT vs. Event
Wow Thanks !! It's working !
really appreciated !
really appreciated !

-
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
Re: Easy Question MQTT vs. Event
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



-
- New user
- Posts: 3
- Joined: 08 Aug 2017, 02:53
Re: Easy Question MQTT vs. Event
Yes but the event syntax in the wiki is "event <event>" and in reality it's "event,<event>".
-
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
Re: Easy Question MQTT vs. Event
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Who is online
Users browsing this forum: Anthropic Claude Bot [bot] and 16 guests