Jump to content

Help needed - How to send a device status change notification as mail?


Recommended Posts

I have a Shelly 1 mini Gen3 device, which I use to open a door's lock via http request or also with my phone shelly app.

The door has also a sensor, which activates a relay used as a input switch on the same device, so it should be detected as a "button push" when the door opens. I would like to report any changes to this input switch sending a notification via mail - I suppose this should be done with scripting, somehow.

I'm rather new to this kind of scripting language, and need this implementation rather quickly, so any help would be appreciated. I'm thinking on an event handler script that reads status changes in the button (switch input) of the mini 1 gen3 device, and somehow sends the notification. I'm not sure how to generate a mail with this - maybe using an external service? I'm not sure if this script language supports mailing (smtp), or maybe it could be relayed to another smtp service....

Link to comment
Share on other sites

Sending mail from the device itself wouldn't be trivial imho. A very easy workaround: Get a domain/hosting with php support an dput super simple php "send email to" script on it (probably simple google search will give you the code). Then you can simply use a webrequest with a "data" part attached, like: http://mydomain.tld/send.php?DoorOpen etc

Link to comment
Share on other sites

@Igor_Comba Wenn Sie die Shelly Control App und den Shelly Mini1 Gen3 in der Cloud verwenden, dann ist eine Benachrichtigung via Email, Smartphone, Alexa mittels Szene einfach möglich.

Wenn: Gerätebasiert > Raum > Mini1Gen3 wählen, Geräteeigenschaft Eingang  und ein oder aus wählen, Auslöser wählen, Speichern.

Dann: Aktion wählen, Benachrichtigungstyp und Eigenschaft wählen, evtl. Verzögerung für Aktion einstellen, Speichern. 

Aktive Zeit: 00:00-23:59

Usw.

 

Screenshot_20241024_134658_Shelly Smart Control.jpg

Edited by ruediger60
Ergänzung Szene
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...