Emulated hue with Google Home on Mac

Hi, I run HA on a Mac Mini and have set up Emulated Hue with the required listen port 80.

As expected, it fails with “Failed to create HTTP server at port 80: [Errno 13] error while attempting to bind on address (‘xxx.xxx.x.xxx’, 80): permission denied” but I don’t know how set it up to use port 80 as non-root user.

I tried “sudo setcap ‘cap_net_bind_service=+ep’ /srv/homeassistant/homeassistant_venv/bin/python3” which fails with “sudo: setcap: command not found” but wasn’t really expecting it to work as that’s meant for a pi with AIO!

I did a straight install as per the guide ie “$ pip3 install homeassistant”

Anyone help please?

You’re probably just going to have to google to figure out how to run on port 80 on a mac, a quick google search shows the link below might be something to look into? Not sure… maybe you’ll get lucky and someone here has done this before…

Use Authbind

Authbind was designed specifically to allow one program access to lower level ports without giving it full root access.

There is an OS X port:

GitHub - Castaglia/MacOSX-authbind: MacOSX Lion port of the authbind utility

It may still be limited to IPv4 traffic, though, you may have to do some additional investigation to find if it meets your needs.

Thanks for that, straight over my head though unfortunately so I’ll have to keep my fingers crossed for someone having been there before.