Igor_Comba Posted October 24 Share Posted October 24 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.... Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
igrimpe Posted October 24 Share Posted October 24 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 Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
ruediger60 Posted October 24 Share Posted October 24 (edited) @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. Edited October 24 by ruediger60 Ergänzung Szene Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.