MrAsterisco / homebridge-hisense-tv

A Homebridge plugin to control RemoteNow-compatible HiSense TVs.
MIT License
21 stars 8 forks source link

hisensetv.py #40

Closed kowmen closed 1 year ago

kowmen commented 2 years ago

Hi im using Hoobs latest update, but on RPI box, I install all what i must from your manual. But i dont know how to run hisensetv.py script to get code from tv. I tried everything but nothing works. Can you help me?

MrAsterisco commented 1 year ago

Hi @kowmen !

I'm happy to help, but I'll need a bit more details on where you get stuck trying to run the Python script. Do you have SSH/Shell access to the machine?

kowmen commented 1 year ago

Hi i used this path to run a script

/var/lib/hoobs/hisensetvremotenowbridge/node_modules/homebridge-hisense-tv-remotenow/bin python3.8 hisensetv.py <192.168.1.216> --authorize --hoobs Hisense58

and this is answer bash: syntax error near unexpected token `newline' I have some mistake in authorize ( i dont know what ifname means ) i used name from router where i have named rpi as hoobs. Im loged to hoobs from macbook.

MrAsterisco commented 1 year ago

Thanks for posting this. I have a few questions: first of all, why are you passing a --hoobs parameter to the script? There is no such parameter. Also, what version of Python are you running?

kowmen commented 1 year ago

Hi i try this a used ip a from my homebridge device ( i switched from hoobs to homebridge cause its better ), this is flags=4163<UP,BROADCAST,RUNNING,MULTICAST> from my hmebridge RPI, im so confused what is ifname?

/var/lib/homebridge/node_modules/homebridge-hisense-tv-remotenow/bin python3.8 hisensetv.py <192.168.1.216> --authorize — THIS IS FOR ME UNKNOW PARAMETER TO FILL :D

I used python 3,9. Its problem with this?

MrAsterisco commented 1 year ago

You changed your setup, so I'd assume the previous error won't apply to you anymore.

ifname is your network interface name. To find your network interface name, please follow the instructions of the TV setup. :)

I'll go ahead and close this issue for now. Feel free to open a new one if you encounter other issues.