ntfy-sh-with-homeassistant #309
Replies: 4 comments 2 replies
-
|
Or how about using |
Beta Was this translation helpful? Give feedback.
-
|
I modified this a bit to send an image but I'm having some trouble. Looking in the logs it doesn't appear that home assistant is substituting any of the variables I set in the automation into the command it runs. Anyone have any ideas? service call: service: shell_command.ntfy_put configuration.yaml: shell_command: example debug output: |
Beta Was this translation helpful? Give feedback.
-
|
Works very well, thank you ! |
Beta Was this translation helpful? Give feedback.
-
|
thanks for sharing. I added one line for attachments -H "Attach: {{attachment}}" I put a url to a jpg or mp4 in the variable attachment and it works quite well ( i use it with frigate) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
ntfy-sh-with-homeassistant
Just a quick note if you want to use ntfy.sh with Home Assistant.
Setup I added the following section to my /config/configuration.yaml file:
1 2 3 4 5 6 7 8 9 10 11 12 13 shell_command: ntfy: > curl -X POST --url 'https://ntfy.sh/{{ topic }}' --data '{{ message }}' --header 'X-Title: {{ title }}' --header 'X-Tags: {{ tags }}' --header 'X-Priority: {{ priority }}' --header 'X-Delay: {{ delay }}' --header 'X-Actions: {{ actions }}' --header 'X-Click: {{ click }}' --header 'X-Icon: {{ icon }}'{% endraw %} Usage To send send a notification, I use this YAML action in an Automation.
https://diecknet.de/en/2023/02/12/ntfy-sh-with-homeassistant/
Beta Was this translation helpful? Give feedback.
All reactions