Welcome to Smart Home Forum by FIBARO
Search the Community
Showing results for tags 'netrelay'.
Hello Everyone, I got a 8 channel IP relay, that i would like to control with the HC2. I grabbed the network data that's being send out when i use the buttons in the original control webpage of the relay. It looks like this: curl 'http://10.0.1.93/relay_en.cgi' \ -XPOST \ -H 'Content-Type: application/x-www-form-urlencoded' \ -H 'Referer: http://10.0.1.93/relay_en.cgi' \ -H 'Upgrade-Insecure-Requests: 1' \ -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50' \ -H 'Origin: http://10.0.1.93' \ --data 'saida1on=on' How could i get the HC2 to trigger this via LUA? Can it be done? I also found this.. Maybe someone can help me find out.. This triggers Relay 1 for an Pulse of 1 second, "saida1on=on" sets the relay on and "saida1off=off" sets relay 1 to off. curl --user admin:password --data "saida1pluse=pluse" http://10.0.1.93/relay_en.cgi If i can explain anything more, please ask.. I'm struggling with this for a few days now, and can't get this to work.