No hassle av matrix

Can someone please help me make a driver for this hdmi matrix please? No Hassle AV Support

Here are the ip commands from their support site

RS232 Serial Baud Rate: 115200, 8, 1, None	
IP Communication: Port 8000	
These are ASCII commands, not HEX	
	
	
Reboot	s rboot!
Power On	s power on!
Power Off	s power off!
Factory Reset	s factory reset!
	
Input 1 to ALL Outputs	s 1 all! 
Input 2 to ALL Outputs	s 2 all! 
Input 3 to ALL Outputs	s 3 all! 
Input 4 to ALL Outputs	s 4 all! 
Input 5 to ALL Outputs	s 5 all! 
Input 6 to ALL Outputs	s 6 all! 
Input 7 to ALL Outputs	s 7 all! 
Input 8 to ALL Outputs	s 8 all! 
	
Input 1 to Output 1	s 1 av 1!
Input 2 to Output 1	s 2 av 1!
Input 3 to Output 1	s 3 av 1!
Input 4 to Output 1	s 4 av 1!
Input 5 to Output 1	s 5 av 1!
Input 6 to Output 1	s 6 av 1!
Input 7 to Output 1	s 7 av 1!
Input 8 to Output 1	s 8 av 1!
	
Input 1 to Output 2	s 1 av 2!
Input 2 to Output 2	s 2 av 2!
Input 3 to Output 2	s 3 av 2!
Input 4 to Output 2	s 4 av 2!
Input 5 to Output 2	s 5 av 2!
Input 6 to Output 2	s 6 av 2!
Input 7 to Output 2	s 7 av 2!
Input 8 to Output 2	s 8 av 2!
	
Input 1 to Output 3	s 1 av 3!
Input 2 to Output 3	s 2 av 3!
Input 3 to Output 3	s 3 av 3!
Input 4 to Output 3	s 4 av 3!
Input 5 to Output 3	s 5 av 3!
Input 6 to Output 3	s 6 av 3!
Input 7 to Output 3	s 7 av 3!
Input 8 to Output 3	s 8 av 3!
	
Input 1 to Output 4	s 1 av 4!
Input 2 to Output 4	s 2 av 4!
Input 3 to Output 4	s 3 av 4!
Input 4 to Output 4	s 4 av 4!
Input 5 to Output 4	s 5 av 4!
Input 6 to Output 4	s 6 av 4!
Input 7 to Output 4	s 7 av 4!
Input 8 to Output 4	s 8 av 4!
	
Input 1 to Output 5	s 1 av 5!
Input 2 to Output 5	s 2 av 5!
Input 3 to Output 5	s 3 av 5!
Input 4 to Output 5	s 4 av 5!
Input 5 to Output 5	s 5 av 5!
Input 6 to Output 5	s 6 av 5!
Input 7 to Output 5	s 7 av 5!
Input 8 to Output 5	s 8 av 5!
	
Input 1 to Output 6	s 1 av 6!
Input 2 to Output 6	s 2 av 6!
Input 3 to Output 6	s 3 av 6!
Input 4 to Output 6	s 4 av 6!
Input 5 to Output 6	s 5 av 6!
Input 6 to Output 6	s 6 av 6!
Input 7 to Output 6	s 7 av 6!
Input 8 to Output 6	s 8 av 6!
	
Input 1 to Output 7	s 1 av 7!
Input 2 to Output 7	s 2 av 7!
Input 3 to Output 7	s 3 av 7!
Input 4 to Output 7	s 4 av 7!
Input 5 to Output 7	s 5 av 7!
Input 6 to Output 7	s 6 av 7!
Input 7 to Output 7	s 7 av 7!
Input 8 to Output 7	s 8 av 7!
	
Input 1 to Output 8	s 1 av 8!
Input 2 to Output 8	s 2 av 8!
Input 3 to Output 8	s 3 av 8!
Input 4 to Output 8	s 4 av 8!
Input 5 to Output 8	s 5 av 8!
Input 6 to Output 8	s 6 av 8!
Input 7 to Output 8	s 7 av 8!
Input 8 to Output 8	s 8 av 8!
	

This is nowhere near complete, but should allow you to test to see if the communication will work.

Create a Driver using this code
/**
 */
 
metadata {
    definition(name: "Connection Test", namespace: "thebearmay", author: "Jean P. May, Jr.") {
	
        capability "Actuator"
        
        command "sendMessage", [["string"]]
        
        attribute "parseVal", "string"
      
    }

    preferences{
        input name: 'ipAddress', type: 'text', title: 'IP Address', required: true, defaultValue: '10.0.0.53', description: 'IP Address'
        input name: 'port', type: 'number', title: 'IP Port', required: true, defaultValue: 8000, description: 'IP Port'

        input name: 'debugEnabled', type: 'bool', title: 'Enable Debug Messages', defaultValue: false, submitOnChange: true

    }
}

void configure() {
}

void installed() {
}

void updated() {
    if(debugEnabled) {
        log.debug "Preferences updated()"
        runIn(1800,logsOff)
    }
}


void sendMessage(strmsg) {
    def ip = ipAddress as String
    def p = port as int

    interfaces.rawSocket.connect(ip, p, 'byteInterface':false)
    interfaces.rawSocket.sendMessage(strmsg)

    //interfaces.rawSocket.close()
}


void parse(String msg) {
    sendEvent(name:"parseVal", value: "$msg")
}

@SuppressWarnings('unused')
void logsOff(){
    device.updateSetting("debugEnabled",[value:"false",type:"bool"])
    log.info "Debug logging turned off"
}

Once you've done that create a device using the driver, fill in the IP and Port numbers, Save Preferenes, and try typing s power on! into the Send Message text box and click the command. If the AV Matrix comes on try typing s power off! into the Send Message text box and click again.

If these work, creating a full driver should be fairly easy.

3 Likes

@thebearmay to the rescue again!!!

LOL, haven't done anything yet except dust off some test code.

1 Like

You Can Do It Reaction GIF by GIPHY Studios Originals

1 Like