Create Switches That Trigger Notifications

2 min read

The automation the HomeKit provides can solves many problems. But there is one huge hole in the system that is complicated to solve: notifications. If you want to create an automation that triggers a notification on your and your housemates devices there is no built in way to do that.

Searching the internet doesn't provide too many good solutions either:

Homebridge Messenger

There happens to be a Homebridge plugin that solves this to some extent. Homebridge Messenger enables you to use various delivery methods for notification (pushcut, email, IFTTT). It will create a switch in the home app that when enabled will send the message to whatever service you configure.

For my current use case I decided to go with IFTTT.

Setting up IFTTT

In IFTTT I created a "webhook" trigger that describes the thing I'm creating a notification for

When that is triggered it will send a message to my house's discord server that notifies the members of the event.

Setting up the Plugin

In the plugin setting I created a switch. These message can take variables so that you can re-use the IFTTT for multiple switches

Once you restart Homebridge you should create a room called "Messages" where your store all of these message switches. This way you wont accidentally press them while navigating your other rooms.

And now you have switches that will send notification when activated 🎉