Announcement

Collapse
No announcement yet.

Communication Problems from HS to Tasker

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

  • Communication Problems from HS to Tasker

    First, I wanna give a big shout out for this awesome plugin. I've been able to do a lot of awesome things on it but I've apparently run into a situation and need a bit of guidance.

    I've been trying to get two way communication working between my HS3 system and my mobile phone. When I'm on the wifi at home, everything works flawlessly both ways.

    Issue: When I'm off the home wifi, I can receive messages from HS3 to my mobile device (as seen by testing control through the tasker device to send commands such as 'Vibrate' to the mobile device) but I am unable to receive messages on HS3 from tasker on mobile (such as trying to change a state of a device).

    To not spam a wall of useless information, what do you think would be most helpful to start the troubleshooting process?

    Code:
    System Details
    Current Date/Time: 4/19/2017 5:16:31 AM
    HomeSeer Version: HS3 Standard Edition 3.0.0.297
    Operating System: Microsoft Windows 10 Home - Work Station
    System Uptime: 1 Day 20 Hours 38 Minutes 41 Seconds
    IP Address: 192.168.1.192
    Number of Devices: 104
    Number of Events: 50
    Available Threads: 200
    
    Enabled Plug-Ins
    2.0.44.0: BLBackup
    2.0.19.0: BLOccupied
    3.6.5.0: Harmony Hub
    3.0.0.75: HSTouch Server
    3.0.0.13: ImperiHome
    3.0.0.27: MediaController
    3.0.1.52: PHLocation
    3.0.3.3: Tasker Plugin
    3.0.1.93: Z-Wave
    Tasker task:
    Variable Set:
    Name: %HSSetdevicestraing To Value 2
    Variable Set:
    Name: %HSSetdevicevalue To 50
    Variable Set:
    Name: %HsRef To 275
    Variable Set:
    Name: %HSCommand To DeviceUpdate

    Result when on WiFi:
    Apr-19 5:21:50 AM Device Control Device: Tasker Tasker Plugin Test Device to Value 2 (50) by/from: CAPI Control Handler
    Device state successfully changes.

    Tasker Logs:
    Code:
    20170419 05.32.00 E Start    ID0:0.0  TaskService
    20170419 05.32.01 T Running  ID177    TestTasker
    20170419 05.32.01 A OK       ID177.1  TestTasker.Var Set, %HSSetdevicestring=Value 2
    20170419 05.32.01 A OK       ID177.2  TestTasker.Var Set, %HSSetdevicevalue=50
    20170419 05.32.01 A OK       ID177.3  TestTasker.Var Set, %HsRef=275
    20170419 05.32.01 A OK       ID177.4  TestTasker.Var Set, %HSCommand=DeviceUpdate
    20170419 05.32.01 T ExitOK   ID177    TestTasker
    20170419 05.32.01 P Instant  ID103    HS Device Trigger
    20170419 05.32.01 P Instant  ID110    HS Command trigger
    20170419 05.32.01 T Running  ID101:2  Anon
    20170419 05.32.01 T Running  ID75:3   Anon
    20170419 05.32.01 T Running  ID94:4   HS3Post
    20170419 05.32.01 A OK       ID75:3.1 Anon.Perform Task, HS3Post
    20170419 05.32.01 T ExitOK   ID75:3   Anon
    20170419 05.32.01 A OK       ID94:4.1 HS3Post.Var Set, %newline= 
    20170419 05.32.01 T RejCopy  ID94     HS3Post
    20170419 05.32.01 A Err      ID101:2.1 Anon.Perform Task, HS3Post
    20170419 05.32.01 T ExitErr  ID101:2  Anon
    20170419 05.32.01 A OK       ID94:4.2 HS3Post.Generate timecode
    20170419 05.32.01 A OK       ID94:4.3 HS3Post.Read Line, %connection_method=direct
    20170419 05.32.01 A OK       ID94:4.4 HS3Post.Read File, %connection=Android test test ..
    20170419 05.32.01 A IfFail   ID94:4.5 HS3Post.Read File, %connection=Android test test ..
    20170419 05.32.01 A OK       ID94:4.6 HS3Post.Var Split, %connection=Android test test ..
    20170419 05.32.01 A OK       ID94:4.7 HS3Post.Read Line, %ssid_saved=XBOXLIVE
    20170419 05.32.01 A OK       ID94:4.8 HS3Post.Read Line, %localip=192.168.1.192:81
    20170419 05.32.01 A IfFail   ID94:4.9 HS3Post.Var Set, %protocol=%protocol
    20170419 05.32.01 A OK       ID94:4.10 HS3Post.Var Set, %protocol=https://
    20170419 05.32.01 A OK       ID94:4.11 HS3Post.Var Convert, %code=MTQxNzk2ODAyNTc0MT..
    20170419 05.32.01 A IfFail   ID94:4.12 HS3Post.Var Set, %HSSetdevicestring=Value 2
    20170419 05.32.01 A IfFail   ID94:4.13 HS3Post.Var Set, %HSSetdevicevalue=50
    20170419 05.32.01 A IfFail   ID94:4.14 HS3Post.Var Set, %HSdata=null
    20170419 05.32.01 A IfFail   ID94:4.15 HS3Post.Flash
    20170419 05.32.01 A OK       ID94:4.16 HS3Post.For, %testdata=1
    20170419 05.32.02 A IfFail   ID94:4.17 HS3Post.Flash
    20170419 05.32.02 A OK       ID94:4.18 HS3Post.Test Net, %ssid_test=XBOXLIVE
    20170419 05.32.02 A OK       ID94:4.19 HS3Post.If
    20170419 05.32.02 A OK       ID94:4.20 HS3Post.Read Line, %ssl=off
    20170419 05.32.02 A OK       ID94:4.21 HS3Post.Var Set, %protocol=http://
    20170419 05.32.02 A IfFail   ID94:4.22 HS3Post.Var Set, %protocol=http://
    20170419 05.32.02 A OK       ID94:4.23 HS3Post.Read File, %connection=Android test test ..
    20170419 05.32.02 A OK       ID94:4.24 HS3Post.Var Split, %connection=Android test test ..
    20170419 05.32.02 A OK       ID94:4.25 HS3Post.Send data till HomeSeer
    20170419 05.32.02 A Disabled ID94:4.26 HS3Post.Flash
    20170419 05.32.02 A OK       ID94:4.27 HS3Post.Else
    20170419 05.32.02 A OK       ID94:4.31 HS3Post.Goto
    20170419 05.32.02 T Running  ID80:5   Clear_Variables
    20170419 05.32.02 A OK       ID94:4.38 HS3Post.Continue
    20170419 05.32.02 A OK       ID94:4.39 HS3Post.Read File, %httprespond=%httprespond
    20170419 05.32.02 A Disabled ID94:4.40 HS3Post.Delete File
    20170419 05.32.02 A IfFail   ID94:4.41 HS3Post.Flash
    20170419 05.32.02 A IfFail   ID94:4.42 HS3Post.Show Scene
    20170419 05.32.02 A IfFail   ID94:4.43 HS3Post.Element Text
    20170419 05.32.02 A IfFail   ID94:4.44 HS3Post.Stop
    20170419 05.32.02 A OK       ID94:4.45 HS3Post.Stop
    20170419 05.32.02 T ExitOK   ID94:4   HS3Post
    20170419 05.32.02 A OK       ID80:5.1 Clear_Variables.Var Clear, %HSCommand=%HSCommand
    20170419 05.32.02 A OK       ID80:5.2 Clear_Variables.Var Clear, %HSdata=%HSdata
    20170419 05.32.02 A OK       ID80:5.3 Clear_Variables.Var Clear, %HSSetdevicestring=%HSSetdevicestring
    20170419 05.32.02 A OK       ID80:5.4 Clear_Variables.Var Clear, %HSSetdevicevalue=%HSSetdevicevalue
    20170419 05.32.02 A OK       ID80:5.5 Clear_Variables.Var Clear, %HsReplace=%HsReplace
    20170419 05.32.02 A OK       ID80:5.6 Clear_Variables.Var Clear, %HsRef=%HsRef
    20170419 05.32.03 T ExitOK   ID80:5   Clear_Variables
    20170419 05.32.09 E Stop     ID0:0.0  TaskService
    When performing the same command off wifi:
    No state change. Provided the tasker logs below. Do not see any events logged in HS3.
    Code:
    20170419 05.25.46 E Start    ID0:0.0  TaskService
    20170419 05.25.47 T Running  ID177    TestTasker
    20170419 05.25.47 A OK       ID177.1  TestTasker.Var Set, %HSSetdevicestring=Value 2
    20170419 05.25.47 A OK       ID177.2  TestTasker.Var Set, %HSSetdevicevalue=50
    20170419 05.25.47 A OK       ID177.3  TestTasker.Var Set, %HsRef=275
    20170419 05.25.47 A OK       ID177.4  TestTasker.Var Set, %HSCommand=DeviceUpdate
    20170419 05.25.47 T ExitOK   ID177    TestTasker
    20170419 05.25.47 P Instant  ID103    HS Device Trigger
    20170419 05.25.47 P Instant  ID110    HS Command trigger
    20170419 05.25.47 T Running  ID101:2  Anon
    20170419 05.25.47 T Running  ID75:3   Anon
    20170419 05.25.47 T Running  ID94:4   HS3Post
    20170419 05.25.47 A OK       ID75:3.1 Anon.Perform Task, HS3Post
    20170419 05.25.47 T ExitOK   ID75:3   Anon
    20170419 05.25.47 A OK       ID94:4.1 HS3Post.Var Set, %newline= 
    20170419 05.25.47 T RejCopy  ID94     HS3Post
    20170419 05.25.48 A Err      ID101:2.1 Anon.Perform Task, HS3Post
    20170419 05.25.48 T ExitErr  ID101:2  Anon
    20170419 05.25.48 A OK       ID94:4.2 HS3Post.Generate timecode
    20170419 05.25.48 A OK       ID94:4.3 HS3Post.Read Line, %connection_method=direct
    20170419 05.25.48 A OK       ID94:4.4 HS3Post.Read File, %connection=Android test test ..
    20170419 05.25.48 A IfFail   ID94:4.5 HS3Post.Read File, %connection=Android test test ..
    20170419 05.25.48 A OK       ID94:4.6 HS3Post.Var Split, %connection=Android test test ..
    20170419 05.25.48 A OK       ID94:4.7 HS3Post.Read Line, %ssid_saved=XBOXLIVE
    20170419 05.25.48 A OK       ID94:4.8 HS3Post.Read Line, %localip=192.168.1.192:81
    20170419 05.25.48 A IfFail   ID94:4.9 HS3Post.Var Set, %protocol=%protocol
    20170419 05.25.48 A OK       ID94:4.10 HS3Post.Var Set, %protocol=https://
    20170419 05.25.48 A OK       ID94:4.11 HS3Post.Var Convert, %code=MTQxNzk2NzY3MDYyMz..
    20170419 05.25.48 A IfFail   ID94:4.12 HS3Post.Var Set, %HSSetdevicestring=Value 2
    20170419 05.25.48 A IfFail   ID94:4.13 HS3Post.Var Set, %HSSetdevicevalue=50
    20170419 05.25.48 A IfFail   ID94:4.14 HS3Post.Var Set, %HSdata=null
    20170419 05.25.48 A IfFail   ID94:4.15 HS3Post.Flash
    20170419 05.25.48 A OK       ID94:4.16 HS3Post.For, %testdata=1
    20170419 05.25.48 A IfFail   ID94:4.17 HS3Post.Flash
    20170419 05.25.48 A OK       ID94:4.18 HS3Post.Test Net, %ssid_test=<unknown ssid>
    20170419 05.25.48 A OK       ID94:4.19 HS3Post.If
    20170419 05.25.48 A OK       ID94:4.27 HS3Post.Else
    20170419 05.25.48 A IfFail   ID94:4.28 HS3Post.Send data till HomeSeer
    20170419 05.25.52 A ErrIgnore ID94:4.29 HS3Post.Send data till HomeSeer
    20170419 05.25.52 A OK       ID94:4.30 HS3Post.End If
    20170419 05.25.52 A IfFail   ID94:4.31 HS3Post.Goto
    20170419 05.25.52 A OK       ID94:4.32 HS3Post.Stop
    20170419 05.25.52 T ExitOK   ID94:4   HS3Post
    20170419 05.25.54 E Stop     ID0:0.0  TaskService
    This is from running the same event on and off wifi. The only difference I'm really seeing is that at the end of the successful one, it clears all the variables but on the non-successful, it just exits.

  • #2
    Originally posted by MorkaiTheWolf View Post
    This is from running the same event on and off wifi. The only difference I'm really seeing is that at the end of the successful one, it clears all the variables but on the non-successful, it just exits.
    Hi Brian, it looks like you are connecting to your local ip 192.168.1.192:81 even when wifi is offline.

    Could you check hs3_connection.dat file in the tasker folder.
    Line 1 = Your Name
    Line 2 = Username
    Line 3 = Password
    Line 4 = url to wan ip of your router including port.
    Line 5 = on = SSL ON, off=No SSL

    You can also active more debugging by setting variable %Debug to 1
    Please excuse any spelling and grammatical errors I may make.
    --
    Tasker Plugin / Speech Droid
    Tonlof | Sweden

    Comment


    • #3
      Originally posted by tonlof View Post
      Hi Brian, it looks like you are connecting to your local ip 192.168.1.192:81 even when wifi is offline.

      Could you check hs3_connection.dat file in the tasker folder.
      Line 1 = Your Name
      Line 2 = Username
      Line 3 = Password
      Line 4 = url to wan ip of your router including port.
      Line 5 = on = SSL ON, off=No SSL

      You can also active more debugging by setting variable %Debug to 1
      HS3_Connection.dat:
      Android
      test
      test
      desktop-nuc.duckdns.org:4444
      on

      I just tried flipping SSL to off and now it appears to be sending just fine when I'm off wifi.

      Comment


      • #4
        Originally posted by MorkaiTheWolf View Post
        HS3_Connection.dat:
        Android
        test
        test
        desktop-nuc.duckdns.org:4444
        on

        I just tried flipping SSL to off and now it appears to be sending just fine when I'm off wifi.
        Great that you found it out.
        Please excuse any spelling and grammatical errors I may make.
        --
        Tasker Plugin / Speech Droid
        Tonlof | Sweden

        Comment


        • #5
          But is possible to use SSL for a little more security?

          Comment


          • #6
            Originally posted by khriss75 View Post
            But is possible to use SSL for a little more security?
            I'm honestly not sure. I haven't gotten to work for me, reliably, with SSL on.

            Comment


            • #7
              Originally posted by MorkaiTheWolf View Post
              I'm honestly not sure. I haven't gotten to work for me, reliably, with SSL on.

              Hello,

              There is also a problem here "Name: %HSSetdevicestraing To Value 2" in you first post. That will also cause things not to work.


              Eman.
              The People's Advocate.

              Comment


              • #8
                Originally posted by Eman View Post
                Hello,

                There is also a problem here "Name: %HSSetdevicestraing To Value 2" in you first post. That will also cause things not to work.


                Eman.
                Yeah, I noticed that earlier but that was a spelling error in the post. If you look at the Tasker log, it's showing correctly. Just an instance of me typing and not catching my errors. :P

                Comment


                • #9
                  Originally posted by MorkaiTheWolf View Post
                  I'm honestly not sure. I haven't gotten to work for me, reliably, with SSL on.
                  Newer Android versions & tasker does not accept the certificate from Homeseer
                  Please excuse any spelling and grammatical errors I may make.
                  --
                  Tasker Plugin / Speech Droid
                  Tonlof | Sweden

                  Comment

                  Working...
                  X