BenQ Projector Serial integration

Hello,

I have a BenQ projector and there was no integration for it’s control inside Home Assistant, but there was one for an Acer projector.

We tried mixing the two with a bunch of friend and here the abomination:

https://github.com/yaymuffins/Serial-BenQ-Projector-Home-Assistant-Integration

It’s top feature is that it does work! it report power on/off status, will allow you to switch the projector on or off, will report on how many hours the lamp has run, what source the projector is set to (while it’s on) and what mode the lamp is (normal, eco,…)

I’m really sorry for the stupid question, but i’m new to HA and HACS
I’m trying to integrate my Benq projector to my HA, and found this component, but i’m struggling to find out how to make it work.
I tried to insert the url as custom repository, but didn’t work, then I tried to put the files inside the custom_component folder, but no success.
What is the procedures to implement it on my HA instance.

Thank you

I had troubles to turn the projector off using the integration. For me it works with the following shell commands:

  projector_on_1: echo -e -n '\r*pow=on#\r' > /dev/ttyUSB0
  projector_off_1: echo -e -n '\r*pow=off#\r' > /dev/ttyUSB0

run the command twice in a short period to turn off (like pushing the button twice on the remote)