Hello! My name is Svetlana, I'm a UX/UI designer working on a design for a smart home app. I want to know about the experience of using any smart home application (be it MiHome, Tuya, Home Assistant, etc.) and your own thoughts. If you have a similar experience and want to help, please write to me in private. Your participation will help me make the product better and understand the needs of real users. I'm looking forward to communicating with you! Thank you.
Hi. So when I had my house build I ran a bunch of stuff, one of which being two pairs of speaker wires to each bedroom and to 4 spots around my living room… Over the years I have used them here and there with different success.. But today they sit in my walls just unused.
I converted all the cat6 or 5e (I don’t remember) over to basically eithernet jacks. The cable coaxial well it’s there but now unused. But I was thinking there has got to be some use for two pairs of speaker wires to each room. Can I make them usb plugs? Not sure so looking for ideas.
Thanks in advance for your thoughts on this.
Kevin
http relay activate with username and password authentication
-
Hi to all,
I am user of vera controller. I have a dahua door intercom with relay. Relay activates with username and password authentication. I can activate the relayhttp://admin:a1234567@192.168.1.111/cgi-bin/accessControl.cgi?action=openDoor&channel=1&UserID=101&Type=Remote
As you can see intercom username
admin
and password isa1234567
I build a scene with luup codeluup.inet.wget( "http://admin:a1234567@192.168.1.111/cgi-bin/accessControl.cgi?action=openDoor&channel=1&UserID=101&Type=Remote" )
But can not activate relay. Is there any idea? -
Try using:
luup.inet.wget( "http://192.168.1.111/cgi-bin/accessControl.cgi?action=openDoor&channel=1&UserID=101&Type=Remote", 15, "admin", "a1234567" )
...and see if that works (username and password as third and fourth arguments). If not, your door intercom probably requires Digest Authentication, which the browser will happily use if asked, but which the old libraries on Vera probably don't do. In that case, you'll want to use
curl
viaos.execute()
like this:os.execute( "curl -o - --user admin:a1234567 'http://192.168.1.111/cgi-bin/accessControl.cgi?action=openDoor&channel=1&UserID=101&Type=Remote'")
Notice that the URL is enclosed in single-quotes, which is necessary; the entire command is enclosed in double quotes. The closing single quote at the end of the URL is next to the closing double quote for the string sent to
os.execute()
so it is hard to see, but it's there. -
@toggledbits said in http relay activate with username and password authentication:
os.execute( "curl -o - --user admin:a1234567 'http://192.168.1.111/cgi-bin/accessControl.cgi?action=openDoor&channel=1&UserID=101&Type=Remote'")
Thanks for reply but both are not working.
-
@destination what if you just try that curl command from the command line (without os.execute)? Just to narrow down what is working and what's not.
-
@tunnus said in http relay activate with username and password authentication:
@destination what if you just try that curl command from the command line (without os.execute)? Just to narrow down what is working and what's not.
No luck