I'm trying to set up a slack publisher event handler that forwards events onto a slack channel.
To do so I have set up a virtual data source with a virtual data point to randomly alternate between binary values 0 and 1, with an event detector that detects any change in the data.
I've assigned the slack publisher event handler to the event in the hopes of testing the process. The only problem is that the I never seem to receive the messages on slack. I made a basic global script and scripted event detector that sends webhooks to the same slack bot, which always works.
Is anyone able to help? Is there something i'm missing here? I've followed the instructions on this link https://help.infiniteautomation.com/slack-event-handler.
I'm getting the following messages in the log if that helps.
PS. I've double checked that the oauth tokens are correct and that the slack bot has webhook permission.