Search found 7 matches

by HeinJvR
12 Feb 2019, 17:13
Forum: ESP Easy: Software
Topic: Update button state from Node-Red
Replies: 10
Views: 8536

Re: Update button state from Node-Red

Hi Sorry for only getting back to you now... Been trying to figure this out. And it's not been easy. Ok, this part of the code I don't understand. on TurnRelayOn do How does the ESP device know TurnRelayOn? Is it programmed as a device? This part I do understand. gpio,12,1 // turn Relay on gpio,13,0...
by HeinJvR
11 Feb 2019, 14:18
Forum: ESP Easy: Software
Topic: Update button state from Node-Red
Replies: 10
Views: 8536

Re: Update button state from Node-Red

Yes, what I'm doing is connecting a momentary button on my esp8266 between GND and GPIO 0. also, I have a DHT11 connected to GPIO 2. These devices replace light switches in my house. so if a button is pressed in the kitchen it sends out an MQTT command to the Server then I've got an Arduino Mega wit...
by HeinJvR
10 Feb 2019, 20:03
Forum: ESP Easy: Software
Topic: Update button state from Node-Red
Replies: 10
Views: 8536

Re: Update button state from Node-Red

ok, I've tried that... But I don't think I'm doing it correctly. I deleted my switch from devices. but then realized how is my MQTT broker going to know about a switch being pressed. So, I added the switch again with your code in the rules. but the light is still playing ping pong. Here is my update...
by HeinJvR
10 Feb 2019, 19:44
Forum: ESP Easy: Software
Topic: Update button state from Node-Red
Replies: 10
Views: 8536

Re: Update button state from Node-Red

Yes, you are correct.
I have a momentary switch that is connected to GPIO 0.

So if I understand you correctly, I will delete my switch from Devices. and only use the Rules.

I will try that now...

I will post my result.

Thank you for your help so far.
by HeinJvR
10 Feb 2019, 19:19
Forum: ESP Easy: Software
Topic: Update button state from Node-Red
Replies: 10
Views: 8536

Re: Update button state from Node-Red

Hi, thanks for the help. I tried it that way and I can read the incoming msg. But now my lights are playing ping pong. If I switch it on, on my dashboard, it switches on and immediately off. here are the rules that I created. on change#cmdMQTT=1 do GPIO,0,1 endon on change#cmdMQTT=0 do GPIO,0,0 endo...
by HeinJvR
09 Feb 2019, 08:00
Forum: ESP Easy: Hardware
Topic: esp-wroom-32 0.96 OLED
Replies: 7
Views: 6788

Re: esp-wroom-32 0.96 OLED

Please attach a picture of the ESP device.

Some devices need to be put in flash mode by connecting GPIO0 to GND.
by HeinJvR
09 Feb 2019, 07:39
Forum: ESP Easy: Software
Topic: Update button state from Node-Red
Replies: 10
Views: 8536

Update button state from Node-Red

Hi All, I`m running Node-RED on a Raspberry Pi3 with Mosquitto. With that, I`ve got a couple of ESP-01 and Node-MCU with momentary pushbuttons connected to publish a button push. Then my Arduino Mega with Network Shield runs all the relays in my main Distribution Box. Everything works well except fo...