Search found 400 matches

by ThomasB
07 Sep 2019, 18:09
Forum: ESP Easy: Software
Topic: solved: Need help in publishing a Dummy value
Replies: 8
Views: 657

Re: solved: Need help in publishing a Dummy value

You're welcome. Glad to know you solved the problem.

- Thomas
by ThomasB
07 Sep 2019, 00:12
Forum: ESP Easy: Software
Topic: solved: Need help in publishing a Dummy value
Replies: 8
Views: 657

Re: Need help in publishing a Dummy value

publish,any/state/Umweltsensor/Beschattung,0 is being published. "any/state/xxx" is my standard for MQTT-messages in my network. That is helpful information; Confirms MQTT is configured OK. but still I get not the result of the average calculation to be published. See your rule statement at this li...
by ThomasB
06 Sep 2019, 21:34
Forum: ESP Easy: Software
Topic: solved: Need help in publishing a Dummy value
Replies: 8
Views: 657

Re: Need help in publishing a Dummy value

Please post a screenshot of the Devices page.

Also, your publish address is suspicious. Is your MQTT broker configured with a subscription that begins with "any/state/"? That seems to be the text from a random MQTT example rather than for your installation.

- Thomas
by ThomasB
05 Sep 2019, 18:11
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 157
Views: 13594

Re: Hardware Watchdog Reboots

Today Hackaday published information on three of the latest ESP32/8266 exploit vulnerabilities. It seems that hackers can easily cause a WiFi crash. Geez, what a surprise. https://hackaday.com/2019/09/05/esp8266-and-esp32-wifi-hacked/ I'm wondering if Expressif's recently patched library will have a...
by ThomasB
05 Sep 2019, 17:40
Forum: ESP Easy: Software
Topic: Two %eventvalue%
Replies: 5
Views: 674

Re: Two %eventvalue%

Q1: Can't help. Q2: What is a proper syntax of HTTP request for sending data from server to easyESP? It uses ESPEasy's HTTP command format. Like this: http://<espeasyip>/control?cmd=TaskValueSet,<task nr>,<taskvalue nr>,<value> Docu contains only info about using dummy sensor in easyESP rule. HTTP P...
by ThomasB
05 Sep 2019, 05:31
Forum: ESP Easy: Software
Topic: solved: Need help in publishing a Dummy value
Replies: 8
Views: 657

Re: Need help in publishing a Dummy value

What I am doing wrong? You should explain what is not working. For example: Dummy assignments not working? Averaged value wrong? MQTT not working? Something else? And include a screenshot of the devices page so the helper's eyes can see important details. Given the posted info, it seems to me that:...
by ThomasB
04 Sep 2019, 20:19
Forum: ESP Easy: Software
Topic: Two %eventvalue%
Replies: 5
Views: 674

Re: Two %eventvalue%

Or any workaround?
Here's what I propose.
1. Send the two values to ESPEasy's dummy vars.
2. If mission critical, ESPEasy rules could "echo" back a message to the sender to acknowledge when each value was received.
3. Send a event command that runs a rule that acts on the new values.

- Thomas
by ThomasB
04 Sep 2019, 18:17
Forum: ESP Easy: Hardware
Topic: esp lost connection
Replies: 3
Views: 545

Re: esp lost connection

Thanks to TD-er, the releases after mega-20190827 might fix the WiFi hangs. So try flashing the latest Mega version.
https://github.com/letscontrolit/ESPEasy/releases

- Thomas
by ThomasB
04 Sep 2019, 04:54
Forum: ESP Easy: Software
Topic: Plugin timing/architecture questions [TE AmbiMate MS4 multisensor)
Replies: 4
Views: 597

Re: Plugin timing/architecture questions [TE AmbiMate MS4 multisensor)

1. In "PLUGIN_TEN_PER_SEC" I only run step 1 of the PIR Motion sequence, then schedule a timer to event->TaskIndex (setting a flag to let PLUGIN_READ know there is a PIR event to read) I didn't have time to evaluate all your code. But I saw something that looks unusual to me. After deleting all the...
by ThomasB
03 Sep 2019, 23:00
Forum: ESP Easy: Hardware
Topic: No wakeup after complete discharge of the batteries
Replies: 18
Views: 763

Re: No wakeup after complete discharge of the batteries

I still have unused OpAmps.This allows me to build a Schmitt trigger for the EN.
Don't forget that this application will require a micropower OpAmp; Single supply, rail-to-rail, and capable of operating at very low voltage.

- Thomas
by ThomasB
03 Sep 2019, 22:41
Forum: ESP Easy: Software
Topic: Flash and stil remembers old settings
Replies: 3
Views: 669

Re: Flash and stil remembers old settings

Two common choices if you can't connect to the web interface: 1. Disconnect power. Use a jumper wire and connect RX and TX together. Apply power and wait a few seconds; During boot the flash will be erased. Then power down, remove jumper. 2. Connect the serial port to your PC. Send a Reset command u...
by ThomasB
03 Sep 2019, 19:35
Forum: ESP Easy: Hardware
Topic: No wakeup after complete discharge of the batteries
Replies: 18
Views: 763

Re: No wakeup after complete discharge of the batteries

One way to solve this is to use a brown out detector. This provides a reset after the voltage becomes valid. Same concept as the Power Good ("PWR_OK") signal on a ATX PC power supply.
For example: http://www.hnilica.cz/radek/zim/Electro ... cuits.html

- Thomas
by ThomasB
02 Sep 2019, 19:50
Forum: ESP Easy: Hardware
Topic: pcf8574 can not actuate a relay (only it's LED)
Replies: 8
Views: 980

Re: pcf8574 can not actuate a relay (only it's LED)

My plan now is to change the relay to a version where I can select via a jumper if it behaves has a pull up or down That should solve the problem. I tried other schematics (and fried the PCF8574 with my different test, yes I'm a rookie) --> unsuccessful. Building circuits is the best to way to lear...
by ThomasB
27 Aug 2019, 17:04
Forum: ESP Easy: General Discussion
Topic: ESP8266 lost connection
Replies: 3
Views: 883

Re: ESP8266 lost connection

A developer (TD-er) made some recent changes that improve WiFi reconnects. So try the latest Mega build.

If the problem persists then try a different power supply adapter, even if you have done that before.

- Thomas
by ThomasB
25 Aug 2019, 19:09
Forum: ESP Easy: Hardware
Topic: pcf8574 can not actuate a relay (only it's LED)
Replies: 8
Views: 980

Re: pcf8574 can not actuate a relay (only it's LED)

Yes, you will need a pull-up resistor on PCF8574's IO Pin. Because it appears your PCF8574 is powered by 5V you can follow the circuit diagram you posted. The pullup resistor value may vary depending on the relay module design. Start with 10K ohms, but be prepared to reduce it to achieve success; If...
by ThomasB
21 Aug 2019, 22:32
Forum: ESP Easy: Software
Topic: [SOLVED]Problem with relays during boot nodeMCU
Replies: 19
Views: 1753

Re: [SOLVED]Problem with relays during boot nodeMCU

All you need is a transistor, e.g. BD135 and a 1k resistor. Simply connect the transistor base via a resistor to GPIO5.
Glad to hear the final solution was quick and easy. In some paper/rock/scissors contests, solder beats software.

- Thomas
by ThomasB
21 Aug 2019, 22:25
Forum: ESP Easy: Software
Topic: http send command or rule
Replies: 11
Views: 1146

Re: http send command or rule

A typical solution would be like this: on Button#state do if [Relais#state]=0 event,RelayOn else event,RelayOff endif endon On RelayOn do gpio,14,1 gpio,13,0 endon On RelayOff do gpio,14,0 gpio,13,1 endon The http command to turn on your Relay & LED would be: http://IP_ADDRESS/control?cmd=event,Rela...
by ThomasB
19 Aug 2019, 19:06
Forum: ESP Easy: General Discussion
Topic: Setting up ThinkSpeak
Replies: 2
Views: 1156

Re: Setting up ThinkSpeak

OK, I just pushed forward without the ThingHTTP Name and I'm getting data so I'm really not sure what that field is for. AFAIK, the ThingHTTP name can be ignored. In a traditional controller plugin this field would be used for the server's user account name. Instead, Thingspeak only needs the api_k...
by ThomasB
19 Aug 2019, 17:15
Forum: ESP Easy: Software
Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
Replies: 26
Views: 1661

Re: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]

How do i address this problem on github? Go to https://github.com/letscontrolit/ESPEasy/issues and click "New Issue" button. EDIT: I checked the issue tracker and I think I found your problem. Please see this reported issue from Jan 2019: https://github.com/letscontrolit/ESPEasy/issues/2273 BTW, I ...
by ThomasB
19 Aug 2019, 00:50
Forum: ESP Easy: Software
Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
Replies: 26
Views: 1661

Re: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]

Oh my, it's an unusual problem. From what I see in the code, it appears thingspeak gets the same API message with a controller or rule. But they have slightly different setups during communication. Some notable differences I found during a quick review: The sendtoHTTP timeout is fixed to 1000mS. The...
by ThomasB
18 Aug 2019, 22:53
Forum: ESP Easy: Software
Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
Replies: 26
Views: 1661

Re: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]

The SendToHTTP rule is sending four field values, whereas the controller is only sending one. Maybe this is a clue to something important. It would be interesting to see what would happen if you change the SendToHTTP to this: SendToHTTP api.thingspeak.com,80,/update?api_key=xxxxxxxxxxxxxxx&field=[BM...
by ThomasB
18 Aug 2019, 20:49
Forum: ESP Easy: Software
Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
Replies: 26
Views: 1661

Re: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]

every MQTT message gets through but thingspeak only recieved a few
That's a interesting result. At the moment I don't have any brilliant ideas to offer.

- Thomas
by ThomasB
18 Aug 2019, 19:59
Forum: ESP Easy: Software
Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
Replies: 26
Views: 1661

Re: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]

I think i am going to try to write a code in ArduinoIDE in the hope it maybe works that way and use ESPEasy only for alltime on situations or in the case i only need to send data from one device/sensor. That's the easy way out. :) I'm curious, do the thingspeak / SendToHTTP rules work correctly wit...
by ThomasB
18 Aug 2019, 18:03
Forum: ESP Easy: Software
Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
Replies: 26
Views: 1661

Re: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]

Finally got it working with ESP_Easy_mega-20190817_dev_ESP8266_4M and the following config: Good to hear you got it working. Edit: Didn't see your followup message, sorry to read the bad news. the only problem i have now is that the Wemos crashes on first boot. When i hit the reset button everythin...
by ThomasB
18 Aug 2019, 17:48
Forum: ESP Easy: Software
Topic: Oversampling on analog input hangs nodeMCU
Replies: 14
Views: 1380

Re: Oversampling on analog input hangs nodeMCU

I don't see yet how it can happen to divide by zero. ++Plugin_002_OversamplingCount in PLUGIN_TEN_PER_SECOND can wrap around 0xffff and restart at zero before a read occurs. As noted, this breaks the ADC value. An unlikely division-by-zero scenario might occur if the wrapped sample counter is on 0x...
by ThomasB
18 Aug 2019, 04:25
Forum: ESP Easy: Software
Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
Replies: 26
Views: 1661

Re: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]

I have tried it with the default Controller setup instead of using rules and the values are beeing send correctly. I reviewed the controller's source code and found that the syntax for the API's "key" keyword is different than what is in your rule. Instead of key it uses api_key . Try this: SendToH...
by ThomasB
18 Aug 2019, 03:25
Forum: ESP Easy: Software
Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
Replies: 26
Views: 1661

Re: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]

The event triggers correct as you can see in the serial output, but nothing is send to thingspeak. Your log shows that the SendToHTTP action was sent. Are you sure you're using the correct API key in the rule? The log shows the key is "myapiwritekey", which I won't assume was edited to protect your...
by ThomasB
17 Aug 2019, 23:59
Forum: ESP Easy: Software
Topic: Oversampling on analog input hangs nodeMCU
Replies: 14
Views: 1380

Re: Oversampling on analog input hangs nodeMCU

On ESP32 this bug is even worse, since that one has 12 bit ADC. Fortunately the sampled 12bit data is accumulated in a int32, so major disaster is averted. Oh and a crash can occur if it is dividing by zero. But I have not yet looked at the code, so no idea if that may happen here. I also saw that ...
by ThomasB
17 Aug 2019, 03:39
Forum: ESP Easy: Software
Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
Replies: 26
Views: 1661

Re: Only 1 Value is being send after Deepsleep [WemosD1mini]

You're using Mega-20190607 released in June. A week ago TD-er updated Mega so that it flushes all pending data before going to sleep. I have no idea if his new update will help you, but perhaps it's worth trying. The data flush fix is mentioned here: https://www.letscontrolit.com/forum/viewtopic.php...
by ThomasB
16 Aug 2019, 23:35
Forum: ESP Easy: Software
Topic: Instant pulse sending via MQTT
Replies: 9
Views: 1266

Re: Instant pulse sending via MQTT

I don't understand why you need to count [VAR#1]-[VAR#3] The result (stored in VAR#2) will be greater than zero when new pulse counts have occurred. why [VAR#2] needs to be bigger then 0 ? Because when new counts occur, the VAR#2 value will be 1 or greater. This triggers the publish, otherwise the ...
by ThomasB
16 Aug 2019, 04:30
Forum: ESP Easy: Software
Topic: DeepSleep Wakeup does not work anymore - very confusing
Replies: 3
Views: 1176

Re: DeepSleep Wakeup does not work anymore - very confusing

When I disconnect the Sensor, DeepSleep and wake up works as expected. If the Sensor is connected, the D1 never wakes up again. I don't use the HC-SR04 module. But from your comments I suggest rechecking the logic level shifting circuitry; Confirm that the Echo signal's logic high voltage does not ...
by ThomasB
15 Aug 2019, 23:27
Forum: ESP Easy: Software
Topic: Oversampling on analog input hangs nodeMCU
Replies: 14
Views: 1380

Re: Oversampling on analog input hangs nodeMCU

So I turned off oversampling on this "fatal" device and now it doesn't hang. In fact, I don't need oversampling for anything. But I think it might be a problem for others. Is it issue or not? If so i move topic to github. This sounds like it should be reported as a github issue. Especially if you c...
by ThomasB
14 Aug 2019, 03:39
Forum: ESP Easy: General Discussion
Topic: MQTT LWT Messages
Replies: 1
Views: 1242

Re: MQTT LWT Messages

I suggest reviewing the debug log messages to find more details about the mystery MQTT messages. Perhaps something in there will provide additional clues about why MQTT publish is activated. FWIW, if your MQTT broker is running with a persistence service then ESPEasy's MQTT reconnects will include p...
by ThomasB
13 Aug 2019, 20:15
Forum: ESP Easy: Software
Topic: [SOLVED]Problem with relays during boot nodeMCU
Replies: 19
Views: 1753

Re: Problem with relays during boot nodeMCU

Yes, but with this solution (when the jumper is set to trigger low) you have a voltage of 5V at the relay module input.
That would indeed be a problem. The transistor and magic dust is going to be needed after all.

- Thomas
by ThomasB
13 Aug 2019, 19:15
Forum: ESP Easy: Software
Topic: [SOLVED]Problem with relays during boot nodeMCU
Replies: 19
Views: 1753

Re: Problem with relays during boot nodeMCU

I agree that there are many solutions, its all personal preference. That's one of the attractions to DiY projects. I'll end my chatter with one last idea. For convenience, a cheap $1 relay module with active low control can be used. For example: https://ebay.to/2TsKle0 Set the relay's logic control ...
by ThomasB
13 Aug 2019, 17:12
Forum: ESP Easy: Software
Topic: [SOLVED]Problem with relays during boot nodeMCU
Replies: 19
Views: 1753

Re: Problem with relays during boot nodeMCU

And I would like to ask for final confirmation that the effect of momentary switching on of relays connected to the extender does not occur in the boot nodeMCU time. NodeMCU won't be the issue. But keep in mind that at power-up the PCF8574 I/O are reset to logic high. To avoid relay turn-on at powe...
by ThomasB
13 Aug 2019, 03:14
Forum: ESP Easy: Software
Topic: [SOLVED]Problem with relays during boot nodeMCU
Replies: 19
Views: 1753

Re: Problem with relays during boot nodeMCU

Only that eliminates the use of Linknode because the use of such a circuit would require in this case "rebuilding" the PCB. Too complicated. Anyway, just using a delay circuit will protect me from unexpected opening of the garage or entrance gate. The Linknode R8 should be safe to use to control yo...
by ThomasB
12 Aug 2019, 04:01
Forum: ESP Easy: Software
Topic: [SOLVED]Problem with relays during boot nodeMCU
Replies: 19
Views: 1753

Re: Problem with relays during boot nodeMCU

The OP's photo shows the Linknode R8. Full details, with GPIO mapping: http://linksprite.com/wiki/index.php?title=LinkNode_R8:_Arduino-compatible_WiFi_relay_controller Per TD-er's concern, some pins used to control the R8's relays are also temporarily used during ESP8266 initialization (boot mode co...
by ThomasB
11 Aug 2019, 18:34
Forum: ESP Easy: General Discussion
Topic: http request doesn't alter value
Replies: 7
Views: 1437

Re: http request doesn't alter value

I simply want to set/alter a variable using an http command like this one http://<ip>/control?cmd=event,<eventName>=<eventValue> Changing a dummy var's value does not use a event command. It uses the taskvalueset command. Working example: Your screenshot shows the dummy var (httpvalue) is task # 3 ...
by ThomasB
11 Aug 2019, 18:15
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 157
Views: 13594

Re: Hardware Watchdog Reboots

Update: Fixing the System Info plugin seems to have eliminated the Exception reboots. But they have been replaced with Watchdog reboots. So I didn't win the reboot lottery, but at least know where the exceptions came from.

- Thomas
by ThomasB
10 Aug 2019, 21:41
Forum: ESP Easy: Software
Topic: Strange problem with BMP180
Replies: 18
Views: 1775

Re: Strange problem with BMP180

If you need to patch one node, then you're right. If you need to patch 100's... So true. Especially if the software patch is ready to install and available for free. But I have to pity the poor soul that contributes his scarce spare time to craft the software patch. Wink wink. I think the sensor ma...
by ThomasB
10 Aug 2019, 00:30
Forum: ESP Easy: General Discussion
Topic: [SOLVED] MQTT - Failed to connect to broker
Replies: 6
Views: 1409

Re: [SOLVED] MQTT - Failed to connect to broker

Glad to hear you solved it.
- Thomas
by ThomasB
09 Aug 2019, 22:46
Forum: ESP Easy: General Discussion
Topic: [SOLVED] MQTT - Failed to connect to broker
Replies: 6
Views: 1409

Re: MQTT - Failed to connect to broker

Code: Select all

 Socket error on client <unknown>, disconnecting.
That is an error that can be reported if the controller's user name or password is wrong. Also, reboot your router(s) in case their IP tables are confused.

- Thomas
by ThomasB
09 Aug 2019, 20:56
Forum: ESP Easy: Software
Topic: Max Value for Command GPIO: Pulse,<GPIO>,<value>
Replies: 2
Views: 1249

Re: Max Value for Command GPIO: Pulse,<GPIO>,<value>

Sounds like you found the solution. An important thing to note here is that the Pulse rule command is a blocking event. The P001 plugin uses the delay() function for this action, so nothing else can occur while the pulse is active. That is why you must avoid it on long time periods because important...
by ThomasB
09 Aug 2019, 19:25
Forum: ESP Easy: General Discussion
Topic: [SOLVED] MQTT - Failed to connect to broker
Replies: 6
Views: 1409

Re: MQTT - Failed to connect to broker

Several ESPEasy devices breaking at the exact same time seems unlikely. So, I agree something has likely changed in the broker's configuration (which has impacted the chosen controller settings used in the ESPEasy devices). Some things to try can be found in this discussion: https://www.letscontroli...
by ThomasB
09 Aug 2019, 18:23
Forum: ESP Easy: Software
Topic: Strange problem with BMP180
Replies: 18
Views: 1775

Re: Strange problem with BMP180

Too bad the hardware update did not solve it. A "solder" patch would have been fast and convenient, but in this case it appears a firmware patch is needed.

- Thomas
by ThomasB
09 Aug 2019, 18:15
Forum: ESP Easy: Software
Topic: Instant pulse sending via MQTT
Replies: 9
Views: 1266

Re: Instant pulse sending via MQTT

I just think a few things are missing from the rule. The / in front of sensors for example. If I don't add this, the rule is not pusblishing anything to the broker. Yes, you need to change my Publish example to match your MQTT configuration. For example, the "missing" leading forward slash is neede...
by ThomasB
08 Aug 2019, 23:24
Forum: ESP Easy: Software
Topic: Change Total value of a pulse counter with command
Replies: 4
Views: 1313

Re: Change Total value of a pulse counter with command

TD-er is probably in deep sleep at this hour. So I'll try to lend a hand while he counts sheep. Does the value of such dummy variable survive a reboot? On recent Mega releases the Dummy vars are retained in a warm boot. So no worries if you save the current count to a dummy var then use a rule to re...
by ThomasB
08 Aug 2019, 23:03
Forum: ESP Easy: Software
Topic: Instant pulse sending via MQTT
Replies: 9
Views: 1266

Re: Instant pulse sending via MQTT

How to approach this when I only want to send the Total value if it changes (goes up)? Then you would use the rules I posted, but change the publish statement to send the Total value. The revised statement would be like this (but change it to match your MQTT): Publish %sysname%/MeterReader/Total,[M...
by ThomasB
08 Aug 2019, 22:38
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 157
Views: 13594

Re: Hardware Watchdog Reboots

There are still others and for example a reboot with Exception as reboot reason is a totally different one. For example it can be a stupid programming error (divide by zero for example) or trying to dereference an object which has already been deleted. But also out of memory can be an issue and num...