Where do I set up email notifications that a device has turned on? I have been reading where people are sending texts to let them know the device is turned on and off and I can do that with email as well by sending it to mms.att.net but I need to be able to set it up that it comes from my email address. How is that done?
Your hubitat hub doesn’t send emails. But if that method of sending a notification is critical for you, there are solutions created by community developers (never tried any of them myself, but they exist).
It sounds like you just want a notification sent to your phone when an action occurs.
If you don't specifically require an email, or a "text" message, you can get the notification using the built-in "notification" feature.
To use this, you will need to install the Hubitat Mobile App on your phone.
The image below shows the simple use of this feature. You could make it fancier, by only sending the notification after confirming the lights actually came on after the command was sent,
There isn't a built-in mail server on our hubs. As noted, there are community solutions along with built-in ones that might meet your needs. I have added links to a couple of them below, but I haven't used any of these so I don't know how they will work for your requirements.
Pushover is a third-party cloud-based service that can provide real-time notifications on your Android or iOS mobile device or computer. It can be used as a notification device on Hubitat as an alternative (or supplement) to the Hubitat mobile app or other methods of receiving notifications .Pushover | Hubitat Documentation)
If you have a Gmail account you can integrate it with HE and send emails that way:
But please note that email to SMS gateways such as one you reference above are extremely unreliable and mobile carriers often block certain email domains from using them.
I say this so you don’t count on critical notifications to be delivered.
@user5298 Which app are you using in this example?
That’s a rule machine rule in that screenshot.
Is that an app? Basic rules I read was the latest app that supersedes others and some of these apps aren’t updated.
Yes. Rule Machine can create more advanced automations than Basic Rules can.
You may have read about older apps that were superceded by basic rules or room lighting, but rule machine is not one of them.
I suggest making a decision about how you want to receive notifications before focusing on which Hubitat app to use.
If you decide to make use of push notifications, then there are several Hubitat apps that can be configured to send push notifications.
I’m good with receiving ios push notifications to the app. Will rule machine do that?
Yes it can.
Rule machine is the most complex and flexible of Hubitat’s built-in apps for creating automations. For that reason, it would be overkill for many notifications.
As I mentioned, several apps could be used to send push notifications. Off the top of my head, I can think of basic rules, visual rule builder, notifications, or Hubitat safety monitor.
I did not see where to enable push notifications for my iphone in basic rules.
Basic rules would allow you to choose a previously configured notification device, but that’s not where you would create/configure the notification device in the first place.
If you download and login to the Hubitat mobile app from the iOS App Store, you should be asked to create a new notification device when logging in.
Once you’ve created that device, basic rules will show that device as an option for sending notifications to.
I see where i can send a notification and I am testing it. Thanks!
As mentioned, my first post was a screen capture from Rule Machine,
Notifications are also available from Simple Rules as seen below.
Of course you will need to create your "phone device" before it will become available in the list of locations to send notifications.
By what means? You just sent the command in the same rule, so you already know what that is and could just put the expected end result (on/off state) in your push notification.
If you want to read the current state (e.g., to ensure success), then you'll need a more advanced automation engine. Basic Rule won't cut it, but Rule Machine could. You can even import this Basic Rule into RM if you want a starting point (a feature of this app).
But one consideration in this second case is that you need to give the device time to respond, as even if it's fast, it's not going to be basically instant. A "Wait for event: elapsed time" is an easy option. You'd also need either a local variable to hold the current value of the switch attribute for this device (fewer actions but more work to set up) or a IF THEN/ELSE/END-IF to check the current switch state and send a different notification in each case (probably easier to start).
...among many other ways you might do this.
There's a built in Notifications App as well.
I've gravitated to all Rule Machine for this.
You'd probably want to look into the built in variables that you can use in the notification message, like %value%, %text%, %date%, etc.
Are the variables in basic rules, rule machine or the notification app?