I am not a programmer aswell, but you can already use it in Home Assistant.
I don’t know what your setup is, but i have an raspberry 2 and used the all in one installer to install Home Assistant.
So first thing you need to install is npm. I have installed it a while back. I don’t remember how i did install it. But i just found this command which should do the trick: sudo npm install npm -g
next thing to do is install the script you found with the command:
As you can see for the on command i used the path what was given during the installation (i made it bold for you)
it is followed by -i -l < your_live_device_id>
after a restart of Home Assistant you should see the switch.
I hope this helps you out and thank you for finding the script.
I’m not running in on a raspberry pi. I have a hyperv server core installed at home. I have it running in a VM
Im running it on the latest version of debian
The install commands are diffrent then you suggested
I did the following:
apt-get install npm
So the npm is installed
did the following command to install xbox-on npm install -g xbox-on
This installed it correctly as you stated above
Swith is showing up. but now I have the following error
ERROR:homeassistant.components.switch.command_line:Command failed: /usr/lib/node_modules/xbox-on/cli.js -i 192.168.2.4 -l {my live ID}
Getting follwoing error. Seems it cannot find something. Now I need to figure out what en why
INFO:homeassistant.components.switch.command_line:Running command: /usr/lib/node_modules/xbox-on/cli.js -i 192.168.2.4 -l {my id}
/usr/bin/env: node: No such file or directory
I’m a bit new to Linux, but I wonder if you’ve still got a path/environment issue where when the script gets executed, it doesn’t know where to find node.
It is odd to me that you guys can download npm(node package manager), but cannot find node in your environment. Usually npm depends on node. Can anyone describe how they installed npm?