Notify with slack

Hello, i’m a beginner in home assistant. Actually I try to generate some notification to slack and i follow the topic to configure this integration. When I add a new script in yaml (i use the example script and i replace some variable with my account) and i excecute the script i’ve always the error message who say :

[homeassistant.components.script.notify_slack_notification_template] Notify: Slack Notification Template: Notify: Slack Notification Template: Error executing script. Service not found for call_service at pos 1: Action notify.homeassistantdricou not found
2024-10-16 22:12:06.796 ERROR (MainThread) [homeassistant.components.script.notify_slack_notification_template] Notify: Slack Notification Template: Error executing script. Service not found for sequence at pos 1: Action notify.homeassistantdricou not found

Do you have any idea ? thanks for your help

This is my script

action: notify.homeassistantdricou
data:
  message: Fallback Text
  target: "#homeassistant"
  title: Reminder
  data:
    blocks:
      - type: section
        text:
          type: mrkdwn
          text: >-
            This is a mrkdwn section block *this is bold*, and ~this is crossed
            out~, and <https://google.com|this is a link>
1 Like

Hello Cédric ,

Thanks for coming here and asking a question.
Would you be so kind as to adjusting the format of your code so that we can read it properly & check the YAML spacing, etc. It is very hard for us to tell what is what when the text formatter jumbles everything like that.
Use the </> button or this:
Here is an example of how to fix it from the site FAQ Page.
How to help us help you - or How to ask a good question.

1 Like

My problem was solved after reinstall the slack integration