I want to write a script that will take a notification and send out what type of notification it is rather than writing an event for each notification received.
Example:
I have a smoke detector. It has multiple notifications that it might send out. ie. smoke detected, co detected, alarm silenced etc...
Instead of creating multiple events to capture those notifications. I would like one script to captue any notification from the smoke detector and then send out an email with the notification type. Just a Switch/Case statement.
Are there already scripts out there for this? Any better way of doing it? I would hate to recreate the wheel.
Thanks...
Example:
I have a smoke detector. It has multiple notifications that it might send out. ie. smoke detected, co detected, alarm silenced etc...
Instead of creating multiple events to capture those notifications. I would like one script to captue any notification from the smoke detector and then send out an email with the notification type. Just a Switch/Case statement.
Are there already scripts out there for this? Any better way of doing it? I would hate to recreate the wheel.
Thanks...
Comment