Triggers From Email Subject, TO or FROM

Is there a way to trigger a rule based on the info coming from an email such as the Subject line or the TO or FROM?
I have a mailbox door sensor that sends a message to an email address. I use this to speak a message and turn on a color bulb so I know the mail has arrived.

Is this doable in HE? thanks

How are you doing it now?

First thing that comes to mind in HE is sending that email to IFTTT, and using that to trigger something in HE.

I am doing it in HS. It has a IF statement that reads "A Received Email Is From or Contains".

Yeah...but there has to be something reading your email to perform that function, right? I believe that's what he's asking about. The only thing that I know that can do this that is compatible with HE is either IFTTT or Stringify. I do this for package notifications. When a package is delivered UPS, USPS or FedEx sends an email. My GMAIL applies a label to the email and Stringify detects that I've received an email with that label and execute a cloud endpoint that I've built in Rule Machine.

The reason I use stringify instead of IFTTT is that with Gmail, IFTTT would sometimes take up to 2-3 hours to pick up on the email. Stringify is almost instantly.

That said, why not simply replace the mailbox sensor with one that is directly compatible with HE? Either a tilt or contact sensor would be a lot more effective a trigger for your announcement.

1 Like

The other option is Tasker but that's only for Android.

If you have node server, node red can parse and do web calls. Just another option, I use it with ST and ahem webcore :rofl:

Thanks everyone. Ryan780, I have tried all those and the distance is just to far and most times the response from the sensor doesn't get to the system. I have a mailbox unit that has a 400ft range and it is outside the mailbox and is intended to do so. I just need a way to read the subject line or the from line.
I use android so I will go look at tasker and stringify.