Search found 406 matches

by ThomasB
09 Aug 2019, 19:25
Forum: ESP Easy: General Discussion
Topic: [SOLVED] MQTT - Failed to connect to broker
Replies: 6
Views: 2798

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: 2944

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: 1350

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: 2377

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: 1350

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: 169
Views: 17592

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...
by ThomasB
08 Aug 2019, 22:04
Forum: ESP Easy: Hardware
Topic: Relay is able to turn ON but get stuck at OFF
Replies: 3
Views: 2541

Re: Relay is able to turn ON but get stuck at OFF

signal to 10kohm to gpio 2 Ordinarily you would directly connect the relay board's " IN " pin to a 5V TTL compatible I/O pin. The supplier claims that 5mA is needed to actuate the relay. So that would imply that your 10K ohm series resistor is too high a value (3.3V/10000 = 0.3mA). If the relay boa...
by ThomasB
08 Aug 2019, 17:07
Forum: ESP Easy: Software
Topic: Strange problem with BMP180
Replies: 18
Views: 2944

Re: Strange problem with BMP180

The data sheet shows that the 662K VReg dropout is only 250mV. So if that's what yours has, then the resulting output should be close to 3V. But I agree that powering a 3.3V Vreg with 3.3V is something that can cause undesirable results. FWIW, 10K ohm pull-ups are maximum allowed values and can be p...
by ThomasB
08 Aug 2019, 04:21
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 169
Views: 17592

Re: Hardware Watchdog Reboots

My question, is this a normal situation?
Nice to see the 97 day uptime on your old June-2018 core_2_4_1 build. With the 2.4.1 core, and up to the mid-2018 time frame, reliable run times were achieved by most users. I fondly remember those good old days.

- Thomas
by ThomasB
07 Aug 2019, 22:11
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 169
Views: 17592

Re: Hardware Watchdog Reboots

As mentioned in the previous post, mega-20190805 was installed on my Sonoff basic yesterday. Today it rebooted (after running 24 hrs, 15 mins). System info says: Boot: Manual reboot (1) Reset Reason: Exception Rebooting approximately once a day is what this device experienced with the June build it ...
by ThomasB
07 Aug 2019, 20:32
Forum: ESP Easy: Software
Topic: Strange problem with BMP180
Replies: 18
Views: 2944

Re: Strange problem with BMP180

So before using SendToHTTP the formula check and eliminate nonsensical values. Another think is that in most cases only reboot resolve situation so I need to reboot device each 50 min from rule. It is not problem for me but generally I think that the issue is. Perhaps the large gap of missing baro ...
by ThomasB
07 Aug 2019, 00:18
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 169
Views: 17592

Re: Hardware Watchdog Reboots

The user feedback sounds promising. So today I loaded ESP_Easy_mega-20190805_normal_ESP8266_1M.bin on a Sonoff Basic to try it out. Hopefully its goodness spreads my way too. This device was running a late June build (mega-20190630_normal). I'm looking forward to seeing less reboots on this fresh Au...
by ThomasB
06 Aug 2019, 23:56
Forum: ESP Easy: Software
Topic: %c_m2dhm%(%uptime%) does nothing
Replies: 6
Views: 2443

Re: %c_m2dhm%(%uptime%) does nothing

Another source for standard conversion formulas (and other useful things) is from ESPEasy's Tools menu: Tools->SystemVariables
http://IP_ADDR/sysvars

- Thomas
by ThomasB
06 Aug 2019, 20:06
Forum: ESP Easy: Software
Topic: %c_m2dhm%(%uptime%) does nothing
Replies: 6
Views: 2443

Re: %c_m2dhm%(%uptime%) does nothing

i want to display uptime in days hours and seconds... As suggested you can use rules to calculate/store the three %uptime% derived values to dummy variables. Then use the three dummy values to create the dd:hh:mm message for your display. Or skip the dummy's and directly send the calculated values....
by ThomasB
04 Aug 2019, 22:05
Forum: ESP Easy: Software
Topic: ESPEasy WiFi reconnect Rules
Replies: 6
Views: 1224

Re: ESPEasy WiFi reconnect Rules

Do i need to make a dummy device (or something else) to store the value. Or is VAR a default function in espeasy? VARs (VAR#1 - VAR#16, alias %v1% - %v16%) are Custom Variables that are separate from those used in the dummy plugin. They are built-in/default, so a plugin is not needed to use them. S...
by ThomasB
03 Aug 2019, 19:09
Forum: ESP Easy: Hardware
Topic: Sonoff Basic R3 additional flash on U6
Replies: 3
Views: 2764

Re: Sonoff Basic R3 additional flash on U6

I wonder if it is just as simple as soldering on the chip...
From what I see in the PCB photo I would expect it to be that simple.

- Thomas
by ThomasB
01 Aug 2019, 20:27
Forum: ESP Easy: Software
Topic: Instant pulse sending via MQTT
Replies: 9
Views: 1350

Re: Instant pulse sending via MQTT

+1 for this feature! Dec 2015 topic rises from the grave. I believe you can do it with the existing Generic - Pulse counter . The basic idea is to use rules to send the counted value only when it has changed. This calculated value (new total count minus previous total count) is sent via MQTT publis...
by ThomasB
01 Aug 2019, 05:36
Forum: ESP Easy: Software
Topic: Alive Mail
Replies: 1
Views: 2362

Re: Alive Mail

The very raw idea is that at the moment the mail delivery stops, something must be wrong and I could send the neighbor over. More or less a deadmanbutton. Does anybody know how to realize something like that. 1. Configure the Email (SMTP) plugin found on the Notifications page. Validate settings us...
by ThomasB
31 Jul 2019, 22:07
Forum: ESP Easy: General Discussion
Topic: Any way to restore config.dat automatically?
Replies: 8
Views: 3299

Re: Any way to restore config.dat automatically?

Any other ideas? Here's my ideas: Serial Log: Use ESPEz's serial log and set it to debug level. Check the log messages during a config.dat upload to see if anything useful is posted. I also noticed that you are using curl's verbose (-v) flag, so check its messages too. File Format: The config.dat i...
by ThomasB
25 Jul 2019, 17:55
Forum: ESP Easy: General Discussion
Topic: ser2net - possible to set baudrate with rules?
Replies: 4
Views: 3893

Re: ser2net - possible to set baudrate with rules?

From what I see in the source code, ser2net baud rate is set when the plugin is loaded; Changing baud during run-time is not supported.

- Thomas
by ThomasB
21 Jul 2019, 00:22
Forum: ESP Easy: Software
Topic: Create rules for 8 buttons/relays + LCD display
Replies: 6
Views: 2841

Re: Create rules for 8 buttons/relays + LCD display

- Is the syntax OK ? Some comments that deserve your attention: 1. if [VAR#%eventvalue1%]=0 AFAIK, that trickery is not allowed. The wiki says to copy the %eventvalue% to a dummy. Then act on the dummy value. 2. let,%eventvalue%,0 Just to be cautionary, this might not be doing what you want. It wou...
by ThomasB
20 Jul 2019, 20:13
Forum: ESP Easy: Software
Topic: Create rules for 8 buttons/relays + LCD display
Replies: 6
Views: 2841

Re: Create rules for 8 buttons/relays + LCD display

For better review of the installation you should post a screenshot of the devices page.
- Thomas
by ThomasB
20 Jul 2019, 18:24
Forum: ESP Easy: Software
Topic: Rules: how to avoid PWM > 1023 ?
Replies: 7
Views: 2807

Re: Rules: how to avoid PWM > 1023 ?

Glad to hear you solved the problem.

- Thomas
by ThomasB
20 Jul 2019, 01:29
Forum: ESP Easy: Software
Topic: Rules: how to avoid PWM > 1023 ?
Replies: 7
Views: 2807

Re: Rules: how to avoid PWM > 1023 ?

This example uses a dummy device at Task #6. Device name FanVar , Value name (1) is PWMval . Feel free to change them for your installation. On System#Boot do timerSet,1,15 endon On Rules#Timer=1 do if [Fan#PWM]>1023 TaskValueSet 6,1,1023 // Assign max value to FanVar#PWMval. else TaskValueSet 6,1,[...
by ThomasB
19 Jul 2019, 21:43
Forum: ESP Easy: Software
Topic: Rules: how to avoid PWM > 1023 ?
Replies: 7
Views: 2807

Re: Rules: how to avoid PWM > 1023 ?

Does your old version support the Dummy Device plugin? If it does then you can copy the PWM value and limit it to 1023. Use the dummy value in your PWM statement. As an alternative, you could use the "event" command to handle the PWM action. The event subroutine could limit the PWM value using if/th...
by ThomasB
19 Jul 2019, 17:45
Forum: ESP Easy: Software
Topic: Rules: how to avoid PWM > 1023 ?
Replies: 7
Views: 2807

Re: Rules: how to avoid PWM > 1023 ?

The problem is that at above 85C the calculated PWM is >1023 making the fan stop, which should not happen. What is the solution? Change this: PWM,0,[Fan#PWM] To: if [Fan#PWM]<1023 PWM,0,[Fan#PWM] else PWM,0,1023 endif This code is a nested if/then. I don't believe that old ESPEz versions allowed ne...
by ThomasB
17 Jul 2019, 05:55
Forum: ESP Easy: Software
Topic: Rules Timer ignore
Replies: 4
Views: 2822

Re: Rules Timer ignore

It looks like your log level is set to info . Increase it to debug and review the expanded messages for clues to the problem. BTW, I see that Timer 1 has expired, then things go quiet for awhile; Maybe it hangs on MQTT. So, reconfirm the MQTT is working correctly. For example, check your broker and ...
by ThomasB
16 Jul 2019, 18:34
Forum: ESP Easy: General Discussion
Topic: Power Outage detector
Replies: 2
Views: 3725

Re: Power Outage detector

There is no need to monitoring voltage or current just presence of the electricity? {snip} Just need a safe way. One safe way is to power the ESP device without UPS or backup battery. Have it send periodic heartbeat message using timer rule. When power is lost the heartbeat message stops and this c...
by ThomasB
15 Jul 2019, 17:09
Forum: ESP Easy: General Discussion
Topic: Oh no, not the PCF8591 again...
Replies: 16
Views: 4532

Re: PCF8591 as comparator.

If you mean you want to enable ADS1115's differential mode, then configure its plugin for Differential operation. It's in the "Input Multiplexer" drop down list. Reading ADC values will use differential operation after you do that. If the ADC's differential mode trickery does not work as you expecte...
by ThomasB
15 Jul 2019, 02:50
Forum: ESP Easy: General Discussion
Topic: Oh no, not the PCF8591 again...
Replies: 16
Views: 4532

Re: PCF8591 as comparator.

But I want to read the value, not the state...
OK, a comparator won't work. Wire up a ADC and put it to work.

- Thomas
by ThomasB
14 Jul 2019, 23:24
Forum: ESP Easy: General Discussion
Topic: Oh no, not the PCF8591 again...
Replies: 16
Views: 4532

Re: PCF8591 as comparator.

Why single ended? Because I have high confidence single ended ADC operation will work without much fuss. I'm not convinced the differential input will work as you intended (it's there for applications that need noise immunity, not analog compare). But give it a try since experimentation is fun. And...
by ThomasB
14 Jul 2019, 18:50
Forum: ESP Easy: General Discussion
Topic: Oh no, not the PCF8591 again...
Replies: 16
Views: 4532

Re: PCF8591 as comparator.

Ah, am I using the wrong terminology? OK, so what's the difference? A comparator changes logic state when the threshold voltage is exceeded. A differential ADC's two inputs are subtracted from the other. This is intended to reduce common mode noise on input signals. I've got an ADS1115 in the box, ...
by ThomasB
14 Jul 2019, 03:22
Forum: ESP Easy: General Discussion
Topic: Oh no, not the PCF8591 again...
Replies: 16
Views: 4532

Re: PCF8591 as comparator.

The PCF8591 does not provide user access to its internal comparator (it's assigned to the successive approximation logic). But using the differential input feature with a low reference voltage is a trick worth playing with if the rule based concept does not work. Keep in mind that this is not the sa...
by ThomasB
14 Jul 2019, 02:54
Forum: ESP Easy: Software
Topic: Problem with WEB-interface
Replies: 8
Views: 2982

Re: Problem with WEB-interface

It seems to work ok for now, and I´ll see if it comes back next power outage, or before!
Glad to hear you fixed it.

- Thomas
by ThomasB
14 Jul 2019, 01:18
Forum: ESP Easy: Software
Topic: Problem with WEB-interface
Replies: 8
Views: 2982

Re: Problem with WEB-interface

If I use sysinfo I come directly to the web interface, and it seems to work, everything except the homepage. Anything in the sysinfo report to be concerned about? For example, are Free Mem and Free Stack values normal? Do you think I should try updating firmware from web interface? That is a good i...
by ThomasB
14 Jul 2019, 00:50
Forum: ESP Easy: Projects / Applications
Topic: Controlling AC throught Openhab and ESP Easy
Replies: 7
Views: 4244

Re: Controlling AC throught Openhab and ESP Easy

Thanks for sharing your setup. I'm also using ESPEasy with Openhab home control. Compatibility between them is excellent thanks to MQTT. And giving a voice to ESPEasy devices is possible using Openhab's Alexa Control Binding. Telling Alexa to control a ESPEasy device and/or have her provide voice re...
by ThomasB
14 Jul 2019, 00:33
Forum: ESP Easy: Software
Topic: Problem with WEB-interface
Replies: 8
Views: 2982

Re: Problem with WEB-interface

I have tried a couple reboots with pulling the fuse to the vent unit, and got it to reboot "manually", that dit not work. Hmm, that should have solved the problem. It seems to me that the firmware is corrupted or the device is broken. If it's installed in a hot attic then that can be a cruel enviro...
by ThomasB
13 Jul 2019, 22:43
Forum: ESP Easy: Software
Topic: Problem with WEB-interface
Replies: 8
Views: 2982

Re: Problem with WEB-interface

Have you tried a remote reboot using http?
http://<DEVICE_IP>/?cmd=reboot

- Thomas
by ThomasB
13 Jul 2019, 18:24
Forum: ESP Easy: General Discussion
Topic: Oh no, not the PCF8591 again...
Replies: 16
Views: 4532

Re: PCF8591 as comparator.

I'm not sure how big a deal that will be. Getting familiar with the PlatformIO IDE will probably be the hardest part. You mentioned that you want to use the PCF8591 as a comparator. This can be done in ESPEasy's rules. Read the ADC channel, then have a rule compare it to the "reference" voltage (an...
by ThomasB
13 Jul 2019, 05:30
Forum: ESP Easy: General Discussion
Topic: Oh no, not the PCF8591 again...
Replies: 16
Views: 4532

Re: PCF8591 as comparator.

The plugin only provides simple analog reads of the four inputs. No other functions are supported.

-Thomas
by ThomasB
11 Jul 2019, 16:52
Forum: ESP Easy: Software
Topic: Serial data from arduino uno to espeasy
Replies: 7
Views: 3159

Re: Serial data from arduino uno to espeasy

You are able to flash firmware to the Wemos D1 V2.x knockoff so the ESP8266's serial port is alive. Maybe the cloner made a mistake in the board layout on the RX and TX I/O pins. Or perhaps the two "470 ohm" resistors on the CH340G (at pins TXD & RXD) were stuffed with the incorrect value. So if you...
by ThomasB
11 Jul 2019, 03:09
Forum: ESP Easy: General Discussion
Topic: Talking to each other.
Replies: 2
Views: 4039

Re: Talking to each other.

Some useful details on how to do it with ESPEasy P2P Networking (and other methods) are found here: viewtopic.php?f=4&t=5830

- Thomas
by ThomasB
10 Jul 2019, 23:07
Forum: ESP Easy: Software
Topic: Serial data from arduino uno to espeasy
Replies: 7
Views: 3159

Re: Serial data from arduino uno to espeasy

Check the revision on your Wemos D1 mini. If it is a V3.x series I suspect that there will be a conflict with the onboard USB/Serial chip. I suggest lifting the TXD pin (PIN-2) on the CH340C. This will prevent attenuating the externally transmitted data signal level that is going to the Wemos's "RX"...
by ThomasB
06 Jul 2019, 00:25
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 169
Views: 17592

Re: Hardware Watchdog Reboots

Thanks for digging deep into the reboot issue. It's been a persistent problem for some of us. Your findings are interesting and it appears you are close to solving it.

I don't have any useful information to help in your debugging adventure; Just wanted to stop by and cheer you on.

- Thomas
by ThomasB
01 Jul 2019, 02:28
Forum: ESP Easy: Hardware
Topic: SONOFF MINI
Replies: 16
Views: 8591

Re: SONOFF MINI

No experience with it, but flashing ESPEasy appears to be possible. It has a ESP8265 (1MB) and four solder pads for the serial interface. See PCB photos here: https://fccid.io/2APN5-MINI/Internal-Photos/Internal-Photos-4291787 The bad news is that the photos show that most GPIO pins don't have conve...
by ThomasB
28 Jun 2019, 18:59
Forum: ESP Easy: Projects / Applications
Topic: Solved! Since update endless feedback loop of a switching command between ESP EASY and Domoticz
Replies: 6
Views: 4897

Re: Since update endless feedback loop of a switching command between ESP EASY and Domoticz

That would eliminate my feedback problem, but then I would lose the status display of the fan in Domoticz.
The status data can be sent to Domoticz by your ESPEasy rules (use the publish command).

- Thomas
by ThomasB
26 Jun 2019, 20:39
Forum: ESP Easy: General Discussion
Topic: P2P networking node monitoring?
Replies: 1
Views: 4771

Re: P2P networking node monitoring?

The typical way is to use timer rules on the host. One timer for each temperature sensor. The sensor data would be configured to report periodically, for example once every 30 secs. When the temperature data is received from a sensor its assigned timer is re-initialized to a period that is 2X longer...
by ThomasB
25 Jun 2019, 21:08
Forum: ESP Easy: General Discussion
Topic: Setting WiFi channel
Replies: 1
Views: 4838

Re: Setting WiFi channel

Presently it doesn't seem possible to do that. But a workaround is to power cycle (cold reboot) the ESP device so it can perform a new SSID scan. Repeat these cold reboots (if necessary) until your preferred connection is found. BTW, a warm reboot should retain the last connection's SSID. So no worr...
by ThomasB
25 Jun 2019, 05:12
Forum: ESP Easy: General Discussion
Topic: DST Information
Replies: 2
Views: 4931

Re: DST Information

This screenshot shows PST timezone. It observes UTC- 8 hours (-480 mins). Because the DST box is checked the time zone offset is automatically corrected to -7 hours during daylight savings time.
.
espeasyDST.jpg
DST Settings.
espeasyDST.jpg (88.47 KiB) Viewed 4928 times
- Thomas