Are you still trying to get this to work? I saw your posts on the Sending TCP packets to a device thread. I’ve started working on a script (stand alone python script currently working) for my J-Tech digital 8x8 matrix - commands are almost identical (# instead of !).
If there’s interest I can spend a bit longer on it.
Ok, take a look at generic-hdmi-matrix. I have only just put this together today, so let me know how it goes.
It requires user input from command line (built this way to test it before I go any further), and it accounts for the 0-7 input/output offset, so enter 1-8.
Looking at the link to the nohassle commands, yours seem to end with !, try this script as-is, but you may need to modify this line accordingly:
I ran your python script on my windows PC…i enter the output and input. Then it thinks about it for a second and then the python script exits…just before it exits it says something but I can’t read it fast enough. It also doesn’t change any of the outputs.
Are you double-clicking the script to run it? Prompt will close straight away once run I think. If you open cmd prompt and run python matrix-switch.py it should stay open so you can see the error.
Which output? 1
Which input? 1
Traceback (most recent call last):
File "C:\Users\Alex\Desktop\matrixswitch.py", line 29, in <module>
packet.connect((ip, port))
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
When you changed the ip address to 192.168.0.210, did you leave the single quotes or retype them? Just maybe confirm that they are still straight single or double quotes.
Did you change the other line I mentioned above (! instead of #)?
Hello, I just installed hassIO in a windows PC in a python venv, I have the Jtech 8x8 switch also. Did you get it to work in HA? If you have a sample setup I would greatly appreciate seeing it to see how I begin to install it in my config.