Hi there,
maybe one of you guys can help me
so shortly my setup, im running HA as a VM and have a physical iMAC next to it.
i have installed the Terminal Add-on.
created ssh keys and exchanged them with my mac. so far so good
on my Mac i have a script called SendMessage.sh which well⌠sends the message
#!/bin/sh
recipient="${1}"
message="${*:2}"
cat<<EOF | osascript - â${recipient}â â${message}â
on run {targetBuddyPhone, targetMessage}
tell application âMessagesâ
set targetService to 1st service whose service type = iMessage
set targetBuddy to buddy targetBuddyPhone of targetService
send targetMessage to targetBuddy
end tell
end run
EOF
when i run in terminal:
ssh -o âStrictHostKeyChecking=noâ som[email protected] â/Users/your_username/Documents/SendMessage.sh [email protected] âTest from Home Assistantââ
i get a notification on my phone, so basically works as expected.