Why does only one of my notification groups work?

Title: Why does only one of my notification groups work?

I have defined the following notification groups in homeassistant/configuration.yaml:

notify:
  - platform: group
    name: "mobile_devices_mydevices"
    services:
      - service: mobile_app_my_ipad
      - service: mobile_app_my_phone

notify:
  - platform: group
    name: "mobile_devices_wifedevices"
    services:
      - service: mobile_app_wife_ipad
      - service: mobile_app_wife_phone

notify:
  - platform: group
    name: "mobile_devices_all"
    services:
      - service: mobile_app_my_ipad
      - service: mobile_app_my_phone
      - service: mobile_app_wife_ipad
      - service: mobile_app_wife_phone

I started testing notification groups only with the group mobile_devices_all. This group worked and continues to work as expected.

Later on, I added the other groups. But they do not work and I do not understand why. (Perhaps I forgot an additional, needed configuration?!)

By “they do not work”, I mean that they do not appear as option in the notification drop-down:

Adding the manually via YAML also does not work.

You cannot have duplicate keys in yaml. Remove the second and third notify: lines and your missing groups will show up.

1 Like

There should have been errors in your log about duplicate yaml keys too.