Not really a tutorial, but this might get you started…
I’ve recently installed HA on my Pi, but haven’t really tried to do anything with it yet.
Pete.