ESPHome on Hassbian - Permission Errors

Trying to impress my wife with what I hope will be a smart way to turn off the doorbell. I love this tutorial: https://frenck.dev/diy-smart-doorbell-for-just-2-dollar/

I can’t get ESPHome working, though. I’m on Hassbian, HA 0.96.5 (I’ll upgrade at 0.99…). I’ve used sudo -u homeassistant -H -s and source /srv/homeassistant/bin/activate to get into the VENV. Then I ran pip install esphome, and it worked. I note that when I tried to install it out of the VENV, I had an error, permission denied on /usr/local/lib/python3.7/dist-packages/protobuf-3.7.1-nspkg.pth. Not sure why it tried to do that on 3.7 but so be it.

Back in the VENV, I run esphome doorbell.yaml wizard. When the wizard finishes, i get the following traceback and error:

Traceback (most recent call last):
  File "/srv/homeassistant/bin/esphome", line 10, in <module>
    sys.exit(main())
  File "/srv/homeassistant/lib/python3.7/site-packages/esphome/__main__.py", line 483, in main
    return run_esphome(sys.argv)
  File "/srv/homeassistant/lib/python3.7/site-packages/esphome/__main__.py", line 459, in run_esphome
    return PRE_CONFIG_ACTIONS[args.command](args)
  File "/srv/homeassistant/lib/python3.7/site-packages/esphome/__main__.py", line 253, in command_wizard
    return wizard.wizard(args.configuration)
  File "/srv/homeassistant/lib/python3.7/site-packages/esphome/wizard.py", line 268, in wizard
    ssid=ssid, psk=psk, password=password)
  File "/srv/homeassistant/lib/python3.7/site-packages/esphome/wizard.py", line 90, in wizard_write
    with codecs.open(path, 'w', 'utf-8') as f_handle:
  File "/usr/lib/python3.7/codecs.py", line 898, in open
    file = builtins.open(filename, mode, buffering)
PermissionError: [Errno 13] Permission denied: 'doorbell.yaml'

Any idea of what gives? I’m lost as to what the actual problem is right now and would really appreciate some help. Thanks!

–Databoy2k