only first email notification is sent

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

only first email notification is sent

#1 Post by Gilles » 23 Jan 2018, 15:30

I have a sonoff S20 flashed with espeasy ( Core Version: 2_4_0_RC1 arduino ide ).
I want to receive a mil when the sonoff is switched on or off with the commands:

http://192.168.1.25/control?cmd=event,AL
and
http://192.168.1.25/control?cmd=event,ET

I have created 2 simple rules that I trigger using the commands above :
On AL do
gpio,12,1
notify 1,allume
EndOn
On ET do
gpio,12,0
notify 2,eteint
EndOn

and 2 email notifications
notify 1
subject : La prise 2 a été activée %systime%
notify 2
subject : La prise 2 a été désactivée %systime%
it is in french, but just to show you that they are different

I always received the notify 1 mail.
Even if the log shows the right things:

2111137 : EVENT: Clock#Time=Tue,15:24
2132786 : EVENT: AL
2132844 : ACT : gpio,12,1
2132845 : SW : GPIO 12 Set to 1
2132847 : ACT : notify 1,allume
2133249 : EMAIL: Connection Closed Successfully
2133273 : SW : State 1
2133273 : EVENT: GPIO12#Sw12=1.00

----
2170506 : EVENT: ET
2170572 : ACT : gpio,12,0
2170573 : SW : GPIO 12 Set to 0
2170575 : ACT : notify 2,eteint
2171087 : EMAIL: Connection Closed Successfully
2171100 : SW : State 0
2171100 : EVENT: GPIO12#Sw12=0.00
2171307 : EVENT: Clock#Time=Tue,15:25

I was running the stable R120 and I have upgraded to 2_4_0_RC1 using the arduino IDE

Any idea ?
Gilles

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: only first email notification is sent

#2 Post by Gilles » 23 Jan 2018, 20:10

I have just found that the bug is a known issue : https://github.com/letscontrolit/ESPEasy/issues/502
but I don't understand which version/release I can use instead of : 2_4_0_RC1

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

Re: only first email notification is sent

#3 Post by TD-er » 24 Jan 2018, 01:13

Gilles wrote: 23 Jan 2018, 20:10 I have just found that the bug is a known issue : https://github.com/letscontrolit/ESPEasy/issues/502
but I don't understand which version/release I can use instead of : 2_4_0_RC1
I think you are mixing up a few version numbers :)
The 2.4.0 is the version number of the Arduino ESP8266 library.
We are currently only supporting version 2.3.0 of that library.

The versions for ESPeasy are:
v2.0, working towards a stable release.
Mega branch for the newer features.

Both have a nightly build https://github.com/letscontrolit/ESPEasy/releases
Just make sure you have the correct version (ESP8266 or ESP8285) and for the correct flash size (1M, 4M) and the build type (normal, test, dev)
Then you don't have to compile yourself.

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: only first email notification is sent

#4 Post by Gilles » 24 Jan 2018, 10:00

Thanks,

I have alreay tried "FlashESP8266.exe" with the normal 1MB version : ESP_Easy_v2.0-20180120_normal_ESP8266_1024.bin from : https://github.com/letscontrolit/ESPEasy/releases.
The sonoff s20 is flashed ( with a FT232RL FTDI USB To TTL Serial Converter Adapter Module) without issue, but then the sonoff s20 doesn't come up and doesn't show any ssid. I have also checked if, by chance, it has connected to my home ssid using the former settings.

It is why I came back to the arduino ide way that I have used with a more recent version(2.4.0_rc1) because the 2.3.0 had the email notification issue.

The sonoff S20 is quite recent (ordered on dec 2017) and comes from banggood (https://www.banggood.com/SONOFF-S20-10A ... rehouse=CN)

For sure, I would prefer to use the your software as I am thinking of some other projects.
Did I miss something during the flash process?

Gilles

wim16
Normal user
Posts: 88
Joined: 01 May 2017, 20:35

Re: only first email notification is sent

#5 Post by wim16 » 24 Jan 2018, 11:30


Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: only first email notification is sent

#6 Post by Gilles » 24 Jan 2018, 18:05

The sonoff S20 includes a PSA B01 G1 which is based on an ESP 8266.
https://www.itead.cc/psa-01.html
PSA-01: ESP8266 based 1 Channel Smart Switch Module for Home Automation Devices
I don't know if it can help.
Gilles

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: only first email notification is sent

#7 Post by Gilles » 24 Jan 2018, 18:27

I have downloaded the espressif tool as advised in another ticket by alfons and I have successfully uploaded the new version:

Build: 20000 - Mega
GIT version: v2.0-20180120

ticket ref : http://www.letscontrolit.com/forum/view ... 6&start=10

I have not yet validated the email thing.

I will update the ticket tomorrow.
Gilles

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: only first email notification is sent (solved)

#8 Post by Gilles » 25 Jan 2018, 09:10

Since the upgrade, the emails are now sent accordingly to the rules.
thanks
Gilles

KayomboS
New user
Posts: 8
Joined: 03 Feb 2018, 12:13

Re: only first email notification is sent

#9 Post by KayomboS » 10 Feb 2018, 15:09

Hi Gilles,
I have done a similar work with the rules editor, but the emailing still fails.
Bildschirmfoto vom 2018-02-10 15-06-45.png
Bildschirmfoto vom 2018-02-10 15-06-45.png (11 KiB) Viewed 8461 times

Could you or somebody else be so kind as to make a screenshot of working notification settings. I have used three different providers, but I can't get it done. To me it seems you are the only one with a working email notification via ESP Easy.
Thanx in advance.
Kayombo

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

Re: only first email notification is sent

#10 Post by TD-er » 10 Feb 2018, 15:28

What version of ESPeasy do you use?
And what mail provider?
Most email providers only allow using SSL/TLS and that's currently not supported by ESPeasy.

For this reason, I used SMTP2go.
Their free plan allows for 1000 mails per month. (max 25 per hour)

The last versions of ESPeasy also allow to set username/password for SMTP, but SMTP2go also allows to add a sending IP whitelist so you don't have to use authentication.

KayomboS
New user
Posts: 8
Joined: 03 Feb 2018, 12:13

Re: only first email notification is sent

#11 Post by KayomboS » 10 Feb 2018, 16:27

Hi again,
I use the stable version from yesterday, username / password included. My email providers are 1und1, AOL and gmail. But I always get the same error as described above. Doesn't matter if I put username and password. As you mentioned below, this might be caused by SSL/TLS.

If I go for SMTP2go, which IP do I have to enter in the whitelist? The one of my internet provider (e.g. 1und1) or the one of my ESP Easy device?

Kayombo

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: only first email notification is sent

#12 Post by Gilles » 10 Feb 2018, 19:00

@ Kayombo
I have attached 2 JPG:
- Rule
- Notification
notification.JPG
notification.JPG (60.04 KiB) Viewed 8066 times
The attachment notification.JPG is no longer available
Sorry it is a french mail server.
IMPORTANT : The Domain and the smtp Server are those used by my Internet provider (internet box at home), not those from my email addresses(laposte.net)

Gilles

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

Re: only first email notification is sent

#13 Post by TD-er » 10 Feb 2018, 21:45

KayomboS wrote: 10 Feb 2018, 16:27 Hi again,
I use the stable version from yesterday, username / password included. My email providers are 1und1, AOL and gmail. But I always get the same error as described above. Doesn't matter if I put username and password. As you mentioned below, this might be caused by SSL/TLS.

If I go for SMTP2go, which IP do I have to enter in the whitelist? The one of my internet provider (e.g. 1und1) or the one of my ESP Easy device?

Kayombo
SMTP2go only 'sees' your public IP.
You can create a number of mail-accounts in your SMTP2go account with their own rules, login name, passwd, etc.
And I have tested, you can use login name + pass with their service and the latest builds of ESPeasy.
The whitelist for IP address is only to keep using devices which do not support usernames/pass, like older printers and such.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 127 guests