For this automation I Create Switches That Trigger Notifications.
Create an IFTTT action that post to discord. This message can take variables. You can use the variables to reuse the IFTTT for multiple notification types. This makes it so that i can use a single IFTTT recipe for all of my window open notifications. I could extend this to send unique messages for windows open in all my rooms, if I wanted to I could even use it for each individual window!
In the plugin settings I created a "Window Open Kitchen" switch. It sets
value1 to "Kitchen".
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.
For creating these automations I wasn't able to create them directly in the Home App. This is another place where the more powerful automations enabled by the Controller app is necessary.
First create an automation that triggers when the thermostat starts cooling or heating the house and the kitchen window is open. This turns on the "Window Open Kitchen" switch", triggering a message in the discord.
Then create an automation that triggers when a window is opened while the climate control is running.
The result is home automation with excellent HAUX! Everyone in the house now knows when a window is open and it shouldn't be 🔥