I am using Ubiquiti EdgeRouter x as my primary router which doesn’t have device tracking in HA so I wrote python application to track the devices/clients getting connected to my router and then update HA!
Best part is this is event based and no polling so it is instantaneous!
Setup is simple and need only one configuration change in EdgeRouter X to enable system log to send data to your configure IP:Port address.
I have more details on my github page.
Please feel free to ask any question/suggestion/bug if you have.
Enjoy!
Most likely the port you have configured in the config.yaml (default is: 514) used by some other application.
You have two options to solve this:
Change the port for erxsyslog to some other port by modifying the config.yaml and obihai syslog port
Change the port of the application which is already using the port you are trying. Depending on which OS you are running you will have to find out the application/process using it.
I am not 100% sure but I remember some other person had to run this with sudo. If you want you can try same command with sudo like:
sudo python3 erx_main.py .
But keep in mind that you are giving root access to the process by running with sudo and this is usually not advisable.
Thanks wil investigate further, not sure what other application would be using it. Had to enable it on Ubuntu 18, so not making sense. This was run as Sudo, permission denied otherwise.