I’ve had my R3 for a couple days now and it’s been exciting to discover how much potential it has - and it looks great too!
I’m trying to move away from my Push Controls (rebranded bitwise controller here in Australia which has lost all support) and have question about sending TCP commands.
I’ve attached an image from the Push Controls setup software showing what command I’m trying to send for reference:
Could someone give me a hand in translating this into a Text over TCP string - one glaring thing I see that is not right is there is no option to send the correct terminator in the advanced setup for kennymc-c intergration.
I also noticed that for this Wyrestorm Matrix unit in the Push Controls software I have to open a socket to the unit, then send the command as shown above, then close the socket. Casting my memory back when configuring the opening/closing of sockets was needed for the commands to go through successfully - is there anything that does this sort of things also?
Thanks - any help would be greatly appreciated - a little bit out of my depth but once I get it working the rest of my bespoke IP devices should be easy to configure (I hope!).
Unfortunately it still doesn’t work. I’ve tried copying you line into a button to test in the web configurator and no go.
One thing that will keep me busy though - Can you explain what to do with the list of code you have provided? where/how do I create a new intergration with that code? I’ve done a quick google but can’t see anything about this.
Can you try: 192.168.0.224:23, "raw=53 45 54 20 53 57 20 68 64 6D 69 69 6E 33 20 6F 75 74 31 0D 0A"
I converted the text to hex and added the 2 hex terminators at the end as you currently can’t combine text with binary data. If this doesn’t work either I can look into adding hex terminator options.
By default the integration waits for an answer from the client and times out if it doesn’t receive anthing. You can disable the wait for response option in the advanced setup. Then the connection will be closed right after sending the command.
The configuration posted by Ralf can be configured when you choose configure custom entities during the integration setup.
I think I can roll on from here; and thanks for clarifying about adding the code when installing the intergration - I was pulling what few hairs I have on my head out trying to see where this goes.
Commands in Features can only be commands that are supported by the remote entity which are on, off and toggle. You find more information in the integration log (settings/development/logs) when an error occurred.
Brilliant! - all works accordingly - however now the problem is the matrix doesn’t like having the sockets not being opened - send command - then socket closed.
Unfortunately it is the hardware - I know - but the very last piece of the puzzle is do you know what could be issued as a command to open and close sockets so I can add that to the custom config?
The socket/connection is always opened and closed. Is there any error shown when you execute the command or does the matrix itself shows any errors or warnings? Maybe it helps to disable wait for response in the advanced setup if you have errors on the remote.
I also looked at the WyreStorm API and I think why it didn’t work without raw= is the default new line \n (0x0A) terminator thats added automatically to the end of each command by default. If you add \r\n to your command there will be an addiditon \n added to the command. Maybe the matrix doesn’t like this although it’s the same character. You can change the command terminator in the advanced setup. According to the API specs it should also work with just a \n at the end. So you can also try it with only the text and set the command terminator to \n.
Thanks again with all your help and input. I managed to put a few delays in my sequencing and I’m glad to report everything is working perfectly - actually it is super responsive compared to my previous solution.
Steep learning curve and I’ll need to dig deeper to find out whether the R3 can detect if other rooms are using a shared device through the matrix switch so not to turn off the associated shared devices - but I’m sure it will be implemented in the future even if not able to now.
Wake on lane for a local pc for steam gaming connected to the main sony tv, remote viewing of switching appletv and foxtel stb through the matrix to the same tv - now I just need to setup another page for the cinema room and do it all again - but that’s for another weekend…