Open gulliverrr opened 4 years ago
I assume this is using myopenhab.org? If so this should be simple enough.
Once can even set up alert levels for these notifications. Instead of a Switch we can use a String Item and use a Selection or Mappings on the sitemap to choose what level to alert to.
But the question is, what should be alerted? What events warrant an alert and what level? I saw a couple of commented out email alerting lines in the code but surely there is a desire for more than just those events.
Personally, I can't think of when I'd want to get alerts from the thermostat so I am not sure the best way to implement the actual alerts to send. The rest I've already implemented in my main openHAB instance and even wrote a design pattern tutorial based on it.
What might be useful though is a monthly email with a report showing how much each device was used over the past month. But the only way for the user to enter their email account information through a UI would be if we upgrade to 2.5 and use the new Mail binding. Then they can use PaperUI to set up the email or we can provide a UI that creates the Thing through the REST APi.
I assume this is using myopenhab.org?
Yes.
I see upgrade to 2.5 climbing near the top of the list here :)
I didn't know of sendBroadcastNotification(message)
apart from sendNotification(emailAddress, message)
so that is way much easier like this.
Use cases that come to my mind:
Of course some are for functionality that is not enabled by default but it would be great to have the process in place and allow the user to include it or not to their custom additions.
Allow user to enable/disable notification (groups) from the phone app or web UI.