Hi to all,
I've been playing around with "rules" to trigger an event within ESP8266.
Although I can get the rule to trigger by sending the following URL, I can't work out what I should do in Node-Red to achieve the same result.
http://192.168.1.31/control?cmd=event,triggerme
I've pulled out nearly all my hair trying various combinations in Node-Red.
I would appreciate it if anyone can share with me what I should put in the MQTT send node.
Kind regards from David.
Trigger an event using Node-Red
Moderators: grovkillen, Stuntteam, TD-er
- dynamicdave
- Normal user
- Posts: 257
- Joined: 30 Jan 2017, 20:25
- Location: Hampshire, UK
Re: Trigger an event using Node-Red
Hi,
have u considered MQTT ?
If u have NR running, u can easily setup a mosquitto broker in the same machine, then use MQTT pubs in NR and Mqtt import in Espeasy.....
Regards
Paolo
have u considered MQTT ?
If u have NR running, u can easily setup a mosquitto broker in the same machine, then use MQTT pubs in NR and Mqtt import in Espeasy.....
Regards
Paolo
Re: Trigger an event using Node-Red
I think dynamicdave has MQTT as he's asking it how to configure an output MQTT node
here it is th answer:
topic = /<ESPEasy module name>/cmd
payload = "event,<event name>"
here it is th answer:
topic = /<ESPEasy module name>/cmd
payload = "event,<event name>"
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
- dynamicdave
- Normal user
- Posts: 257
- Joined: 30 Jan 2017, 20:25
- Location: Hampshire, UK
Re: Trigger an event using Node-Red
Thanks for your responses.
I do already have MQTT running on a Raspberry Pi with Node-Red on another RPi.
I'll try out your answer this evening.
Thanks for all your help/advice.
David.
I do already have MQTT running on a Raspberry Pi with Node-Red on another RPi.
I'll try out your answer this evening.
Thanks for all your help/advice.
David.
- dynamicdave
- Normal user
- Posts: 257
- Joined: 30 Jan 2017, 20:25
- Location: Hampshire, UK
Re: Trigger an event using Node-Red
Thanks for your help.
Your answer works like a "dream" - thanks.
I must have tried loads of combinations in the MQTT syntax but not the one you suggested.
Cheers from DynamicDave
Your answer works like a "dream" - thanks.
I must have tried loads of combinations in the MQTT syntax but not the one you suggested.
Cheers from DynamicDave
Re: Trigger an event using Node-Red
my pleasure to be able to help you
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
Who is online
Users browsing this forum: No registered users and 121 guests