Announcement

Collapse
No announcement yet.

8 Channel Relay Network IP 8 Relay and 8 Inputs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by Michael McSharry View Post
    I did not observe any login credentials being required.
    I looked at the coding for the Indigo plugin (link posted earlier in the thread) and it seems to be passing credentials in the curl commands.
    HS 4.2.8.0: 2134 Devices 1252 Events
    Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

    Comment


      #17
      if anyone thinks they can make it work I can send one of my 8 channel relay card for free, must make this work ...
      (shouldn't have it back)

      Can send it whith UPS or Fedex

      Don't know if there will be any duty tax but can't be much

      //Jens

      Comment


        #18
        based on the indigo script, try the following in your browser first. Ensure you've changed the ip to the correct ip, an user (admin) and password (12345678)..

        Code:
        http://admin:12345678@192.168.1.167/relay_en.cgi?saida=1&relayCommand=on
        or
        Code:
        http://admin:12345678@192.168.1.167/relay_en.cgi?saida1relayCommand=on
        If that works, then try the following in HS.
        Code:
        &hs.GetURL("admin:12345678@192.168.1.167","/relay_en.cgi?saida=1&relayCommand=on",TRUE,80)
        or
        Code:
        &hs.GetURL("admin:12345678@192.168.1.167","/relay_en.cgi?saida1relayCommand=on",TRUE,80)
        Last edited by lveatch; November 4, 2019, 10:21 PM. Reason: fixed port number from 1234 to 80

        Comment


          #19
          Shouldn't the port number (last parameter) be 80 vs. 1234?

          Comment


            #20
            Originally posted by zwolfpack View Post
            Shouldn't the port number (last parameter) be 80 vs. 1234?
            yes, good catch. 1234 appears to be a TCP (telnet) related port.

            Comment


              #21
              Originally posted by lveatch View Post
              based on the indigo script, try the following in your browser first. Ensure you've changed the ip to the correct ip, an user (admin) and password (12345678)..

              Code:
              http://admin:12345678@192.168.1.167/relay_en.cgi?saida=1&relayCommand=on
              or
              Code:
              http://admin:12345678@192.168.1.167/relay_en.cgi?saida1relayCommand=on
              If that works, then try the following in HS.
              Code:
              &hs.GetURL("admin:12345678@192.168.1.167","/relay_en.cgi?saida=1&relayCommand=on",TRUE,80)
              or
              Code:
              &hs.GetURL("admin:12345678@192.168.1.167","/relay_en.cgi?saida1relayCommand=on",TRUE,80)

              Sorry, dont work coming to the side where the buttons is but no cange of relay

              Comment


                #22
                There was another thread recently where http basic authorization was discussed and eventually reached a successful conclusion. Here is a script that you might want to try that builds on those lessons learned.

                Code:
                Sub Main(param As String)
                    Const Debug As Boolean = False
                    Const logName As String = "relay"
                
                    '=== adjust as required ====
                    Const addr = "192.168.1.167"
                    Const user As String = "admin"
                    Const pass As String = "12345678"
                    '====
                
                    ' default action is "on" - enter value in 'Parameters' field to override this
                    Dim action As String = "on"
                    If param <> "" Then action = param
                
                    Dim auth As String = user & ":" & pass
                    Dim autha As Byte() = System.Text.ASCIIEncoding.ASCII.GetBytes(auth)
                    Dim headers As String = "Authorization: Basic " & System.Convert.ToBase64String(autha)
                    Dim url As String = "http://" & addr & "/relay_en.cgi?relay1" & action & "=" & action
                
                    Dim s = hs.URLAction(url, "GET", "", headers)
                    If Debug Then hs.WriteLog(logName, s)
                
                End Sub

                Comment


                  #23
                  subscribed and this sure looks like a great way to get inputs into HS if it can be accessed. Be willing to fund work for this effort
                  HS3 Prod - Win10 - DSC - HVAC-GC-TBZ48 x3 - CurrentCost - BLRadar - RFXCOM/FRXTRX433 -ADIO - HSTOUCH - BLUPS - AB8SS - SONOS - Alexa - 1 wire - BlueIris -MyQ

                  Comment


                    #24
                    I feel confident I will be able to get it to work but will wait until my Ebay order arrives and I have things like wireshark to help. if faster turn around is needed others may be able to take up the offer of the free unit.

                    Comment


                      #25
                      Originally posted by Baxe View Post


                      Sorry, dont work coming to the side where the buttons is but no cange of relay
                      grr. On the devices Output Control page, right-click on the relay one's open button and "copy link address" - you can also "open in new tab".

                      Furthermore, can you right-click in the page empty space and "view page source" and send that back as well. You may need to attach it in a text file and upload it.

                      Comment


                        #26
                        Found this on their web site.. http://www.iotzone.cn/upload/file/1530409837.pdf (had to register)

                        Try this in your web browser.

                        http://admin:12345678@192.168.1.166/state.cgi

                        http://admin:12345678@192.168.1.166/...gi?relayon1=on
                        http://admin:12345678@192.168.1.166/...i?relayon1=off
                        http://admin:12345678@192.168.1.166/...i?pulse1=pulse

                        Click image for larger version

Name:	capture.png
Views:	885
Size:	87.6 KB
ID:	1337923

                        Comment


                          #27
                          Strange, it dount work, when I put in the code in web browser I coming to the page whith buttons, and nothing happens on relay one ??

                          //jens


                          Skickat från min iPhone med Tapatalk Pro

                          Comment


                            #28
                            Find this any one Does anyone understand




                            Create a Virtual Output with address
                            tcp://192.168.1.166:1234

                            Create a Virtual Output Command with
                            Command for ON:
                            L1\r\n
                            Command for OFF:
                            D1\r\n
                            Use as digital output: YES

                            That's it.

                            You have to send an ON state (for example from a switch block), not an impuls.

                            From this page https://www.loxforum.com/forum/faqs-...-working/page2

                            Comment


                              #29
                              Originally posted by Baxe View Post
                              Find this any one Does anyone understand
                              The difference between HTTP on port 80 and TCP on port 1234 is, generically, TCP is a primary way that computers communicate. HTTP is the way that applications (e.g. web browsers) communicate which uses TCP to actually communicate. i.e. TCP is the road, HTTP are the vehicles on the road.

                              Homeseer as similar communicaiton options. You'll hear that the HTTP method is the JSON interface, and the TCP method is the ASCII interface.

                              In reading the forum url you just posted and re-looking at the indigo posting / code, I have another test for you. Copy and paste into your browser and report back.
                              Code:
                              http://admin:12345678@192.168.1.167/relay_en.cgi?saida1on=on
                              Code:
                              http://admin:12345678@192.168.1.167/relay_en.cgi?saida1on=1
                              You can try the tcp option but you may not have the necessary software on your pc. Open a "command prompt" and type
                              Code:
                              telnet 192.168.1.167 1234
                              Then type in L1 to turn on relay 1 and D1 to turn it off.

                              Comment


                                #30
                                Any success getting the input status or controlling the relays so far?
                                HS3 Prod - Win10 - DSC - HVAC-GC-TBZ48 x3 - CurrentCost - BLRadar - RFXCOM/FRXTRX433 -ADIO - HSTOUCH - BLUPS - AB8SS - SONOS - Alexa - 1 wire - BlueIris -MyQ

                                Comment

                                Working...
                                X