Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can Home Assistant send messages in 2 different topics #18

Open
m0nn3 opened this issue Feb 19, 2025 · 1 comment
Open

How can Home Assistant send messages in 2 different topics #18

m0nn3 opened this issue Feb 19, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@m0nn3
Copy link

m0nn3 commented Feb 19, 2025

Home Assistant Core Version

2025.2.1

Home Assistant Installation Method

HA OS 14.2 Supervisor 2025.02.0

Integration Version

1.0.2

How was the integration installed?

HACS

What happened?

Is there a way that Home Assistant can also send messages in 2 different topics?
I would like to separate this a bit so that my wife doesn't get all the messages I might want :)

My configuration currently looks like this:

# Notifier
notify:
  - platform: ntfy
    name: "NTFY"
    authentication: 'token'
    token: 'tk_MyToken'
    topic: 'HomeAssistant'
    url: 'MyServer'  
    allow_topic_override: True 
## new Thread
  - platform: ntfy
    name: "Rauchmelder"
    authentication: 'token'
    token: 'tk_MyOtherToken'
    topic: 'Rauchmelder'
    url: 'MyServer' 
    allow_topic_override: True  

Unfortunately, I can only select Send a notification with NTFY for a new notification and not between NTFY and Rauchmelder.

It would be very nice if someone could help me how to send in multiple topics.

[Optional] Relevant log output

@hbrennhaeuser hbrennhaeuser self-assigned this Mar 19, 2025
@hbrennhaeuser hbrennhaeuser added the bug Something isn't working label Mar 19, 2025
@hbrennhaeuser
Copy link
Owner

Your configuration should work, I don't see anything wrong - Can you restart your Home Assistant and check if there is anything relevant in the system log that might give us a hint?

As a workaround you can remove the second entry "Rauchmelder" from your configuration.yaml and use topic-overrides in your automation like this:

actions:
  - action: notify.NTFY
    data:
      title: Rauchmelder Alarm
      message: ...
      data:
        priority: high
        topic: Rauchmelder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants