AutoRemote Local connection on port 1817

Discussion in 'AutoApps' started by Homeautomation, Aug 18, 2015.

  1. Homeautomation

    Homeautomation New Member

    Joined:
    Jun 25, 2015
    Messages:
    12
    Likes Received:
    0
    Hi, I'm using http://192.168.2.124:1817/?message=command=:=text&password=mypassword
    In Tasker I have create an event that listen on autoremote with no filter.
    Then have some code that can do a lot of thing depending on the command above.
    This works most of the time, if I turn off the wifi or if the phone switch to 3g/4g and back to wifi when I'm home it's takes up to few minutes until tasker start listen on the commands.
    If I open the autoremote logwindow it newer miss a single command.
    Example
    18:00:00 Wifi turns on or sync to home wifi network.
    Wait for wifi to connect and get the ip.
    18:00:05 Send local message thru port 1817
    18:00:05 Autoremote log: Receive Message from Unknown: Text: Here is the string I sent.
    Tasker don't respond..
    18:00:06 Send local message thru port 1817
    18:00:06 Autoremote log: Receive Message from Unknown: Text: Here is the string I sent.
    Tasker don't respond.
    18:00:07 Send local message thru port 1817
    18:00:07 Autoremote log: Receive Message from Unknown: Text: Here is the string I sent.
    Tasker don't respond.
    .......
    18:01:00 Send local message thru port 1817
    18:01:00 Autoremote log: Receive Message from Unknown: Text: Here is the string I sent.
    Tasker respond as normal on all following commands.

    There is no difference in the autoremote logs when tasker respond or not.
    Also, the Json response ,"result":"OK","communication_base_params":{"type":"ResponseBasic","fallback":false}} all the time
    Is there any way to track this down?
    Maybe this is a Tasker issue that I can't understand or does autoremote not send the command to tasker during this time?

    Thanks
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    There should be no difference regarding AutoRemote. Maybe you have a condition in Tasker that's altering the way it handles results? Can that be it? and what if you send the message with the AutoRemote Message action? Is it any different?
     
  3. Homeautomation

    Homeautomation New Member

    Joined:
    Jun 25, 2015
    Messages:
    12
    Likes Received:
    0
    Have done more testing, if AutoRemote app is open it works 100% all the time. If I close down the AutoRemote it miss to update the data to Tasker very often.
    Below is the only way I don't get 90% lost command.
    AutoRemote is showing on mainscreen, no other app on front of it.
    AutoRemote closed, but with Show Toast In Enabled. (I prefer it disabled.)
    Running 4.2.2 on this tablet.
    Thanks
     
  4. Homeautomation

    Homeautomation New Member

    Joined:
    Jun 25, 2015
    Messages:
    12
    Likes Received:
    0
    Tested on more devices, works fine with "Show Toast IN" Enabled but not when disabled. Could it be something with 4.2.2 and Tasker that it only listen on toast messages?
    Unfortunately I can not upgrade these tablets to later version.
     
  5. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    That shouldn't have any impact unless you are somehow blocking AutoRemote in the background with an app like greenify for example. It should always work, even when not showing.
     
: autoremote

Share This Page