Hi,
I have a slack notification integration that I have been using for a while and it has been working fine. However from some months ago (I don’t recall exactly when because for the longest time I thought it was my NVR not working and not HASS), it seems like if I call the slack notifier service in an automation, it doesn’t work if I specify username/icon at the same time as the file directive.
So this works:
service: notify.slack_notifier
data:
message: test notification
title: Some Title
target: my_notification
data:
username: Home Assistant
icon: house
This also works:
service: notify.slack_notifier
data:
message: test notification
title: Some Title
target: my_notification
data:
file:
path: /config/test.jpg
But this doesn’t:
service: notify.slack_notifier
data:
message: test notification
title: Some Title
target: my_notification
data:
username: Home Assistant
icon: house
file:
path: /config/test.jpg
The above would result in an error in the log like this:
Invalid message data: extra keys not allowed @ data[0]['username']
Any ideas what’s the problem when I specify both username/icon and file?
Thanks!