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....