ESPeasy Mega running on Sonoff Basic - Bad Behaviour

Moderators: grovkillen, Stuntteam, TD-er

Message
Author
User avatar
Methuselah
Normal user
Posts: 45
Joined: 04 Feb 2018, 01:39
Location: Boston, MA

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#51 Post by Methuselah » 25 Mar 2018, 12:49

grovkillen wrote: 24 Mar 2018, 11:09 We're trying our best to make sure that the FW is top notch but major rewrite of code is done and with that bugs will be showing up.
I for one appreciate the effort. The ESPEasy firmware has made several of my automation tasks much easier, both in my home and in my ham shack. I wish I could contribute more, but my applications are extremely limited so I do not think I could contribute much.

Oxyandy wrote: 24 Mar 2018, 21:48 Quite the opposite, this is not a dead project.. No other firmware comes close to meeting my needs !
I did not say the project is dead. However, it seems you need commercial, instrumentation-level control for your application. That's not something you're going to get with ESPEasy.... yet.

For a bunch of volunteers, the devs on this project have done an amazing job.
N00b to the world of ESPEasy, but I've been programming since the days of punch cards and paper tape :)

moebius
Normal user
Posts: 35
Joined: 22 May 2017, 19:36

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#52 Post by moebius » 25 Mar 2018, 13:14

@Oxyandy: I also think you put pretty much pressure on the voluntary developers here. From your shouting and posts, one would think your problems are the only ones here.

You should really consider the suggestion of @Methusalem and not use espeasy for your precious plants, until you extensively tested it by yourself and make sure it does what you need.
Also, there are older (proven) versions of espeasy - why you have to use a bleeding edge version in a production environment?

With a commercial and paid product you also can claim its proper function.

Oxyandy
Normal user
Posts: 95
Joined: 09 Mar 2018, 08:45

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#53 Post by Oxyandy » 25 Mar 2018, 23:20

moebius wrote: 25 Mar 2018, 13:14 Also, there are older (proven) versions of espeasy - why you have to use a bleeding edge version in a production environment?
So does this mean you are posting to suggest to me a particular firmware that I should try ?
Something which I could provide Developers feedback on, so changes can be back-tracked ?
Such as 'was working in release XXX', but then stopped in every version there-after ?
Sure, I can try - Happy to hear your suggestion, thanks

moebius
Normal user
Posts: 35
Joined: 22 May 2017, 19:36

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#54 Post by moebius » 26 Mar 2018, 16:34

This version works for me with a reed switch on gpio-13: v2.0.0-dev12

I would suspect a hardware problem - to exclude that, the tests should first happen without switching a heavy inductive load (like a big water pump). Maybe even not with a sonoff, but rather a nodemcu or wemos board with a good power supply. Only after you are able to detect the pulses from the switch reliable, you should add more components (hard and software) step by step (relay, rules, etc) and check for failure - with the pump at last.

You tried also the tasmota firmware, but i didnt understand the result...was it working?

Oxyandy
Normal user
Posts: 95
Joined: 09 Mar 2018, 08:45

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#55 Post by Oxyandy » 26 Mar 2018, 21:47

Tasmota firmware works fine 99.9%, but the timer cycles are not internal & are dependant on a back-end such as Domoticz to fire the cycles & then Domoticz rules to then stop the pump.. And of course a constant WiFi signal...
The 'Tasmota way' simply has more points of failure than something with a complete 'internal process' which only relies on WiFi for data logging & error reporting.
If a point of failure occurs and I am say 'camping' I can use another reservoir / pump / ESP module to replace the primary via the dashboard,
or even automate it in such a way that it becomes the primary system.

Timer cycles & rules Internal to ESPeasy are therefore just what I need.
When I first found ESPeasy (see my join date here) as an alternative to Tasmota, I read there were 2 branches Release & development,
thinking my task was simple & wanting reliability I downloaded a release V2 firmware..
I never knew 'release was Beta' & 'old was Alpha', that defies logic.
I am now using an ancient release (R_xxx series) & compared to the current releases I have been using -- is like a turbo charged ESP on steroids,
everything 'just works' as it should.. wow what a contrast.
I could list the differences.. a long list after learning the quirks of what I have been using.
I (when I get time or find a fault) will start stepping up release versions by reading change logs & merging in parts of the source & compiling homebrew as I go..
My pumps use 30W @240V, no drama there, even my sump pump @5 amps has no issue..
Because you have been a member here much longer than n00b me, I think you could have been a bit nicer to me, helped me maybe ?
By simply telling me to try an older release such as v2.0.0-dev12 sooner ?
Anyhow help is still help & I think you are a legend for steering me in the right direction, old is good, just like me

Oxyandy
Normal user
Posts: 95
Joined: 09 Mar 2018, 08:45

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#56 Post by Oxyandy » 27 Mar 2018, 04:46

moebius wrote: 26 Mar 2018, 16:34 GIT version: v2.0.0-dev12
Oh, I like it, it looks & drives just the recent versions I started with..
Time to put it on test, log data & test how it behaves, again thanks.

Oxyandy
Normal user
Posts: 95
Joined: 09 Mar 2018, 08:45

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#57 Post by Oxyandy » 30 Mar 2018, 00:54

I have been building up a 'tool box' of tools,
first - 'working OTA Sonoff firmware updating', tick done.
second - a full set of all firmwares since inspection and each's source-code, tick done.
third - modify all those firmwares so they are also fully compatible with OTA Sonoff firmware updating, tick done.
fourth - Using the oldest firmware I can, OTA install and then test & log data carefully, compare many variables & carefully examine function /performance etc.
Slowly getting done, is a time consuming task, observations need to be done carefully over time, then reset, start over again to confirm those observations..
A few key issues with the most recent releases do NOT appear in some of these older releases..
I then need to look carefully and determine exactly when and what source changes were made which had negative impact, I can say I have done some narrowing down, such as Dev 4 seems (only seems) cause I must verify everything over & over.. but seems like it works, many things I am comparing

Code: Select all

2018-03-30 09:20:03	Timer_OFF_ 9:20
2018-03-30 09:20:03	Timer_OFF_ 9:20
2018-03-30 09:17:55	Float_Switch_0 9:17
2018-03-30 09:17:55	Float_Switch_0 9:17
2018-03-30 09:17:53	Float_Switch_1 9:17
2018-03-30 09:17:53	Float_Switch_1 9:17
2018-03-30 09:15:03	Timer_ON_ 9:15
2018-03-30 09:15:03	Timer_ON_ 9:15
This is very consistent 'expected' behaviour
On Clock#timer, turns on pump, level rises until float goes from closed circuit to open circuit, rules fires before timer ends turning off pump, float returns to stop (NC) & then timer ends.
Uptime is excellent, no data missing in logs & logs not showing 8 of each event, only 2..
About 2, I am not sure if this is intentional or not, there maybe reasons for 2 duplicate log entries for everything ??
IE

Code: Select all

2018-03-30 09:20:03	Timer_OFF_ 9:20
2018-03-30 09:20:03	Timer_OFF_ 9:20
See appears twice, I would rather see only once, but again not sure if 2 is intentional, and if so the reasons for 2 ??
If you have followed my previous posts, on newer firmware many have 8 duplicate log entries
Yet to find the exact point 2 became 8, but I am on a mission and I will.
Then I will attempt to merge newer source changes over the older more predictable 'working as expected version'..

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#58 Post by TD-er » 30 Mar 2018, 18:44

If you find some version after which the switch doesn't work anymore, please include that in the appropriate (new?) issue on Github.
FYI. I started working on ESPeasy around -dev12.

Oxyandy
Normal user
Posts: 95
Joined: 09 Mar 2018, 08:45

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#59 Post by Oxyandy » 30 Mar 2018, 18:53

Yes, no problem TD-er, I have a plan and everything is coming together very nicely..
Which reminds me I have several things to do if I want faster progress.
I had better stop everything I am doing now and focus on those menial tasks..
Thank for the distraction @3.51AM
I want this done...

Oxyandy
Normal user
Posts: 95
Joined: 09 Mar 2018, 08:45

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#60 Post by Oxyandy » 18 Apr 2018, 17:31

And so I backed tracked the first bug...
The GPIO14 showing wrongly all started in Dev_11, Dev_10 & older firmwares older work just fine..
Next bug to backtrack, is the excessive reporting
Serial output from removing a jumper cable between GPIO14 & GND - wait - Then replacing it

Code: Select all

SW   : Switch state 0 Output value 0
EVENT: FULL_Tray_2#Switch=0.00
EVENT: FULL_Tray_2#Switch=0.00
EVENT: FULL_Tray_2#Switch=0.00
EVENT: FULL_Tray_2#Switch=0.00
EVENT: FULL_Tray_2#Switch=0.00
SW   : Switch state 1 Output value 1
EVENT: FULL_Tray_2#Switch=1.00
EVENT: FULL_Tray_2#Switch=1.00
EVENT: FULL_Tray_2#Switch=1.00
EVENT: FULL_Tray_2#Switch=1.00
EVENT: FULL_Tray_2#Switch=1.00

Oxyandy
Normal user
Posts: 95
Joined: 09 Mar 2018, 08:45

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#61 Post by Oxyandy » 18 Apr 2018, 17:44

Oh nice, first firmware I try is:
ESP_Easy_mega-20180112_normal_ESP8266_1024.bin
Serial output from removing a jumper cable between GPIO14 & GND - wait - Then replacing it

Code: Select all

SW   : Switch state 0 Output value 0
EVENT: FULL_Tray_2#Switch=0.00
SW   : Switch state 1 Output value 1
EVENT: FULL_Tray_2#Switch=1.00
That's what I am looking for, now when was it introduced ?
Fortunately is a bug that is always there, so takes seconds to check :)

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#62 Post by grovkillen » 18 Apr 2018, 18:15

Much appreciation for your thoroughness!
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Oxyandy
Normal user
Posts: 95
Joined: 09 Mar 2018, 08:45

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#63 Post by Oxyandy » 18 Apr 2018, 18:36

No problems Grovkillen !
These bugs are resource hogs I am sure, their impact can cause roll on effects,
such as Wifi disconnects, reporting over loads & even reboots..
While active in current releases I am sure it makes debugging 'other issues' harder too..

I have several more bugs I have noticed that need the same treatment, one at a time I will get through them.
Last edited by Oxyandy on 19 Apr 2018, 01:20, edited 1 time in total.

Oxyandy
Normal user
Posts: 95
Joined: 09 Mar 2018, 08:45

Excessive Reporting Bug

#64 Post by Oxyandy » 19 Apr 2018, 00:50

A fresh firmware flash, NTP, Wifi connection, DHCP, Domoticz MQTT controller
a switch with send boot state, not inverted, internal pull up ticked
Nothing else needed to replicate.

The point this 'excessive reporting bug' was introduced
Jumper cable between GPIO14 & GND, no need to touch the jumper
Simply tick "Send Boot state" and cold boot, the serial output shows the bug in seconds.
ESP_Easy_mega-20180212_normal_ESP8266_1024_DOUT.bin
OK

Code: Select all

Subscribed to: domoticz/out
EVENT: System#Boot
SW   : Switch state 0 Output value 0
EVENT: FULL_Tray_2#Switch=0.00 <- ONLY ONCE
WD   : Uptime 0 ConnectFailures 0 FreeMem 20744
EVENT: Clock#Time=Thu,05:32
ESP_Easy_mega-20180213_normal_ESP8266_1024_DOUT.bin
BAD starts too much reporting -

Code: Select all

Subscribed to: domoticz/out
EVENT: System#Boot
SW   : Switch state 0 Output value 0
EVENT: FULL_Tray_2#Switch=0.00 <- Correct: as above
WD   : Uptime 0 ConnectFailures 0 FreeMem 20448
EVENT: Clock#Time=Thu,05:29
EVENT: FULL_Tray_2#Switch=0.00 <-EXTRA
EVENT: FULL_Tray_2#Switch=0.00 <-EXTRA
EVENT: FULL_Tray_2#Switch=0.00 <-EXTRA
EVENT: FULL_Tray_2#Switch=0.00 <-EXTRA
This 'excessive reporting' is still a bug in:
ESP_Easy_mega-20180403_normal_ESP8266_1024.bin
However, I have not been able to test any firmwares released after this date, because the web server has not been loading.
The CRC : Settings CRC ...FAIL, started in the next firmware after mega-20180403.

Albertus
New user
Posts: 8
Joined: 22 Apr 2018, 09:52

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#65 Post by Albertus » 23 Apr 2018, 18:32

Good Day

Could someone send me a ESPEasy settings file for sonoff basic + mqtt (albertusgeyser@gmail.com).

Thank you

Albertus Geyser

User avatar
Methuselah
Normal user
Posts: 45
Joined: 04 Feb 2018, 01:39
Location: Boston, MA

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#66 Post by Methuselah » 24 Apr 2018, 19:30

Albertus wrote: 23 Apr 2018, 18:32 Could someone send me a ESPEasy settings file for sonoff basic + mqtt (albertusgeyser@gmail.com).
The forum search feature is your friend.
N00b to the world of ESPEasy, but I've been programming since the days of punch cards and paper tape :)

Oxyandy
Normal user
Posts: 95
Joined: 09 Mar 2018, 08:45

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#67 Post by Oxyandy » 26 Apr 2018, 05:31

Albertus, this will be useful if you still need to get up and working.
There is no 'one config' suits all, we all need different things.
https://www.letscontrolit.com/wiki/index.php/ESPEasy
Any questions, please open a fresh topic
thanks

Albertus
New user
Posts: 8
Joined: 22 Apr 2018, 09:52

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#68 Post by Albertus » 28 Apr 2018, 07:24

Good Day

Thank You Did get my solution:

Openhab to control relay with EasyESP on Sonoff Basic:

Switch Relay1 "Light" <light> {mqtt=">[mosquitto:/UnitName/GPIO/12:command:ON:1],>[mosquitto:/UnitName/GPIO/12:command:OFF:0],<[mosquitto:/UnitName/Device/state:state:default]"}

Thank You

Albertus Geyser

Oxyandy
Normal user
Posts: 95
Joined: 09 Mar 2018, 08:45

Re: ESPeasy Mega running on Sonoff Basic - Bad Behaviour

#69 Post by Oxyandy » 28 Apr 2018, 07:51

Hi Albertus,
As I said "Any questions, please open a fresh topic"
I have no experience with "Openhab"
I use "Domoticz" for simple data logging & some complex rules for alerts for alarm / fault situations
I can help with general questions about Sonoff Basic units, but again "New Topic"
thanks
Had you opened a fresh "New Topic" your question would get greater exposure..

Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests