-
|
This might actually be a bug in the slack integration, but I wanted to ask here if I was doing something wrong first. You can send a slack notification like this: action: notify.my_slack_service
data:
target:
- my_slack_channel_name_or_id
message: "hello, world!"where Using SuperNotify, I have my configuration containing these lines: recipients:
- person: person.my_user
delivery:
slack:
target: A20H2AN55DX
delivery:
slack:
transport: generic
action: notify.my_slack_serviceWhich I test using this action to force it to attempt a slack delivery: action: notify.supernotifyer
data:
target: person.my_user
message: test message
data:
delivery:
slack:
enabled: true
# target: A20H2AN55DXNote: I previously was testing specifying the target in the action instead to see if it fixed the issue, which it did not. Doing this results in an error from the slack integration: Is there something I am missing here with my call through supernotify, or is this a bug in the slack integration? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Does it work if you call the slack notify from Developer Tools action tab with the same data? Couple of things I changed in config to make it pass the channel all the way down ( some of which the code will be kinder with in future, so less need to tweak config ). With this didn't need the what's happening here is that there's a general The odd thing however is that your error message looks like the right target is getting to the Slack integration and being rejected there. That's why calling straight from Developer Tools good - it isolates the problem as Slack or Supernotify. You could also put |
Beta Was this translation helpful? Give feedback.
-
|
With the config I had above, the notification would be action: notify.supernotifyer
data:
message: hello?
data:
delivery:
mobile_push:
enabled: false
slack:
enabled: trueor you could override at action call action: notify.supernotifyer
data:
message: hello?
data:
target:
slack_channel: A20H2AN55DXand the slack delivery would get picked because it has a matching target. I have the archiving switched on all the time, and that way the archived notification with all the debug info is available, including the exact call made to the service. I use the Studio Code Server add-in to view them, or mount the config as a network drive. You can also get it via a Home Assistant action - There's a beta release that improves the target selection, v1.5.4-beta1 and the docs page for generic transport now has more help for this. |
Beta Was this translation helpful? Give feedback.
target_categoriesshould be the name of the category, not the actual ID.With the config I had above, the notification would be
or you could override at action call
and the slack delivery would get picked because it has a matching target.
I have the archiving switched on all the time, and that way the archived notification with all the debug info is available, including the exact call made to the service. I use the Studio Code Serve…