[SOLVED] Notify Services Not Found - Fresh Install

I’ve been using HA for a couple weeks now and am slowly getting the hang of it. I’ve decided to start working with notifications and I’ve run into an issue when a notification is generated, receiving an error that the notify.xyz service is not found.

I’m running CentOS 7 with HA version 0.84.6 in a python virtual environment.

When attempting to send a notification via both e-mail and the simplepush app, I receive the following errors:

2018-12-28 23:31:23 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/home/homeassistant/homeassistant/lib64/python3.6/site-packages/homeassistant/core.py", line 1098, in async_call
    raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service notify.smtp not found')
2018-12-28 23:31:23 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/home/homeassistant/homeassistant/lib64/python3.6/site-packages/homeassistant/core.py", line 1098, in async_call
    raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service notify.simplepush not found')

I’ve setup a brand new server for testing and installed a fresh copy of HA version 0.84.6. The issue remains. I’ve made no configuration changes from the fresh install with the exception of adding the notify component with the configuration detailed below:

notify:
  - name: <redacted>
    platform: group
    services:
      - service: smtp
        data:
          sender: <redacted>
          recipient: <redacted>
          server: <redacted>
      - service: simplepush
        data:
          device_key: <redacted>

I’ve installed HA on both my “production” and new test server using the documentation for the OS Prep and HA install.

Have I hit a bug or is there something missing on my system?

Do you actually have notify/smtp and notify/simplepush setup?

I’ve followed the component guides for notify, SMTP, and simplepush. Beyond those three, I’ve not found any other documentation regarding any additional setup in my searching for a solution.

Can you show your whole notify config please?

I’ve provided the entire notify config in my original post. On the test server I setup with a fresh install of HA, the only change to configuration.yaml was adding the 12 lines of notify code in my original post to the bottom of the file, the rest of it is the default “out of the box” configuration.

Based upon your request, I’m going to guess that I’m missing additional configuration somewhere… :confused:

Yeah, you have a notification group only. You can only group notification services you have setup, you can’t set them up within the group. It should look something like:

notify:
  - platform: pushover
    name: my_pushover 
    [keys/passwords/other options]

  - platform: smtp 
    name: my_smtp
    [keys/passwords/other options]

  - platform: group 
    name: my_group
    services:
      - service: my_pushover
      - service: my_smtp 
1 Like

Ah-ha! Thanks for leading me in the right direction. It seems the documentation for notify group isn’t that clear, it could use a real world example.

I’ve updated my notify config to the following:

notify:
  - platform: smtp
    name: user1_email
    sender: <redacted>
    recipient: <redacted>
    server: <redacted>
    port: 25
    encryption: none

  - platform: smtp
    name: user2_email
    sender: <redacted>
    recipient: <redacted>
    server: <redacted>
    port: 25
    encryption: none

  - platform: simplepush
    name: user1_simplepush
    device_key: <redacted>

  - platform: simplepush
    name: user2_simplepush
    device_key: <redacted>

  - platform: group
    name: notify_user1
    services:
      - service: user1_email
      - service: user1_simplepush

  - platform: group
    name: notify_user2
    services:
      - service: user2_email
      - service: user2_simplepush

After some testing its working great!

Thanks again for the help!

1 Like