Notification question- How does notify.notify work?

I am experimenting with an automation and want to use the Notification panel. I thought this is what notify.notify was supposed to do.

Here’s the yaml code from my test automation. I click on “run” in the overflow menu, but there’s no notification on the notification panel.

What am I doing wrong?

By notification panel do you mean you want to add something here?

If so those are called persistent notifications. You can add one by calling persistent_notification.create. Or notify.persistent_notification if you don’t care what the id of it is (generally you don’t unless you plan to use persistent_notification.dismiss to clear it via an automation).

I have no idea what notify.notify does. Or if it even does anything at all, might just be the stub service made my the base notification platform that all others inherit from. I never noticed it before lol

notify.notify isn’t actually anything. It’s just the base example for the notify engine which you need to use with one of the compatible notification services from this list.

The final config (for the automation action) would actually be something like notify.email or notify.mobile_app

Actually it is, but it is not very useful. See: Who will notify.notify notify? - #8 by pedracca

1 Like

This is the important part from the docs:

Be aware that you might want to change the actual service to whatever service you are actually using since notify.notify is shorthand for the first notify service the system can find and might therefore not be working as intended.

The notify platform is a little different — and indeed a bit confusing. Most services will take a target which is an entity ID. In this case a device will expose a service to the notify platform. Command line calls and script calls (in one way) work like this too. So it would be notify.something as mentioned above.

1 Like

very true, and thanks for pointing out that I was wrong! :slight_smile:

It makes my day when I can prove you wrong Dave :rofl:

1 Like

Thanks. This is what I need. Both work as expected.

I was thrown off by the example code in the docs:

  service: notify.notify
  data:
    message: "Your message goes here"
    title: "Custom subject"

I should have read the prior paragraph, however.

My project will be notifying through the multitude of Alexa devices around my home, but I didn’t want my testing to disturb everyone else in the house. (Look at my timestamp- I usually don’t go to bed before 2AM).

Thanks again…
Also notify.alexa_media_stephen works, too…

Where?

It’s 5pm where I am :grinning_face_with_smiling_eyes: