Search found 212 matches

by Micha_he
09 Nov 2020, 08:43
Forum: ESP Easy: Software
Topic: INT/ Float / Number of Decimals for variables to display on 7 segment etc.??
Replies: 5
Views: 786

Re: INT/ Float / Number of Decimals for variables to display on 7 segment etc.??

Without the decimal point, you can multiply it with 10 (or 100) to get more digits, or not?
by Micha_he
06 Nov 2020, 08:30
Forum: ESP Easy: General Discussion
Topic: MQTT-Controller LWT topic
Replies: 15
Views: 1892

Re: MQTT-Controller LWT topic

In the fact, that the correct MQTT-LWT-handling not help at my OpenHAB problem (at a proper disconnect, no message and no LWT is send, so I can't control the OpenHAB-active-item), I've found a solution: OpenHAB MQTT 2.x multichannel-binding One active-item is bind at two MQTT-channels (should work w...
by Micha_he
04 Nov 2020, 19:23
Forum: ESP Easy: General Discussion
Topic: MQTT-Controller LWT topic
Replies: 15
Views: 1892

Re: MQTT-Controller LWT topic

From http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/errata01/os/mqtt-v3.1.1-errata01-os-complete.html#_Toc442180843 3.1.2.5 Will Flag Position: bit 2 of the Connect Flags. ... the Will Message has been deleted by the Server on receipt of a DISCONNECT Packet [MQTT-3.1.2-8]... So it should work in princi...
by Micha_he
04 Nov 2020, 10:32
Forum: ESP Easy: General Discussion
Topic: MQTT-Controller LWT topic
Replies: 15
Views: 1892

Re: MQTT-Controller LWT topic

New insights: A 'publish,%sysname%/status/LWT,"Connection Lost"' before sleep, publish the message to the broker, but didn't clean the retained LWT topic. If I check it later with mosquitto_sub, then the retained LWT-topic still exists and contains "Connected", although the clien...
by Micha_he
03 Nov 2020, 13:41
Forum: ESP Easy: General Discussion
Topic: MQTT-Controller LWT topic
Replies: 15
Views: 1892

Re: MQTT-Controller LWT topic

Yes, the disconnection is arrived at the msoquitto-broker. I can saw it in the log. But the disconnection doesn't clean the retained LWT. This may be intentional or due to MQTT, especially with mosquitto or the pubsubclient. I could not clarify it. There are some discussions in other forums, such th...
by Micha_he
30 Oct 2020, 15:18
Forum: ESP Easy: General Discussion
Topic: MQTT-Controller LWT topic
Replies: 15
Views: 1892

Re: MQTT-Controller LWT topic

One single question again: Here you see the retained messages from the broker if I subcribe to '#': Okt 30 15:11:25 DIM1GZ/status/LWT Connected Okt 30 15:11:25 DIM2GZ/status/LWT Connected Okt 30 15:11:25 SW001/status/LWT Connected Okt 30 15:11:25 Zisterne/status/LWT Connected Okt 30 15:11:25 FK001/s...
by Micha_he
27 Oct 2020, 14:59
Forum: ESP Easy: General Discussion
Topic: USB KVM Switch modify project - 2
Replies: 43
Views: 3164

Re: USB KVM Switch modify project - 2

2. No ! The led of the optocupler needs ~1.15V / 10mA. You can not remove the resistor. And the PCF8574 cannot drive +10mA. 3. Look at the IR-led datasheet. If it only needs 300µA, would be unusual, it could work ! In my opinion, there is no Led that works with 300µA. You need a additional transisto...
by Micha_he
26 Oct 2020, 23:27
Forum: ESP Easy: General Discussion
Topic: USB KVM Switch modify project - 2
Replies: 43
Views: 3164

Re: USB KVM Switch modify project - 2

You can't connect the LED-anode to the output of the PCF8574, because it need more than 300 μA !
Better connect the anode of the LED+resistor (or LED+resistor of the optocupler) to 3.3v, cathode to the PCF8574-output and switch it on, with a output-state of 0.
by Micha_he
26 Oct 2020, 22:23
Forum: ESP Easy: General Discussion
Topic: USB KVM Switch modify project - 2
Replies: 43
Views: 3164

Re: USB KVM Switch modify project - 2

Attention:

PCF8574 has:

300 μA at high-level (3.3V) and
25 mA at low-level (0V).
by Micha_he
26 Oct 2020, 18:03
Forum: ESP Easy: General Discussion
Topic: MQTT-Controller LWT topic
Replies: 15
Views: 1892

Re: MQTT-Controller LWT topic

Just as a remark on your last comment. Make sure to double check the leading slash in your topics. Damn, you're right... :oops: The test-ESP has the default settings after factory reset and there is no leading slash. Result: LWT is working, default LWT (.../status/LWT) also works !!! I'll now recon...
by Micha_he
26 Oct 2020, 11:28
Forum: ESP Easy: General Discussion
Topic: MQTT-Controller LWT topic
Replies: 15
Views: 1892

Re: MQTT-Controller LWT topic

No, all are with leading slash. I've missed one in my comment ;)
by Micha_he
26 Oct 2020, 10:36
Forum: ESP Easy: General Discussion
Topic: MQTT-Controller LWT topic
Replies: 15
Views: 1892

Re: MQTT-Controller LWT topic

Maybe I misunderstood your second statement, but: If the ESP is send '%sysname%/status' as LWT-topic, the ESP is shut down, the Mosquitto-server sends '/%sysname%/status Connection Lost'. All ok. If I set the LWT-topic in the controller to '/%sysname%/status/LWT' and shut it down after It's connecte...
by Micha_he
26 Oct 2020, 09:54
Forum: ESP Easy: General Discussion
Topic: MQTT-Controller LWT topic
Replies: 15
Views: 1892

Re: MQTT-Controller LWT topic

I'd a quick look at the current source, but found no changes, which explains this behavior. The only possibility would be that 'if (LWTTopic.length() == 0)' (in the Controler.cpp) is not zero ?!? Your last change (add a LWT to the topic) seems not work with my Mosquitto V1.4.10 server on OpenHABianP...
by Micha_he
25 Oct 2020, 17:59
Forum: ESP Easy: General Discussion
Topic: MQTT-Controller LWT topic
Replies: 15
Views: 1892

MQTT-Controller LWT topic

Hi. In the actual ESPEasy versions, the default 'DEFAULT_MQTT_LWT_TOPIC' is set to 'none'. If I use the default controller settings, 'send LWT to broker' is enabled but nothing is send. If I change the topic to '%sysname&/status', the LWT is send to my Mosquitto V1.4.10. In older versions the de...
by Micha_he
23 Oct 2020, 08:48
Forum: ESP Easy: General Discussion
Topic: GPIO 4 flickering on reset
Replies: 6
Views: 1737

Re: GPIO 4 flickering on reset

Maybe... ?
i2c.jpg
i2c.jpg (18.58 KiB) Viewed 1732 times
by Micha_he
19 Oct 2020, 18:00
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Stack overflow at chained events in irrigation-control-rules

I've changed all events to async and it's working without crashes.
by Micha_he
19 Oct 2020, 07:58
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

But, when these events not executed too quick or the start didn't overlap, then that means, that 3 events being processed at the same time, cause the stack to overflow. :( But if you think that this is not a bug in the parser, then I must switch to the AsyncEvent's... if It's possible in my irrigati...
by Micha_he
18 Oct 2020, 23:57
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

In my test-environment from the post above, the event-chain works, if I added a timer from 1s between the events.

It seems, that's the event-init or -execution is overlapping!
by Micha_he
18 Oct 2020, 22:09
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

Maybe I can use AsyncEvent in the rules AS workaround. I'll look...

But how can one device and 12 lines (9 lines with the 3 events) create a stack overflow?
Is it possible, that the events are started too quickly after each other?
by Micha_he
18 Oct 2020, 11:25
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

New insights: The problem isn't dependent on the plugin 'Switch input - PCF8574' !!! You can replace the only PCF8574-device with a simple switch input (e.g. name=switch, valuename=state, GPIO=12) and replace the second last line of the rule with 'GPIO,12,[Switch#State#!Z]'. Event Test2 & Test3 ...
by Micha_he
18 Oct 2020, 10:38
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

Can I do some addional test to find the problem?
Can someone else reproduce the problem?
by Micha_he
16 Oct 2020, 18:50
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

New minimal setup: ESP (WROOM02_2M256, but ESP12F is the same) flashed with the latest firmware. Config is DHCP, NTP with fritz.box and one device PCFGPIO-switch-input (Port 1, slow I2C speed, name=Ventil1, valuename=status). I mean, thats all. One rule: on System#Boot do pcfgpio,1,0 endon on Test1 ...
by Micha_he
15 Oct 2020, 21:48
Forum: ESP Easy: General Discussion
Topic: Current firmware not work on Wroom02 (2MB)
Replies: 5
Views: 1916

Re: Current firmware not work on Wroom02 (2MB)

@Ath: You mean, flash a 2MB-blank should clean the entire flash and is enough if I change from 1M to 2M256. Then.... The main problem while the tests with 1M-firmware was a 1000µF capacitor on the USB-TTL-programm adapter. When I power-cycle (disconnect-connect) the ESP incl. the adapter after the f...
by Micha_he
15 Oct 2020, 20:23
Forum: ESP Easy: General Discussion
Topic: Current firmware not work on Wroom02 (2MB)
Replies: 5
Views: 1916

Re: Current firmware not work on Wroom02 (2MB)

Maybe I've found the problem... I'll do some tests and report here...
by Micha_he
15 Oct 2020, 17:13
Forum: ESP Easy: General Discussion
Topic: Current firmware not work on Wroom02 (2MB)
Replies: 5
Views: 1916

Re: Current firmware not work on Wroom02 (2MB)

That's the info from the tools page: Flash Chip ID: Vendor: 0xC8 Device: 0x4015 Flash Chip Real Size: 2048 kB Flash IDE Size: 1024 kB Flash IDE Speed: 40 MHz Flash IDE Mode: DOUT Flash Writes: 0 daily / 0 boot Sketch Size: 838 kB (36 kB free) SPIFFS Size: 110 kB (26 kB free) Page size: 256 Block siz...
by Micha_he
15 Oct 2020, 08:01
Forum: ESP Easy: General Discussion
Topic: Current firmware not work on Wroom02 (2MB)
Replies: 5
Views: 1916

Current firmware not work on Wroom02 (2MB)

Hello. I've two Wroom02 with 2MB. With firmware (self-build 2M256) from 10/2019 they do there job. With the current source from yesterday, the pre-build (2M256) from 09/29/2020 and the ESPEasy_ESP82xx_mega-20201009-60-PR_2778 from TD-er, I've the following problem: - Flash 2M256 is ok - Reboot is do...
by Micha_he
13 Oct 2020, 20:36
Forum: ESP Easy: General Discussion
Topic: Compile error with 4M1M with latest source from today
Replies: 3
Views: 2015

Re: Compile error with 4M1M with latest source from today

Ok, when I can ignore it..... The bin-file is created and seems to work.
by Micha_he
13 Oct 2020, 20:15
Forum: ESP Easy: General Discussion
Topic: Compile error with 4M1M with latest source from today
Replies: 3
Views: 2015

Compile error with 4M1M with latest source from today

I've update today to the latest source/patches and start compuile a 'normal_ESP8266_4M1M' firmware. While the build-process the following errror is displayed: Compiling .pio\build\normal_ESP8266_4M1M\lib3c0\Adafruit BusIO\Adafruit_I2CDevice.cpp.o .pio\libdeps\normal_ESP8266_4M1M\Adafruit GFX Library...
by Micha_he
27 Sep 2020, 15:45
Forum: ESP Easy: General Discussion
Topic: MQTT LWT disconnection
Replies: 2
Views: 2416

Re: MQTT LWT disconnection

I'll test your suggestion to send the 'Connection Lost'-message via rule before goto sleep. But only in a few days, after my bike tour. The problem exists only at three devices, that goto deepsleep.
by Micha_he
27 Sep 2020, 08:23
Forum: ESP Easy: General Discussion
Topic: MQTT LWT disconnection
Replies: 2
Views: 2416

MQTT LWT disconnection

In my opinion, the newer firmware-versions disconnect from MQTT-broker before they go to deep-sleep. So the broker give no 'Connection Lost' message. Can I disable this disconnect-message befor sleep for some clients, to get the old behavior?
by Micha_he
25 Sep 2020, 09:36
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

Last test before I switch to the ESP-12F: No MQTT-disconnections while the last 13 hours. Thats not the reason.

Edit1: Changed to ESP-12F: Same problem :cry: tested with the simple rule from post #15)

Edit2: Custom-build with minimal plugin's didn't change anything.
by Micha_he
24 Sep 2020, 19:04
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

No, it doesn't reconnect often to the MQTT broker.
All original rules are in post #1 of this thread. Last test-rule is in post #15.
Build is 'ESP_Easy_mega_20200913_normal_WROOM02_2M256.bin' from Github-release.

Ping... I've not tested, because no disconnections. Maybe a later idea.
by Micha_he
24 Sep 2020, 18:32
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

After re-enable the openHAB-controller again, the ESP rebooted after 3 event-commands and the reason is 'Hardware Watchdog' again.

Edit: Now ~20 event-commands later, nothing has changed, the next reboot. Reason 'Software/System restart' ???

I'll try another ESP...
by Micha_he
24 Sep 2020, 18:16
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

As long as I enabled the MQTT-Controller, the messages are sent faultless.

Edit: Found a difference. Now the reboot-reason isn't hardware-watchdog !?
Bewaesserung_RebootReason2.jpg
Bewaesserung_RebootReason2.jpg (22 KiB) Viewed 5652 times
by Micha_he
24 Sep 2020, 17:31
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

I've reduce the environment for some tests. Factory reset, single PCF8574-device, simple test-rule, no ntp, no MQTT-controller. Bewaesserung_Devices2.jpg Bewaesserung_Device2.jpg on Test1 do Event,Test2 endon on Test2 do Event,Test3 endon on Test3 do Pcfgpio,1,[Ventil1#Status#!Z] endon Result: The r...
by Micha_he
23 Sep 2020, 23:30
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

on AutoPrgWeiter do [...] if [INT#9]>6 TaskValueSet,9,1,0 Event,AutoPrgWeiter [...] As you can see, this can cause an infinite loop (or recursion, which is also bad for the stack) No, the reloop is only executed once. At least it should... In my tests I've disabled it, to rule it out as the problem...
by Micha_he
23 Sep 2020, 23:10
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

@TD-er: How I can be show the memory infos, before or until the reboot?
by Micha_he
23 Sep 2020, 22:54
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

I'll try to reduce the test-environment to the needed dummy-device and the rules to a minimum tomorrow. Maybe that will help...
by Micha_he
23 Sep 2020, 22:17
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

This line work flawlessly so far. (And is also commented out in the test). You can reduce the event-rule to: on VentilSchalten do PcfGpio,1,0 endon The reboot still happens. No, non-pritable character and only windows-crlf. Here are the rules as zip-package with reduced (mininmal) VentilSchalten-eve...
by Micha_he
23 Sep 2020, 20:42
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

Have you tried enabling all lines, except event,PumpeUndNT=%eventvalue2% in the VentilSchalten event handler? When I habe only active the first (Let) Line, the event works. If I enable the third (same with second) line, the ESP reboots while the execution. But I'll do a test and reduce the if-condi...
by Micha_he
23 Sep 2020, 19:56
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Re: Rule-help with irrigation control

But that if-construct works for month, without that I recognize any problems.
And in my tests, the event 'PumpeUndNT' is commented out (Line2 in event 'VentilSchalten').

Thanks, that you take a look in it.
by Micha_he
23 Sep 2020, 16:49
Forum: ESP Easy: General Discussion
Topic: Stack overflow at chained events in irrigation-control-rules
Replies: 31
Views: 5740

Stack overflow at chained events in irrigation-control-rules

I've a problem with my rules of my irrigation control (beta/develop-state). The event-rule 'VentilSchalten' (without the current comments) switch my valves on or off. The event-commands like 'Event,VentilSchalten=1,1' works as I expect. The event-rule 'AutoPrgStartStop' should start the program 1-3 ...
by Micha_he
23 Sep 2020, 10:11
Forum: ESP Easy: General Discussion
Topic: Hostname and MQTT-Sysname differs
Replies: 1
Views: 2606

Hostname and MQTT-Sysname differs

If I enable 'Append Unit Number to hostname' in newer ESPEasy versions, the MQTT-sysname differs from the DNS-hostname.
DNS is 'NAME-NUMBER' and MQTT is 'NAME_NUMBER' !

Is that wanted and will it stay that way in newer versions?
by Micha_he
22 Sep 2020, 17:58
Forum: ESP Easy: General Discussion
Topic: Functions in rules. For example, ABS.
Replies: 6
Views: 2851

Re: Functions in rules. For example, ABS.

or...

[Device#Value]^2^.5

for ABS.
by Micha_he
19 Sep 2020, 22:26
Forum: ESP Easy: General Discussion
Topic: Unstable syslog-operation
Replies: 7
Views: 2861

Re: Unstable syslog-operation

I mean, I'll look that there is no other problems and the instability is only because I enabled the syslog and not e.g. the newly added repeater.
by Micha_he
19 Sep 2020, 21:29
Forum: ESP Easy: General Discussion
Topic: Unstable syslog-operation
Replies: 7
Views: 2861

Re: Unstable syslog-operation

@TD-er: You mean, I need flash a new Firmware or is the problem still exists and 'we all' need a later firmware?
by Micha_he
19 Sep 2020, 15:12
Forum: ESP Easy: General Discussion
Topic: Unstable syslog-operation
Replies: 7
Views: 2861

Re: Unstable syslog-operation

I'll watch the ESP for a few more days and then test a newer firmware...
by Micha_he
19 Sep 2020, 11:48
Forum: ESP Easy: General Discussion
Topic: Unstable syslog-operation
Replies: 7
Views: 2861

Unstable syslog-operation

I've a ESP with the Firmware ESP_Easy_mega_20200801_normal_WROOM02_2M256. If I enable the logging to a syslog-server, the operation of the ESP is very unstable. Reboot's while rule operations and additional reboot's while idle-time. Now I've disabled the logging to the syslog-server again and it's w...
by Micha_he
07 Sep 2020, 07:50
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 440
Views: 262055

Re: Serial MCU controlled relay/switch

No, but you read my post here ?
by Micha_he
03 Sep 2020, 12:47
Forum: ESP Easy: Software
Topic: Execute rule once
Replies: 4
Views: 2997

Re: Execute rule once

You're right, thats better :)
I was just taking bonsai's example and integrate quickly the if-condition of VAR#1...