Search found 444 matches

by ThomasB
06 Aug 2019, 23:56
Forum: ESP Easy: Software
Topic: %c_m2dhm%(%uptime%) does nothing
Replies: 6
Views: 3069

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

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: 8
Views: 1856

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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: 9
Views: 6513

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

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

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

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

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

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

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

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: 204
Views: 24532

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: 17
Views: 13290

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

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

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

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

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 5558 times
- Thomas
by ThomasB
24 Jun 2019, 21:15
Forum: ESP Easy: General Discussion
Topic: Advice on rule design
Replies: 3
Views: 5663

Re: Advice on rule design

I was trying to mess around with variables but didn’t have much luck.
This discussion should help you: viewtopic.php?t=6288

- Thomas
by ThomasB
23 Jun 2019, 02:09
Forum: ESP Easy: Hardware
Topic: problems flashing sonoff basic r2 power v1
Replies: 3
Views: 7002

Re: problems flashing sonoff basic r2 power v1

What am I doing wrong? A couple tips: 1. Your Sonoff has a ESP8265 with 1MB memory that uses DOUT. Be sure that you flash the correct firmware file. Hint: Use the latest Mega release that is compatible with your device. 2. Be sure to press and hold the push switch when you power it up. This enables...
by ThomasB
22 Jun 2019, 18:25
Forum: ESP Easy: General Discussion
Topic: show remaining timer value
Replies: 2
Views: 5460

Re: show remaining timer value

I expected a list of timers the System Variables overview, but the timers aren't there. Am I missing something?
We can't directly read the system timer values. The workaround is to create a companion timer (via rules) that "countdowns" a dummy var every second.

- Thomas
by ThomasB
22 Jun 2019, 18:20
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 204
Views: 24532

Re: Hardware Watchdog Reboots

I don't know where I read it, but someone stated that the current spikes during WiFi negotiations has increased in later core releases. This would suggest a reason for the voltage "noise" related reboots not affecting older firmware versions.

- Thomas
by ThomasB
21 Jun 2019, 18:22
Forum: ESP Easy: General Discussion
Topic: Question regarding correct firmware
Replies: 4
Views: 5384

Re: Question regarding correct firmware

... could you please point me to the section in the wiki that explains how to use the serial to log when booting? 1. Connect PC to USB port on ESP Module. 2. Launch your favorite serial terminal program (e.g. PuTTY). 3. Connect using 115200 baud (8 bit / 1 stop / No Parity). 4. Push Reset Button on...
by ThomasB
21 Jun 2019, 05:19
Forum: ESP Easy: General Discussion
Topic: Question regarding correct firmware
Replies: 4
Views: 5384

Re: Question regarding correct firmware

When I say, not worked, I mean that the flash writes just fine but I never see the device on the network. I don't see it's private WiFi access point or the device on my network at all. You might learn more about what is going on by monitoring the serial log. Check for any useful messages during the...
by ThomasB
20 Jun 2019, 20:07
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to guard meter-box
Replies: 19
Views: 8447

Re: ESPEasy to guard meter-box

I agree that using that circuit sensor inside the load center (mains electrical panel) is a low cost elegant solution. But it's not my cup of tea; Along with general safety concerns, I don't want to give my home insurance provider a reason to deny a claim due to unaccepted devices inside the panel. ...
by ThomasB
20 Jun 2019, 17:44
Forum: ESP Easy: Projects / Applications
Topic: ESPEasy to guard meter-box
Replies: 19
Views: 8447

Re: ESPEasy to guard meter-box

Found one that checks 8 groups in one board. Looks OK, or am I missing something? I'm using the single channel version in a washing machine. Although designed for 220VAC, it is reliably sensing North American 120VAC. But I am VERY hesitant to recommend these Chinese made boards. They seem to have v...
by ThomasB
20 Jun 2019, 17:17
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 204
Views: 24532

Re: Hardware Watchdog Reboots

I tend to believe there is somewhere a bug (can be in our code, or in the core libraries) related to some buffer size not including a 0 termination character, or not setting it. I suspect that kind of problem too. Or possibly a var pointer with an address that isn't initialized. Are there any archi...
by ThomasB
20 Jun 2019, 03:44
Forum: ESP Easy: Software
Topic: Rules and triggers
Replies: 12
Views: 4491

Re: Rules and triggers

Is there an event that I can listen for that fires when an MQTT Publish happens? Instead of using a plugin's Send to Controller option, you can create rules that are triggered when the device's value changes. In the rule you can publish the MQTT message, plus call a timer rule that winks the LED. -...
by ThomasB
20 Jun 2019, 02:42
Forum: ESP Easy: Software
Topic: Rules and triggers
Replies: 12
Views: 4491

Re: Rules and triggers

I flashed ESP_Easy_mega-20190607_normal_core_241_ESP8266_1M to the Wemos and it installed fine. Would this be the latest version?
At the moment it is the latest.
... both rules work perfectly!
Congrats on your success.

- Thomas
by ThomasB
20 Jun 2019, 00:29
Forum: ESP Easy: General Discussion
Topic: Hardware Watchdog Reboots
Replies: 204
Views: 24532

Re: Hardware Watchdog Reboots

I still regret we made the change to core 2.4.x with so many changes that there's no way back. In rare cases core 2.4.x is golden too. All my ESPEasy's (a mix of NodeMCU and Sonoff modules) have reboot issues. Except one gifted Sonoff that has not rebooted since it was deployed. Now reporting a sys...