First Automation Shell_Command write to file

Hey All

New to home assistent, everything is op and running and trying to make first automation.

Got the device tracker up running to pull info from my router, Dashboard is seeing my network items. The file test.txt is in the home folder. Restart is done.

configuration.yaml:

automation: !include automations.yaml
shell_command:
android: echo “Hello Android” >> /home/test.txt

automations.yaml:

trigger:
platform: state
entity_id: device_tracker.android
from: ‘not_home’
to: ‘home’
action:
service: shell_command.android

Best Regard

Just John Joe