Trouble with notify group

So I’m trying to setup notification groups and of course followed the what’s written here:


But I can’t get it working.

I also stumbled upon this config:
https://github.com/Instagraeme/Home-Assistant-Configuration/blob/master/includes/notify.yaml
But if I try to mimic that it’s not working for me either.

This is what I put in the notify config:

  - name: TwitterNotify
    platform: twitter
    consumer_key: **
    consumer_secret:*
    access_token: *
    access_token_secret: *
    username: "@*"

  - name: TwitterNotifySas
    platform: twitter
    consumer_key: *
    consumer_secret: *
    access_token: *
    access_token_secret: *
    username: "@*"

  - platform: group
    name: LenS
    services:
      - service: TwitterNotifySas
      - service: TwitterNotify

But when I restart HASS I get this error in the log:

2017-06-11 12:16:10 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: service_call_id=1978208880-1, service_data=notification_id=invalid_config, title=Invalid config, message=The following components and platforms could not be set up:
* [notify.group](https://home-assistant.io/components/notify.group/)
Please check your config, service=create, domain=persistent_notification>

So then I changed the config to this:

  - platform: group
    name: LenS
    services:
      - service: twitter
        data:
          target: "TwitterNotify"
      - service: twitter
        data:
          target: "TwitterNotifySas"

then HASS starts OK, but when this automation triggers:

  action:
    - service_template: >
        {% if (is_state('group.Tracker_Lukas', 'home')) and (is_state('group.Tracker_S', 'home'))  %}
          notify.LukasenSascha
        {% elif is_state('group.Tracker_Lukas', 'home') %}
          notify.TwitterNotify
        {% elif is_state('group.Tracker_Lukas', 'not home') %}
          notify.TwitterNotify
        {% elif is_state('group.Tracker_S', 'home') %}
          notify.TwitterNotifySas
        {% endif %}
      data:
        message: 'Wasmachine is klaar.'

I get an error. I don’t have the log anymore because I already restarted HASS but it was something like notify/twitter can’t be found.

Can anyone tell me how to get notify.group working correctly?

Heres my notify working group

notify:
  - name: push_firestick
    platform: nfandroidtv
    host: 192.168.1.19
  - name: push_over
    platform: pushover
    api_key: blabla
    user_key: blabla
  - platform: kodi
    name: bedroom_kodi_notify
    port: 9091
    host: 192.168.1.19
  - platform: kodi
    name: livingroom_kodi_notify
    port: 9090
    host: 192.168.1.3
  - name: all
    platform: group
    services:
      - service: push_firestick
      - service: bedroom_kodi_notify
      - service: livingroom_kodi_notify

and to send notify to group

  - alias: Sunset Lighting
    trigger:
      platform: sun
      event: sunset
      offset: "-00:20:00"
    action:
     - service: switch.turn_on
       entity_id: 
        - switch.bedroom_led_power_onoff
        - switch.yellow_led
        - switch.livingroom_down_lights
        - switch.livingroom_led_power
        - switch.kitchen_led_power
     - service: scene.turn_on
       entity_id: scene.bedroom_fadeon
# notify named all
     - service: notify.all
       data:
         title: "Sunset"
         message: "Activated"

I hope this helps

1 Like

With this I knew I was in the right direction. After looking through the whole log again I noticed something about a slug being wrong. I changed the capitals into lower case and voila it works!
So although you have individual notifcation services setup with capitals. like “Livingroom_Kodi_Notify”, the notification group MUST be all in lower case.

I’ll ask an update of the component help page to mention this.