Triggers my.OpenHAB events from incoming mails from Chamberlain MyQ (which is a horrible device).
- Clone this repo and
cd
in - Create a new heroku app
- Set env variables for your my.openHAB user/pass:
heroku config:set [email protected]
heroku config:set HAB_PASS=blah
- Pick a random URL:
heroko config:set POST_URL=lotsofrandomletters
- Add the Postmark extension.
heroku addons:add postmark:10k
heroku addons:open postmark
- Configure postmark with your heroku URL
- Deploy the app
git push heroku master
In their infinite corporate wisdom, Chamberlain doesn't allow to either use different emails for notifications, or even change your email, so you'll probably need to set up email forwarding to your new postmark email.
Currently my.openHAB doesn't work with updates (PUT requests), so you'll need to create a Switch Item called itm_garage_door_notifier
, that has a rule to update the status of the actual garage door:
rule "Garage door notifications"
when
Item itm_garage_door_notifier received command
then
if(receivedCommand==ON) {
postUpdate(itm_garage_door, OPEN)
} else {
postUpdate(itm_garage_door, CLOSED)
}
end
- Author: JustinAiken