www.homeseer.com    
 

Go Back   HomeSeer Message Board > Ultilities (Plug-ins) > Utilities Discussion > Tasker Plugin (3P)

Tasker Plugin (3P) Discussions related to the Tasker plugin by Tonlof.

Reply
 
Thread Tools Display Modes
  #1  
Old April 19th, 2017, 06:35 AM
MorkaiTheWolf's Avatar
MorkaiTheWolf MorkaiTheWolf is offline
Seer
 
Join Date: Nov 2015
Location: Kansas
Posts: 24
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.
Reply With Quote
  #2  
Old April 19th, 2017, 11:29 AM
tonlof's Avatar
tonlof tonlof is offline
Seer Master
 
Join Date: Apr 2001
Location: Nordic
Posts: 1,417
Quote:
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
Reply With Quote
  #3  
Old April 19th, 2017, 08:51 PM
MorkaiTheWolf's Avatar
MorkaiTheWolf MorkaiTheWolf is offline
Seer
 
Join Date: Nov 2015
Location: Kansas
Posts: 24
Quote:
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.
Reply With Quote
  #4  
Old April 20th, 2017, 12:33 PM
tonlof's Avatar
tonlof tonlof is offline
Seer Master
 
Join Date: Apr 2001
Location: Nordic
Posts: 1,417
Quote:
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.
Reply With Quote
  #5  
Old May 5th, 2017, 12:24 PM
khriss75 khriss75 is offline
Seer Deluxe
 
Join Date: Feb 2010
Location: Italy
Posts: 214
But is possible to use SSL for a little more security?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tasker wljohnson05 Tasker Plugin (3P) 8 August 23rd, 2014 02:53 PM
ISY communication problems jwshome2 ISY Plug-in Beta (3P) 2 November 21st, 2012 06:18 PM
Communication problems in a previously stable Z wave network kbrady HS2 / HSPRO 0 December 17th, 2011 12:39 AM
VRCS4-1LX causing communication problems Thrag HomeSeer Z-Wave Plug-in 1 October 30th, 2011 03:50 PM
Communication Problems azfrankp HS2 / HSPRO 6 March 17th, 2011 06:15 PM


All times are GMT -4. The time now is 08:06 AM.


Copyright HomeSeer Technologies, LLC