[Solved] Command line notification not working

I cant get a command line notification working…

From my configuration.yaml

notify:
  - name: gate_alarm
    platform: command_line
    command: "notify-send 'Applications' 'Install completed'"
  - name: say_test
    platform: command_line
    command: espeak "test alert"

When i try to trigger notify.say_test it says the service is not found… Restarting HA doesnt help either…

I’ve also tried the following. However these do not show in the services list either…

shell_command:
  test: touch ~/restart.txt
  gate_alarm: notify-send 'Applications' 'Install completed'

Do you have espeak installed?

I found I was editing the wrong config as the service was run as a different user!