Announcement

Collapse
No announcement yet.

Script syntax using token

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

    Script syntax using token

    Hello, I have been trying to use my scripts using the generated token but it doesn't seem to work. I am using the following format:
    Code:
    https://connected.homeseer.com/JSON?token=XXXXX&request=controldevicebyvalue&ref=###&value=#
    I have also tried:
    Code:
    https://myhs.homeseer.com/JSON?token=XXXXX&request=controldevicebyvalue&ref=###&value=#
    Both links work with "user= / pass=", but neither of them work with the token. When I put them into a web browser, the "connected" link simply asks me for a user and pass, and when I put my credentials in, the command works. When I try the "myhs" link, it simply redirects to http://json/... and shows an error.

    #2
    This is the HomeSeer documentation. If this does not work you need to contact support about MyHS problems.

    https://help.homeseer.com/help/HS3SD...s_through_myhs

    Comment


      #3
      Right, but surely it's working for you? How is your script formatted?

      Comment


        #4
        Originally posted by bla8291 View Post
        Right, but surely it's working for you? How is your script formatted?
        I use tokens for 3rd party access systems and for oAuth setup. I don't run scripts to access the JSON interface from external sites only internal.

        Tokens are tied to the MyHS username for access. You can only have one token per user from MyHS. If you requested multiple tokens for the same user then you have invalidated any previous tokens. If you have only requested one token and it's not working then follow below.

        You need to notify HS Support as you're not the only one having issue with MyHS. It's not a token issue if you have a token. It's a problem with their servers not being online.

        Comment


          #5
          Understood. I did request a token more than once but I was only using the new token each time. I'll contact them.

          Comment


            #6
            Originally posted by bla8291 View Post
            Understood. I did request a token more than once but I was only using the new token each time. I'll contact them.
            Yeah each "new" token invalidates any older token previously requested. I wish I could help more but the plugin is simply a front end wrapper around the HS code for requesting the token. It really does not do anything but try to make the process easy.

            Comment


              #7
              Here having the same problem. I was able to get the token and use it from my house.


              But from my mother house , no luck. Was only able to use the user and pass to get it to work.

              will also contact hs

              Comment


                #8
                Have you tried against "https://connected2.homeseer.com"

                I was told that "connected2" was the preferred system to use for remote scripts/tools

                Comment


                  #9
                  Connected2 server is currently down for me right now.

                  Comment

                  Working...
                  X