only first email notification is sent
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 115
- Joined: 21 Dec 2017, 11:09
only first email notification is sent
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
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
-
- Normal user
- Posts: 115
- Joined: 21 Dec 2017, 11:09
Re: only first email notification is sent
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
but I don't understand which version/release I can use instead of : 2_4_0_RC1
-
- Core team member
- Posts: 9903
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: only first email notification is sent
I think you are mixing up a few version numbersGilles 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

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.
-
- Normal user
- Posts: 115
- Joined: 21 Dec 2017, 11:09
Re: only first email notification is sent
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
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
-
- Normal user
- Posts: 88
- Joined: 01 May 2017, 20:35
-
- Normal user
- Posts: 115
- Joined: 21 Dec 2017, 11:09
Re: only first email notification is sent
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
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
-
- Normal user
- Posts: 115
- Joined: 21 Dec 2017, 11:09
Re: only first email notification is sent
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
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
-
- Normal user
- Posts: 115
- Joined: 21 Dec 2017, 11:09
Re: only first email notification is sent (solved)
Since the upgrade, the emails are now sent accordingly to the rules.
thanks
Gilles
thanks
Gilles
-
- New user
- Posts: 8
- Joined: 03 Feb 2018, 12:13
Re: only first email notification is sent
Hi Gilles,
I have done a similar work with the rules editor, but the emailing still fails.
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
I have done a similar work with the rules editor, but the emailing still fails.
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
You do not have the required permissions to view the files attached to this post.
-
- Core team member
- Posts: 9903
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: only first email notification is sent
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.
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.
-
- New user
- Posts: 8
- Joined: 03 Feb 2018, 12:13
Re: only first email notification is sent
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
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
-
- Normal user
- Posts: 115
- Joined: 21 Dec 2017, 11:09
Re: only first email notification is sent
@ Kayombo
I have attached 2 JPG:
- Rule
- Notification 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
I have attached 2 JPG:
- Rule
- Notification 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
You do not have the required permissions to view the files attached to this post.
-
- Core team member
- Posts: 9903
- Joined: 01 Sep 2017, 22:13
- Location: the Netherlands
Re: only first email notification is sent
SMTP2go only 'sees' your public IP.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
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.
Who is online
Users browsing this forum: Anthropic Claude Bot [bot], opensiteexplorer.org/dotbot [bot] and 17 guests