Search found 230 matches

by dynamicdave
01 Feb 2021, 09:02
Forum: ESP Easy: Software
Topic: Can't seem to control GPIO pins
Replies: 2
Views: 1571

Re: Can't seem to control GPIO pins

The command you posted doesn't look right.

Have you tried...

Code: Select all

http://192.168.86.43/control?cmd=GPIO,15,1
by dynamicdave
29 Dec 2020, 09:28
Forum: ESP Easy: Projects / Applications
Topic: MQTT Publish - correct syntax?
Replies: 11
Views: 4037

Re: MQTT Publish - correct syntax?

I would have thought the publish command should be...

Publish,%sysname%/BOFF/status,1

Publish,%sysname%/BOFF/status,0
by dynamicdave
19 Dec 2020, 13:22
Forum: ESP Easy: General Discussion
Topic: MQTT publishing a 'log'
Replies: 7
Views: 4085

Re: MQTT publishing a 'log'

This is the version I think is the latest in the link you sent me.
It doesn't work - it still sends a log.
Screen Shot 12-19-20 at 12.19 PM.JPG
Screen Shot 12-19-20 at 12.19 PM.JPG (118.18 KiB) Viewed 4058 times
by dynamicdave
19 Dec 2020, 12:48
Forum: ESP Easy: General Discussion
Topic: MQTT publishing a 'log'
Replies: 7
Views: 4085

Re: MQTT publishing a 'log'

I've tried with ESP_Easy_mega_20201130_normal_ESP8266_4M1M and can operate the GPIO pins by sending 0 or 1 to the topic.... homeDevice/command/gpio/12 In fact I can control the GPIO pins with... homeDevice/command/cmd/gpio/12 as well !!! Which is the correct format? It's the single string "Ok&q...
by dynamicdave
19 Dec 2020, 11:52
Forum: ESP Easy: General Discussion
Topic: MQTT publishing a 'log'
Replies: 7
Views: 4085

Re: MQTT publishing a 'log'

I'm sending a value 0 or 1 from Node-RED to this topic... homeDevice/command/gpio/12 The subscribe setting in ESP Easy for Home Assistant (openHab) is.... homeDevice/command/# I can send an event command e.g. homeDevice/command/cmd to trigger one of rules - and that works fine. So what's the new for...
by dynamicdave
19 Dec 2020, 11:31
Forum: ESP Easy: General Discussion
Topic: MQTT publishing a 'log'
Replies: 7
Views: 4085

MQTT publishing a 'log'

Just noticed that from ESP Easy release 221016 onwards MQTT (OpenHAB) seems to be publishing what looks like a log and the topic-name has not resolved the system variables. My rule-set works fine with releases up to this date, but not after it. I'm using ESP_Easy_mega_20201022_normal_ESP8266_4M1M on...
by dynamicdave
16 Aug 2020, 20:46
Forum: ESP Easy: Projects / Applications
Topic: Using an ESP-01 to WiFi-enable an Arduino Nano
Replies: 3
Views: 9232

Re: Using an ESP-01 to WiFi-enable an Arduino Nano

Where would I locate the P087_SerialProxy plugin ?
by dynamicdave
15 Aug 2020, 10:57
Forum: ESP Easy: Projects / Applications
Topic: Using an ESP-01 to WiFi-enable an Arduino Nano
Replies: 3
Views: 9232

Using an ESP-01 to WiFi-enable an Arduino Nano

Has anyone any useful links on how to WiFi-enable an Arduino Nano with an ESP-01 running ESP Easy ?? I've looked around on the web and found most documents are either "old" or don't specifically mention using ESP Easy. My objective is to collect information from a remote weather station an...
by dynamicdave
08 Aug 2020, 09:30
Forum: ESP Easy: Hardware
Topic: Sonoff as wall plug
Replies: 6
Views: 7276

Re: Sonoff as wall plug

I've not used the S26, but I have many of the S20 version in use around my house here in the UK. I operate them from Node-RED via MQTT protocol. The S20 is very easy to flash with ESP Easy or Tasmota as it has four pads on the PCB that bring out the connections you need. All you need to do is solder...
by dynamicdave
01 Aug 2020, 08:27
Forum: ESP Easy: General Discussion
Topic: 'ping' option in recent releases
Replies: 2
Views: 3680

Re: 'ping' option in recent releases

Thanks - that works a treat.
by dynamicdave
31 Jul 2020, 13:19
Forum: ESP Easy: General Discussion
Topic: 'ping' option in recent releases
Replies: 2
Views: 3680

'ping' option in recent releases

Just checking if there is a 'ping' option in any of the recent ESP-Easy releases.

The last one I found that had it was 20190311 2.5 and 2.6

Regards, David
by dynamicdave
25 Jun 2020, 14:50
Forum: ESP Easy: Projects / Applications
Topic: Arduino Nano + INA219 = cheap current scope
Replies: 10
Views: 11923

Re: Arduino Nano + INA219 = cheap current scope

What a great use for a INA219 - I might try that out with a spare Wemos D1 Mini as the current scope.
by dynamicdave
13 Jun 2020, 13:33
Forum: ESP Easy: Software
Topic: publish command not working in Rule-Sets
Replies: 6
Views: 5100

Re: publish command not working in Rule-Sets

It will be interesting to hear if anyone else who uses BeeBotte as their remote MQTT broker has had any problems recently. Note: When I use the 'extended' credentials tick-option it seems to corrupt the token in the Controller User box after I do a re-boot. I'm sure my friend in Boston (who uses Wem...
by dynamicdave
13 Jun 2020, 12:21
Forum: ESP Easy: Software
Topic: publish command not working in Rule-Sets
Replies: 6
Views: 5100

Re: publish command not working in Rule-Sets

22 characters

e.g. token_MpvmXXXXXXXXXXeX

It includes the word... token_
by dynamicdave
12 Jun 2020, 17:13
Forum: ESP Easy: Software
Topic: publish command not working in Rule-Sets
Replies: 6
Views: 5100

Re: publish command not working in Rule-Sets

I think I've managed to sort out the issue. I'm using BeeBotte as my remote MQTT broker. I've found you have to insert the BeeBotte API Token in BOTH the Controller User and Controller Password boxes. The ESP Easy release dated 20200410 - you only had to enter the token in Controller User box. Not v...
by dynamicdave
11 Jun 2020, 18:16
Forum: ESP Easy: Software
Topic: publish command not working in Rule-Sets
Replies: 6
Views: 5100

publish command not working in Rule-Sets

Hi, I'm using this command in a Rule-Set... Publish,weatherStation/reading,'{"node_number":"%sysname%"}' It works fine in... mega-20200410 But none of the later releases work. i.e. mega-20200426, mega-20200516 and mega-20200608 Please let me know if there is a more appropriate pl...
by dynamicdave
27 May 2020, 09:06
Forum: ESP Easy: General Discussion
Topic: How to wake from deep sleep
Replies: 7
Views: 2852

Re: How to wake from deep sleep

Just a quick observation... in the original circuit there was a diode between RST and D0.
This has disappeared in the recent schematics - is it important?
No too sure as to the function of the diode, perhaps someone could explain.
by dynamicdave
25 May 2020, 08:54
Forum: Introduce yourself
Topic: Hello from Bristol, UK
Replies: 10
Views: 6342

Re: Hello from Bristol, UK

As your turn-off times are the same in both cases, you could use just one timer. on System#Boot do GPIO 0,1 endon on Clock#Time=%sunrise+1h% do // 1 hour after sunrise... GPIO 0,0 // turn on relay TimerSet,1,600 // wait for 10 minutes endon on Clock#Time=ALL,13:30 do // Give the plants some lunch......
by dynamicdave
19 May 2020, 21:07
Forum: ESP Easy: General Discussion
Topic: Publish in MQTT JSON format
Replies: 6
Views: 5048

Re: Publish in MQTT JSON format

I thought the json string needed single quotes around the curly brackets... (in the recent ESP Easy releases)

Code: Select all

Publish,<mqtt topic>,'{"latitude": [gps#latitude],"longitude": [gps#longitude], "Altitude": [gps#altitude], "Speed": [gps#speed]}'
by dynamicdave
16 May 2020, 09:53
Forum: ESP Easy: Projects / Applications
Topic: moisture sensor
Replies: 78
Views: 42048

Re: moisture sensor

Hi, I found an old post about the problem in using VAR as the name for a variable. Although I've been using VARS since that time, I didn't have time to update the example/tutorial, sorry. The other thing.. I think you should have single quotes around your json string in your publish command publish ...
by dynamicdave
19 Apr 2020, 21:05
Forum: ESP Easy: Hardware
Topic: wiring new house for espeasy and power supply
Replies: 29
Views: 29089

Re: wiring new house for espeasy and power supply

Sorry I'm a bit late to the party... I'm paranoid about connecting a voltage directly to an input pin (just in case it was mis-configured as an output). I just use an extra resistor to limit the current and protect the input pin. I usually use two resistors connected as per the attachments. Fig-A is...
by dynamicdave
11 Apr 2020, 10:11
Forum: ESP Easy: General Discussion
Topic: "Voting" for the most Easy controller!
Replies: 29
Views: 8855

Re: "Voting" for the most Easy controller!

I use the Home Assitant (OpenHab) MQTT feature on ESP Easy, purely to send/receive information to/from Node-RED running on a RPi-4B. I've found it very easy to set-up and get working especially as I teach a class of IoT students, where we have 12 Raspberry Pi(es) running Node-RED on a network with 1...
by dynamicdave
11 Apr 2020, 09:49
Forum: ESP Easy: Projects / Applications
Topic: Espeasy mega right formula for INA219 current
Replies: 9
Views: 9340

Re: Espeasy mega right formula for INA219 current

I've just lashed up a INA219 with a Wemos D1 Mini (FW=mega-20191003) and get correct readings I've got a 330 ohm resistor across the 3v3 rail (so the current should be 10mA). As you can see from the screen-shots the current is 10mA. The only differennce I can see is I'm using a "Measure range&q...
by dynamicdave
05 Apr 2020, 10:28
Forum: ESP Easy: Hardware
Topic: nodemcu on battery
Replies: 27
Views: 23244

Re: nodemcu on battery

Here's a link to a write-up of a solar-powered weather station one of my IoT students tackled last year (2019). Didn't modify the (power routing on the) Wemos D1 Mini as didn't know about the CH340 issues and I doubt if our soldering skills would have been good enough. Ran the weather station with n...
by dynamicdave
02 Apr 2020, 12:49
Forum: ESP Easy: Software
Topic: ESPEasy-20200328 can't change rule sets
Replies: 21
Views: 7486

Re: ESPEasy-20200328 can't change rule sets

In full-screen mode it appears at the BOTTOM with a window showing the rules to the RIGHT.

If I reduce the width of the window, then it moves to the TOP of the screen.

I don't have an issue with that behaviour.

David
by dynamicdave
02 Apr 2020, 08:26
Forum: ESP Easy: Software
Topic: ESPEasy-20200328 can't change rule sets
Replies: 21
Views: 7486

Re: ESPEasy-20200328 can't change rule sets

Hi,
I've tried the following FW on a WeMos D1 Mini and can confirm the Rule Set selection is WORKING again.

ESP_Easy_mega-20200328-15-PR_2972_normal_ESP8266_4M1M.bin
by dynamicdave
01 Apr 2020, 13:08
Forum: ESP Easy: Software
Topic: ESPEasy-20200328 can't change rule sets
Replies: 21
Views: 7486

Re: ESPEasy-20200328 can't change rule sets

I get exactly the same problem - can't change to another rule set.
I suspect the drop-down buttons aren't working.
by dynamicdave
11 Mar 2020, 09:50
Forum: ESP Easy: Hardware
Topic: Solar Power Supply
Replies: 87
Views: 49415

Re: Solar Power Supply

Here's a link to a Solar-Powered Weather Station project one of my IoT students tackled last year (July 2019).
It includes a write-up on using 'Deep Sleep' with a Wemos D1 Mini running ESP-Easy.

https://discourse.nodered.org/t/solar-p ... tion/12499

Hope you find it helpful/useful.
by dynamicdave
06 Mar 2020, 15:12
Forum: Introduce yourself
Topic: How to command ESPEASY GPIO thru MQTT Mosquitto
Replies: 9
Views: 9126

Re: How to command ESPEASY GPIO thru MQTT Mosquitto

What I do in Node-RED is to use a MQTT-Out node (running Mosquitto) which is set-up with the IP address of your server then set-up the topic in the MQTT-Out. Something like... nodeXX/gpio/14 Where nodeXX is the 'Unit Name' as used in the ESP-Easy Config tab. 14 relates to the GPIO pin, which in this...
by dynamicdave
28 Feb 2020, 20:07
Forum: ESP Easy: Software
Topic: Nested If constructs
Replies: 7
Views: 5412

Re: Nested If constructs

I think I read somewhere the nested level depth was three(3).
(Which by coincidence is what my code has.)

So are you saying that I should remove all the comments?

I only put them in the code to make it obvious as to what was happening.

Thanks for your valuable feedback
by dynamicdave
27 Feb 2020, 10:23
Forum: ESP Easy: Software
Topic: Nested If constructs
Replies: 7
Views: 5412

Re: Nested If constructs

Thanks.

Is there any speed/performance issues with the way I've implemented it?

Note:
I did code it your way at the start, then thought I could improve the layout/readability.

Thanks again for your swift response.
by dynamicdave
27 Feb 2020, 09:43
Forum: ESP Easy: Software
Topic: Nested If constructs
Replies: 7
Views: 5412

Nested If constructs

This may seem a silly question. I've just got this rule-set working to turn an individual LED on depending on the numerical value in an 'event' sent via MQTT (from Node-RED to a Wemos D1 Mini). I'm surprised it works as I thought that ESP Easy didn't support nested IFs. I'm running mega-20200222 on ...
by dynamicdave
06 Feb 2020, 16:39
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 262
Views: 467541

Re: Support for PZEM 004T Energy monitor

Well I'm sort of hoping that now we have left the EU (I live in the UK) we'll be able to change the colour of our wires back to the scheme we had when I was a lad.

Red was Live
Black was Neutral
Green was Earth

Ha, ha, ha - wishful thinking.
by dynamicdave
06 Feb 2020, 07:50
Forum: ESP Easy: General Discussion
Topic: 150 days online
Replies: 35
Views: 16548

Re: 150 days online

Wooo - that must be a world record.
by dynamicdave
06 Feb 2020, 07:47
Forum: ESP Easy: Hardware
Topic: Display - OLED SSD1306 <<< layout problem
Replies: 1
Views: 6796

Display - OLED SSD1306 <<< layout problem

I'm using the ESP-Easy release 20200204 although this problem appears in previous releases. I'm sending a series of commands (like the following) from Node-RED to a Wemos D1 Mini using MQTT. msg.payload = "oledcmd,clear"; node.send(msg); msg.payload = "oled,1,1,Weather Report"; /...
by dynamicdave
06 Feb 2020, 07:37
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 262
Views: 467541

Re: Support for PZEM 004T Energy monitor

Hi @djelau Thanks for your response. The only thing I was concerned about was damaging (i.e. KILLING) the PZEM-004 by connecting the AC connections the wrong-way round. I can't wait for the energy sensor to arrive so I can get the system up and running - sounds like a lot of fun. PS: I've ordered th...
by dynamicdave
04 Feb 2020, 18:39
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 262
Views: 467541

Re: Support for PZEM 004T Energy monitor

Thanks for the feedback. Yes the current is measured using a coil clamped around one of the mains cables. My question was... does it matter which way round the L and N wires are connect in respect of destroying the PZEM-004 ? From your response I think it doesn't - just might affect the reading. Dav...
by dynamicdave
04 Feb 2020, 13:31
Forum: ESP Easy: Hardware
Topic: Support for PZEM 004T Energy monitor
Replies: 262
Views: 467541

Re: Support for PZEM 004T Energy monitor

I've just ordered a PZEM-004 v3 from China (with the external split CT sensor) - this particular version is housed in a plastic box for safety. I'm a bit confused as to the correct connection for AC mains as they seem to vary between photos. On the function diagram (screenshot-090) it shows 'Live' o...
by dynamicdave
19 Jan 2020, 08:28
Forum: ESP Easy: Software
Topic: value with the date and time.
Replies: 5
Views: 3569

Re: value with the date and time.

You can also take it a stage further and publish it as a json string. That means you could pack a number of data-items in the string. Here's an example from one of my rule-sets. Publish,node24/ir_detector,'{"ssid":"%ssid%","node_number":"node%unit%"}' Notice t...
by dynamicdave
11 Jan 2020, 20:55
Forum: ESP Easy: Hardware
Topic: No connection ESP01 and Relay
Replies: 51
Views: 26257

Re: No connection ESP01 and Relay

Only just seen this thread. I spent a couple days (a month or so ago) trying to sort out why the ESP-01 didn't work after I used the programmer, shown above, to flash it. Discovered like a few people that a pull-up is missing on SOME of the ESP-01 boards. I had a mixture of boards, so some worked an...
by dynamicdave
24 Dec 2019, 08:21
Forum: ESP Easy: Software
Topic: obscure problem with sendtohtttp (and thingspeak)
Replies: 58
Views: 14676

Re: obscure problem with sendtohtttp (and thingspeak)

This is what I use in my weather station, and it works fine.

Please note the quote marks that surround the various parameters.

SendToHTTP,api.thingspeak.com,80,'/update?api_key=<insert your API key here>&field1=[ds18b20#temperature]'
by dynamicdave
12 Dec 2019, 17:44
Forum: ESP Easy: Hardware
Topic: Servo DS3218MG (Digital Servo)
Replies: 5
Views: 5340

Re: Servo DS3218MG (Digital Servo)

I'm not familar with that particular servo, however I found I needed to power my miniature servos from a separte power supply otherwise the sudden current surge as the servo starts to move puts the ESP8266 (Wemos D1 Mini) into reboot. Just something worth checking, as my servos appeared 'dead' the f...
by dynamicdave
07 Dec 2019, 14:17
Forum: ESP Easy: Software
Topic: HC-SR05 << firmware
Replies: 1
Views: 3144

HC-SR05 << firmware

Hi, I'm trying to get an HC-SR05 ultrasonic distance sensor to work with a Wemos D1 Mini and wanted to know the best version of ESP Easy to use. Although the sensor report distances, the readings sort of jump from reasonable distances to a fixed value of 1038. I'm using a level shifting board, so th...
by dynamicdave
05 Dec 2019, 18:30
Forum: ESP Easy: Projects / Applications
Topic: Collect data from ESP on SD card in router
Replies: 7
Views: 12466

Re: Collect data from ESP on SD card in router

What's wrong with sending the sensor data from the ESPs, via MQTT with a rule-set, to a Raspberry Pi running Node-RED ??
You can then do all sorts of things with the data... store it on the Pi's SD card (local file), write it to a database (local or remote) or send it to other places.
by dynamicdave
20 Nov 2019, 08:22
Forum: ESP Easy: Hardware
Topic: ESP01 and (S) flash but no wifi help
Replies: 7
Views: 5836

Re: ESP01 and (S) flash but no wifi help

When I first started using the ESP01s I bought a couple of these 'combo' boards. https://www.aliexpress.com/item/33019915868.html?spm=a2g0o.productlist.0.0.67df2ba3zsw2Od&algo_pvid=c32924df-5564-466b-ab3a-94687209cdfb&algo_expid=c32924df-5564-466b-ab3a-94687209cdfb-41&btsid=6636b3e5-cf69...
by dynamicdave
19 Nov 2019, 19:11
Forum: ESP Easy: Hardware
Topic: ESP01 and (S) flash but no wifi help
Replies: 7
Views: 5836

Re: ESP01 and (S) flash but no wifi help

I had exactly the same problem with two batches of ESP01s.
Drove me crazy for a couple of days!!!

Eventually found adding a 10K pull-up resistor from CH_PD to VCC sorted out the problem.
by dynamicdave
18 Nov 2019, 19:20
Forum: ESP Easy: General Discussion
Topic: ESP Easy remote admin panel
Replies: 3
Views: 4912

Re: ESP Easy remote admin panel

Sounds like a nice job for a Virtual Private Network (VPN). Although there are some free offerings available, you could consider using a Raspberry Pi (even an inexpensive RPi-Zero-W would work) and installing PiVPN on it. It would also mean that your parents don't reveal their internal IP address to...
by dynamicdave
14 Nov 2019, 23:55
Forum: ESP Easy: General Discussion
Topic: Incorrect readings of analog input
Replies: 9
Views: 6736

Re: Incorrect readings of analog input

Just checked my notes about the Wemos D1 Mini (a ESP8266-based microcontroller). The (new versions of the) Wemos D1 Mini have a couple of resistors (on-board the PCB board or maybe inside the chip) that act as a voltage divider. There's a 220K resistor in series with a 100K that connects to ground. ...
by dynamicdave
14 Nov 2019, 22:40
Forum: ESP Easy: General Discussion
Topic: Incorrect readings of analog input
Replies: 9
Views: 6736

Re: Incorrect readings of analog input

Well what a coincidence... I've just been writing a tutorial for my IoT students on the Witty module. Yes it does have an on-board LDR connected to A0 (analog input) as per the schematic linked to above. The integer readings I'm getting range from 17 (total blackness) to 1024 (full light from the fl...
by dynamicdave
09 Nov 2019, 21:13
Forum: ESP Easy: Software
Topic: [Solved] Trying to use MQTT to control a servo
Replies: 1
Views: 3798

[Solved] Re: Trying to use MQTT to control a servo

With some help from a friend I've got it working.

The MQTT topic should be... node68/cmd

And the payload should be... servo,1,14,120 (to move to 120 degrees)