Hey, im trying to create a Command Line Notify, but im having some problems.
## automation.yaml
- service: notify.test
data:
message: 'Test...'
## notify.yaml
- name: test
platform: command_line
command: "/home/homeassistant/.homeassistant/scripts/test.sh"
## test.sh
#!/bin/sh
echo "Message: $1" >> /home/homeassistant/.homeassistant/scripts/testlog.log
## testlog.log
## It writes a line to the file but the message is empty...
Message:
And home-assistant.log shows this error message:
ERROR (Thread-85) [homeassistant.components.notify.command_line] Command failed: /home/homeassistant/.homeassistant/scripts/test.sh
Anyone who knows what to do?