Search found 1065 matches
- 11 Nov 2019, 02:10
- Forum: ESP Easy: Hardware
- Topic: mega-20190630, DS18b20: Wrong temp
- Replies: 21
- Views: 15406
Re: mega-20190630, DS18b20: Wrong temp
This is quite the mystery. Try this: 1. Unplug the Sonoff device and leave it outside near the AC outlet. Your trusted reference thermometer should remain next to it. 2. Wait one hour, then plug-in the Sonoff device to the outlet. 3. Immediately after the device connects to Wifi observe the DS18b20 ...
- 09 Nov 2019, 22:45
- Forum: ESP Easy: General Discussion
- Topic: open-drain (open-collector) on the input: is external pull-up necessary
- Replies: 9
- Views: 9234
Re: open-drain (open-collector) on the input: is external pull-up necessary
Do you mean this?: {snip..snip} Yes. The chosen input is configured with pull-up. Do you think it is good to report/request the pull-up/down issue ... You are free to do that. FWIW, I'm not a good person to ask about requesting new features because of my stubborn opinion about solving the ongoing s...
- 09 Nov 2019, 21:47
- Forum: ESP Easy: General Discussion
- Topic: open-drain (open-collector) on the input: is external pull-up necessary
- Replies: 9
- Views: 9234
Re: open-drain (open-collector) on the input: is external pull-up necessary
It is your lucky day. The counter plug-in enables the internal weak pullup by default. See _P003_Pulse.inoCan somebody here explain, why is 3.22V detected on the ESP (NodeMCU) input, when no pull-up (external nor internal) connected/set for the PIN14?
- Thomas
- 09 Nov 2019, 19:25
- Forum: ESP Easy: General Discussion
- Topic: open-drain (open-collector) on the input: is external pull-up necessary
- Replies: 9
- Views: 9234
Re: open-drain (open-collector) on the input: is external pull-up necessary
Since the counter plug-in does not have a pullup option you should install the external resistor. Couple minutes work, done.
- Thomas
- Thomas
- 09 Nov 2019, 04:22
- Forum: ESP Easy: General Discussion
- Topic: open-drain (open-collector) on the input: is external pull-up necessary
- Replies: 9
- Views: 9234
Re: open-drain (open-collector) on the input: is external pull-up necessary
Is the internal pull-up resistor connected to the GPIO after boot by default? No. Keep in mind that there are some GPIO that are pulled high and low for boot configuration. See https://espeasy.readthedocs.io/en/latest/Reference/GPIO.html#best-pins-to-use-on-esp8266 If not, how to configure input to...
- 08 Nov 2019, 20:06
- Forum: ESP Easy: Hardware
- Topic: mega-20190630, DS18b20: Wrong temp
- Replies: 21
- Views: 15406
Re: mega-20190630, DS18b20: Wrong temp
Interesting. I grabbed my IR gun and checked a Sonoff Basic that has a DS18B20. Being in North America I use the formula option (%value%*9/5+32) to convert to F. The reported temperature matches my IR measurement. Maybe there's a formula corruption in your plugin. As a test, if your DS18b20 device f...
- 08 Nov 2019, 19:33
- Forum: ESP Easy: Hardware
- Topic: mega-20190630, DS18b20: Wrong temp
- Replies: 21
- Views: 15406
Re: mega-20190630, DS18b20: Wrong temp
Any chance your sensor is physically close to the Sonoff? My story: I was getting elevated temperatures on my Sonoffs with DS18b20 sensors. Sonoffs run warm and my sensors were too close. I solved this by moving the DS18b20 several inches from the Sonoff. Is the sensor and Sonoff sharing space in th...
- 30 Oct 2019, 04:50
- Forum: ESP Easy: Hardware
- Topic: hotplug i2C devices
- Replies: 3
- Views: 7844
Re: hotplug i2C devices
Also, keep in mind that hot swapping a powered sensor must use a compatible connector. For example, a TRS phone plug like this can be problematic: https://cdn.sparkfun.com/assets/c/a/3/6/6/5113dc95ce395fe501000000.png Depending on plug pin-out, connectors like it may briefly short power during plug ...
- 26 Oct 2019, 00:50
- Forum: ESP Easy: Projects / Applications
- Topic: ESP 8266 + 2x INA219 up to 15amp
- Replies: 4
- Views: 16918
Re: ESP 8266 + 2x INA219 up to 15amp
Just thought I'd share some tips on using the INA219 "Adafruit" type module with an external shunt. I'm using one ($2 Chinese clone) with an ESP32 to measure up to 200 Amps. My project does not use ESPeasy, but the overall concept remains the same. If you enjoy the math then Adafruit's pub...
- 05 Oct 2019, 20:25
- Forum: ESP Easy: Software
- Topic: Rules optimisation & error handling
- Replies: 10
- Views: 10601
Re: Rules optimisation & error handling
Sounds good. NaN or unique float values are both candidates for indicating a bad read.Well then matching "NaN" could be a valid error state?
Unfortunately this doesn't immediately help the OP. I think the discussed workaround ideas are the best choice at this point.
- Thomas
- 04 Oct 2019, 18:05
- Forum: ESP Easy: Software
- Topic: Rules optimisation & error handling
- Replies: 10
- Views: 10601
Re: Rules optimisation & error handling
I guess it would make sense for a plugin to send out an event like [<taskname>#error] or something like that. Good idea. But I'd prefer to have the existing float values return a unique number such as -999.99 to indicate read failure. This would allow for simpler rule structure when checking for va...
- 04 Oct 2019, 04:46
- Forum: ESP Easy: Software
- Topic: Rules optimisation & error handling
- Replies: 10
- Views: 10601
Re: Rules optimisation & error handling
1. I was thinking about someting like this (not tested yet) Your proposed rules look reasonable. 2. How do espeasy handle i2c or sensor errors? The sensor will report the i2c read error in the logs. But it doesn't appear that a rule can detect a read error. How to hande this case? I was thinking of ...
- 25 Sep 2019, 17:32
- Forum: ESP Easy: General Discussion
- Topic: Issue with PCF8574 & Relays
- Replies: 20
- Views: 20956
Re: Issue with PCF8574 & Relays
The problem only occurs when turning off a powered solenoid (both relay and solenoid de-energize), but does not occur when solenoids are disconnected (only relay de-energizes). If that is the conditions then I would say the PCF8574 is being reset due to the solenoid's EMF inductive "kick" ...
- 24 Sep 2019, 05:53
- Forum: ESP Easy: Software
- Topic: Send data to thingspeak
- Replies: 40
- Views: 35404
Re: Send data to thingspeak
Sorry, I don't have a magic solution. But here's what I would try.
1. Install the latest Mega build.
2. Remove and reinstall the Thingspeak controller. Reconfigure it.
2. Confirm your API Key is accurate. It must be 16 characters long.
- Thomas
1. Install the latest Mega build.
2. Remove and reinstall the Thingspeak controller. Reconfigure it.
2. Confirm your API Key is accurate. It must be 16 characters long.
- Thomas
- 23 Sep 2019, 22:40
- Forum: ESP Easy: Software
- Topic: Send data to thingspeak
- Replies: 40
- Views: 35404
Re: Send data to thingspeak
FWIW, ThingSpeak's communication protocol changed Feb 2019. It now expects MustCheckReply=True, otherwise the communication may unreliable. Set the plugin's Check Reply to Check Acknowledgement.
Details are here:
https://github.com/letscontrolit/ESPEasy/issues/2273
- Thomas
Details are here:
https://github.com/letscontrolit/ESPEasy/issues/2273
- Thomas
- 07 Sep 2019, 18:09
- Forum: ESP Easy: Software
- Topic: solved: Need help in publishing a Dummy value
- Replies: 8
- Views: 7203
Re: solved: Need help in publishing a Dummy value
You're welcome. Glad to know you solved the problem.
- Thomas
- Thomas
- 07 Sep 2019, 00:12
- Forum: ESP Easy: Software
- Topic: solved: Need help in publishing a Dummy value
- Replies: 8
- Views: 7203
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 ...
- 06 Sep 2019, 21:34
- Forum: ESP Easy: Software
- Topic: solved: Need help in publishing a Dummy value
- Replies: 8
- Views: 7203
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
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
- 05 Sep 2019, 18:11
- Forum: ESP Easy: General Discussion
- Topic: Hardware Watchdog Reboots
- Replies: 219
- Views: 226512
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...
- 05 Sep 2019, 17:40
- Forum: ESP Easy: Software
- Topic: Two %eventvalue%
- Replies: 5
- Views: 5642
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...
- 05 Sep 2019, 05:31
- Forum: ESP Easy: Software
- Topic: solved: Need help in publishing a Dummy value
- Replies: 8
- Views: 7203
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:...
- 04 Sep 2019, 20:19
- Forum: ESP Easy: Software
- Topic: Two %eventvalue%
- Replies: 5
- Views: 5642
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. - Th...
- 04 Sep 2019, 18:17
- Forum: ESP Easy: Hardware
- Topic: esp lost connection
- Replies: 7
- Views: 23426
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
https://github.com/letscontrolit/ESPEasy/releases
- Thomas
- 04 Sep 2019, 04:54
- Forum: ESP Easy: Software
- Topic: Plugin timing/architecture questions [TE AmbiMate MS4 multisensor)
- Replies: 4
- Views: 6024
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 deleti...
- 03 Sep 2019, 23:00
- Forum: ESP Easy: Hardware
- Topic: No wakeup after complete discharge of the batteries
- Replies: 55
- Views: 45966
Re: No wakeup after complete discharge of the batteries
Don't forget that this application will require a micropower OpAmp; Single supply, rail-to-rail, and capable of operating at very low voltage.I still have unused OpAmps.This allows me to build a Schmitt trigger for the EN.
- Thomas
- 03 Sep 2019, 22:41
- Forum: ESP Easy: Software
- Topic: Flash and stil remembers old settings
- Replies: 3
- Views: 4863
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...
- 03 Sep 2019, 19:35
- Forum: ESP Easy: Hardware
- Topic: No wakeup after complete discharge of the batteries
- Replies: 55
- Views: 45966
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/Electronics/Components/Brown-Out_Reset_Circuits.html - Thomas
- 02 Sep 2019, 19:50
- Forum: ESP Easy: Hardware
- Topic: pcf8574 can not actuate a relay (only it's LED)
- Replies: 8
- Views: 14775
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...
- 27 Aug 2019, 17:04
- Forum: ESP Easy: General Discussion
- Topic: ESP8266 lost connection
- Replies: 3
- Views: 8986
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
If the problem persists then try a different power supply adapter, even if you have done that before.
- Thomas
- 25 Aug 2019, 19:09
- Forum: ESP Easy: Hardware
- Topic: pcf8574 can not actuate a relay (only it's LED)
- Replies: 8
- Views: 14775
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...
- 21 Aug 2019, 22:32
- Forum: ESP Easy: Software
- Topic: [SOLVED]Problem with relays during boot nodeMCU
- Replies: 19
- Views: 20492
Re: [SOLVED]Problem with relays during boot nodeMCU
Glad to hear the final solution was quick and easy. In some paper/rock/scissors contests, solder beats software.All you need is a transistor, e.g. BD135 and a 1k resistor. Simply connect the transistor base via a resistor to GPIO5.
- Thomas
- 21 Aug 2019, 22:25
- Forum: ESP Easy: Software
- Topic: http send command or rule
- Replies: 11
- Views: 11318
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,...
- 19 Aug 2019, 19:06
- Forum: ESP Easy: General Discussion
- Topic: Setting up ThinkSpeak
- Replies: 2
- Views: 8518
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...
- 19 Aug 2019, 17:15
- Forum: ESP Easy: Software
- Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
- Replies: 26
- Views: 13759
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/22...
- 19 Aug 2019, 00:50
- Forum: ESP Easy: Software
- Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
- Replies: 26
- Views: 13759
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...
- 18 Aug 2019, 22:53
- Forum: ESP Easy: Software
- Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
- Replies: 26
- Views: 13759
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...
- 18 Aug 2019, 20:49
- Forum: ESP Easy: Software
- Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
- Replies: 26
- Views: 13759
Re: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
That's a interesting result. At the moment I don't have any brilliant ideas to offer.every MQTT message gets through but thingspeak only recieved a few
- Thomas
- 18 Aug 2019, 19:59
- Forum: ESP Easy: Software
- Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
- Replies: 26
- Views: 13759
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...
- 18 Aug 2019, 18:03
- Forum: ESP Easy: Software
- Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
- Replies: 26
- Views: 13759
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...
- 18 Aug 2019, 17:48
- Forum: ESP Easy: Software
- Topic: Oversampling on analog input hangs nodeMCU
- Replies: 14
- Views: 10150
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...
- 18 Aug 2019, 04:25
- Forum: ESP Easy: Software
- Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
- Replies: 26
- Views: 13759
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 thi...
- 18 Aug 2019, 03:25
- Forum: ESP Easy: Software
- Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
- Replies: 26
- Views: 13759
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 pr...
- 17 Aug 2019, 23:59
- Forum: ESP Easy: Software
- Topic: Oversampling on analog input hangs nodeMCU
- Replies: 14
- Views: 10150
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 ...
- 17 Aug 2019, 03:39
- Forum: ESP Easy: Software
- Topic: Only 1 Value/Sensor is being send after Deepsleep [WemosD1mini]
- Replies: 26
- Views: 13759
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...
- 16 Aug 2019, 23:35
- Forum: ESP Easy: Software
- Topic: Instant pulse sending via MQTT
- Replies: 9
- Views: 5885
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 ...
- 16 Aug 2019, 04:30
- Forum: ESP Easy: Software
- Topic: DeepSleep Wakeup does not work anymore - very confusing
- Replies: 3
- Views: 5041
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 ...
- 15 Aug 2019, 23:27
- Forum: ESP Easy: Software
- Topic: Oversampling on analog input hangs nodeMCU
- Replies: 14
- Views: 10150
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. Especiall...
- 14 Aug 2019, 03:39
- Forum: ESP Easy: General Discussion
- Topic: MQTT LWT Messages
- Replies: 1
- Views: 7199
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...
- 13 Aug 2019, 20:15
- Forum: ESP Easy: Software
- Topic: [SOLVED]Problem with relays during boot nodeMCU
- Replies: 19
- Views: 20492
Re: Problem with relays during boot nodeMCU
That would indeed be a problem. The transistor and magic dust is going to be needed after all.Yes, but with this solution (when the jumper is set to trigger low) you have a voltage of 5V at the relay module input.
- Thomas
- 13 Aug 2019, 19:15
- Forum: ESP Easy: Software
- Topic: [SOLVED]Problem with relays during boot nodeMCU
- Replies: 19
- Views: 20492
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 ...