How to use Unicorn PHAT from Homebridge / Bash

Hi there!
I recently purchased a Uniconr Phat and wanted to use it with Homebridge, calling a phython script from homebridge / bash does not seem to allways work correcty

I´was wondering it there is any other way to use the Unicorn Phat from a raspberry pi / homebridge / bash

Thank you

I can call the python scripts from raspberry pi shell correctly with sudo phython but when I am “inside” homebridge I can´t seem to call the scripts
I need to be inside homebridge to be able to use the unicorn phat for the project I have in mind

Here are the commands I use inside the homebridge shell and the errors returned

Thank you

homebridge@raspberrypi:/var/lib/homebridge/unicorn-hat-master/examples phython bash: phython: orden no encontrada homebridge@raspberrypi:/var/lib/homebridge/unicorn-hat-master/examples sudo phython
sudo: phython: command not found

homebridge@raspberrypi:/home/pi/unicorn-hat-master/examples $ sudo python
Can’t open /dev/mem: Operation not permitted
Traceback (most recent call last):
File “”, line 6, in
import unicornhat as unicorn
File “/usr/local/lib/python2.7/dist-packages/”, line 35, in
File “/usr/local/lib/python2.7/dist-packages/rpi_ws281x/”, line 130, in begin
raise RuntimeError(‘ws2811_init failed with code {0} ({1})’.format(resp, str_resp))
RuntimeError: ws2811_init failed with code -5 (mmap() failed)