Good point
Checking my own test command line script, the message is passed on STDIN, try:
#!/bin/bash
MESSAGE=$(cat)
echo "Message: $MESSAGE" >> /home/homeassistant/.homeassistant/scripts/testlog.log
Good point
Checking my own test command line script, the message is passed on STDIN, try:
#!/bin/bash
MESSAGE=$(cat)
echo "Message: $MESSAGE" >> /home/homeassistant/.homeassistant/scripts/testlog.log