Command Line notify in automation

Good point :wink:

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
1 Like