Unable to make a email notification

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
badtime
New user
Posts: 2
Joined: 25 Feb 2021, 11:15

Unable to make a email notification

#1 Post by badtime » 25 Feb 2021, 11:27

Hi to all,

this is my first experience with ESPEASY, and i've tried to do a simple gas detector with MQ-7 sensor board, and i've user the sensor's digital output to determine the activation.
I've configured like a switch in ESPEASY, and give me the 0 in idle and 1 when recognize gas.
I've also configured email notification and pass the test, but when i create a rule it seems not work.

Code: Select all

on gas#stato=1 do notify 1 endon
I use this simple rules:
gas is the device name and stato is the value of the device.

I use ESP_Easy_mega_20210223_normal_ESP8266_4M1M mega-20210223_9054eb3 firmware

What's wrong?

User avatar
Ath
Normal user
Posts: 3419
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Unable to make a email notification

#2 Post by Ath » 25 Feb 2021, 11:54

I hope that's actually 3 lines in your rules file?

Code: Select all

on gas#stato=1 do
  notify 1
endon
/Ton (PayPal.me)

badtime
New user
Posts: 2
Joined: 25 Feb 2021, 11:15

Re: Unable to make a email notification

#3 Post by badtime » 25 Feb 2021, 15:47

Thank you for the answer.

No, i wrote in one line according to this documentation https://espeasy.readthedocs.io/en/lates ... Rules.html

However, writing 3 lines works!!
Thank you.

User avatar
Ath
Normal user
Posts: 3419
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Unable to make a email notification

#4 Post by Ath » 25 Feb 2021, 16:18

badtime wrote: 25 Feb 2021, 15:47 No, i wrote in one line according to this documentation https://espeasy.readthedocs.io/en/lates ... Rules.html
Please point out where on that page it states that it should be 1 line, as that is not correct.
Edit: Ah, found it. That needs to be fixed.

badtime wrote: 25 Feb 2021, 15:47 However, writing 3 lines works!!
Thank you.
You're welcome :)
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests