Notify in groups.yaml

Hi there,
I am pretty new in HA and need help with a notification group defined in the group.yaml file.

I found a topic where someone put this in his configuration.yaml:
ˋˋˋ
notify:

  • platform: group
    name: all
    services:
    • service: mobile_app_my_ipad
    • service: mobile_app_my_iphone
      ˋˋˋ

I want to adapt this code to my group.yaml file and put in this:
ˋˋˋ
notify:
name: all
services:
- service: mobile_app_my_ipad
- service: mobile_app_my_iphone
ˋˋˋ

When I check the whole configuration, I got this message:
Invalid config for [group]: [services] is an invalid option for [group]. Check: group->group->notify->services. (See /config/configuration.yaml, line 12).

What am I doing wrong?

Thanks for helping.

Have you tried?

No, I didn‘ put the notify code in the configuration.yaml for test. I assume, it had to work in the goups.yaml, too.

The domain is notify, not group. groups.yaml (unless you’re not using packages) works with domain group.

Ahh, I guess, I know what you mean.
I defined in the configuration.yaml only a goup: „tag“ that binds the group.yaml.
In case of a notify, I can‘t define it in the group.yaml, because it is not a group under the domain „group“.
Okay, that helps. Thanks

1 Like

Refer to the example in the documentation: Notify Groups

Your “adapted” version placed the Notify Group’s configuration in the wrong place and omitted the following line:

  - platform: group