I think this is overdue. Currently if you want to trigger a command line action you have to make a command line switch, then hide the command line switch in your customization and then reference the switch in your automation. It would be much easier if we had a command line class. Something that could be triggered as follows:
- alias: 'A command line automation trigger: state (for example) entity_id: device_tracker.galtwisephone (for example) state: home action: - service: cmd.run_cmd data: "<YOUR COMMAND LINE SCRIPT HERE>"
i probably would have wished for something like this before i discovered appdaemon.
but since appdaemon there is, all automations are a lot easier when you know a bit of python.