I would like to be notified (ideally by email) when a sensor is triggered (water level in my case), but I can’t find this function anywhere, except for sending a message directly in Gladys. However, that’s not really practical: there is no notification on my smartphone and there is an issue with message refreshing — I have to manually refresh to see them appear…
Create an MQTT sensor to which you send a value; this sensor must be monitored by bash/python/Node-RED… which will perform an action depending on the value.
You’ll find quite a few bash code examples in my tutorials:
However, wouldn’t it be simpler to design a common function for all of Gladys that allows sending a notification by selecting one or more channels (email, voice, SMS …)?
@Hizo Indeed, one can delegate everything to tools external to Gladys, but in my opinion you lose all the value of the graphical interface that the assistant provides: the simpler and more integrated it is, the more we use it I would have imagined finding a configuration page for "interfaces to the world", in which to configure an interface that would then be accessible from anywhere in the scenes, for example …
No, Telegram is not installed. I use Gladys’s WEB interface only. I imagine that’s why the notifications simply don’t come through.
But that doesn’t answer my initial question, which would be to be able, in the first instance, to send an email
Ideally, I imagine a « message » block to add to scenes, in which to select the message target (to be configured in a dedicated configuration module) and the message to send. It would then be possible within the same scene to send the same message to several people/media For the moment, in my case, when I want Gladys (aka « La p’tite Dame » as my son calls her) to inform us verbally, I’m forced to duplicate the HTTP blocks (and thus the whole ad-hoc configuration) by changing the message depending on what needs to be said
Gladys already seems like a real gem at this stage, so why not continue making the project even better?
Install it then it’s free and takes 30 seconds! Once you’ve tried it you’ll be convinced 100 times better than email!
Why not, you can create a feature request and if there’s demand it can be prioritized.
Besides, sending emails is complicated. Either you set up your own email server (and that’s not user-friendly at all, and you’re very likely to end up in spam), or you use the SMTP credentials from your email provider (if they provide them), and that’s not very user-friendly. Or you pay for an email-sending API (SendGrid, Amazon SES, etc.).
In short, for me in the short term, the solution is in your hands: install Telegram and within 30 seconds you can do whatever you want