Restart HA when Mac restarts

I now have an HA instance running on a Mac Mini.

I’m not very ‘au fait’ with terminal/bin/bash etc so really need some help.

To start HA I have to use…

hass --open-ui

…in terminal.

How can I automate this?

I’ve tried using Automator to create app to run at login like this:

Screen2019-03-22_09-23-46_am

…but get an error “hass - command not found”.

What do I need to do differently?

This works for me.

Thank you so much. I’ll give it a try.