Announcement

Collapse
No announcement yet.

Andoid Wear

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

    Andoid Wear

    I just got my LG Watch Urbane, have done some test to integrate tasker plugin with Android Wear. Need to do more testing and make it cleaner before I release it.

    Functions I'm testing with Tasker plugin.
    • Sending toast message to watch.
    • Send custom menu from HS3 to watch, receive pressed button.
    • Speech droid, talk and execute things. Ask status of a device.
    • Send HTML code to watch.
    • Send trigger to app tinyCam Monitor Pro to broadcast webcamerastream to watch. Ex if someone press the doorbell.
    • Confirm screen, send a question to wear with yes/no button, receive result to hs3.
    • Notification messages.
    Attached Files
    Please excuse any spelling and grammatical errors I may make.
    --
    Tasker Plugin / Speech Droid
    Tonlof | Sweden

    #2
    This is going to be VERY useful!
    Bryan
    Software/Hardware: Win10 Pro, HS 3 Pro, HS Touch, Echo, Edgeport/4, Z-Net w/88 Devices, Insteon PLM w/19 Devices, Nest, GC-100-6, W800RF32A, WS-2080 Weather Station (KMADRACU10)
    Plug-in/Scripts: Alexa API, BLBackup, BLGData, BLLED, BLLock, BLRF, BLTVGuide, Blue Iris, BLUPS, Current Cost 3P, DirectTV, FitbitSeer, Insteon, Nest, Pushover 3P, Random, Restart, Tasker, UltraGCIR3, UltraWeatherWU, Z-Wave

    Comment


      #3
      This sounds great.

      Greig.
      Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
      X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
      Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
      Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
      Scripts =
      Various

      Comment


        #4
        Nerdgasm.
        My home is smarter than your honor roll student.

        Comment


          #5
          Really looking forward to this
          HW: HS3 w/ Win8.1 on ASRock C2550d4i. Digi AnywhereUSB, Hubport, Edgeport, UZB, Z-trollers, PLCBUS, SONOS, GC-100, iTach IP2SL, WF2IR, IP2IR, RFXtrx433, Harmony Hubs, Hue, Ademco Vista 128BP, NetAtmo, NetAtmo Welcome

          Google Search for HomeSeer Forum

          Comment


            #6
            Hi, Android Wear is now added to HS3 plugin and projectfiles for Tasker.

            You will need 3:rd app AutoWear. (Recomend to turn off Toasts notifications.)
            When downloading latest HS3 plugin it will install 2 new scriptfiles.
            wear_menu.vb

            Call it it with custom command
            menu=Menu1=:=Button1|Button2|Button3|Button4|Button5
            or script api-call.
            PHP Code:
            hs.PluginFunction("Tasker Plugin""""CustomAPI", New Object() {"Sony Experia Z2""menu=Menu1""Button1|Button2|Button3|Button4|Button5"}) 
            PHP Code:
                    Public Sub Main(ByVal Parms As Object)
                
            'hs.writelog("Wear Menu","Wear:" & Parms)
                Try
                        Dim arr_menu As String()
                        arr_menu = Parms.ToString.Split(":")
                        Dim str_deviceref As String = arr_menu(0)
                        Dim str_menuname As String = arr_menu(1)
                        Dim str_button As String = arr_menu(2)
                        Select Case str_menuname.ToString.Trim
                            '
            This is just an example how you can handle multiple menu's.
                            Case "Menu1"
                                hs.WriteLog("Wear Menu", hs.DeviceName(str_deviceref.ToString) & " Pressed button: " & str_button & " from " & str_menuname)
                            Case "Menu2"
                                hs.WriteLog("Wear Menu",hs.DeviceName(str_deviceref.ToString) & " Pressed button: " & str_button & " from " & str_menuname)
                            Case "Menu3"
                                hs.WriteLog("Wear Menu", hs.DeviceName(str_deviceref.ToString) & " Pressed button: " & str_button & " from " & str_menuname)
                        End Select
                    Catch ex As Exception
                        hs.WriteLog("Wear Menu", "Error: " & ex.Message)
                    End Try
                End Sub 
            wear_confirm.vb

            Call it it with custom command
            confirm=Maindoor=:=Doorbell is ringing, do you want to unlock the main door?

            or api-call.
            PHP Code:
            hs.PluginFunction("Tasker Plugin""""CustomAPI", New Object()  {"Sony Experia Z2""confirm=Maindoor",  "Doorbell is ringing, do you want to unlock the main door?"}) 
            PHP Code:
            Public Sub Main(ByVal Parms As Object)
                
            'hs.writelog("Wear Menu","Wear:" & Parms)
                Try
                        Dim arr_menu As String()
                        arr_menu = Parms.ToString.Split(":")
                        Dim str_deviceref As String = arr_menu(0)
                        Dim str_menuname As String = arr_menu(1)
                        Dim str_button As String = arr_menu(2)
                        Select Case str_menuname.ToString.Trim
                            '
            This is just an example how you can handle multiple menu's.
                            Case "Maindoor"
                                select case str_button
                                    case "%awmessage"
                                    hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " swipe away the screen for " & str_menuname)
                                    case "ok"
                                    hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " pressed the okay button for " & str_menuname)
                                    case "cancel"
                                    hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " pressed the cancel button for " & str_menuname)
                                end select
                            Case "Garagedoor"
                                    select case str_button
                                    case "%awmessage"
                                    hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " swipe away the screen for " & str_menuname)
                                    case "ok"
                                    hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " pressed the okay button for " & str_menuname)
                                    case "cancel"
                                    hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " pressed the cancel button for " & str_menuname)
                                end select
                            case else
                                select case str_button
                                    case "%awmessage"
                                    hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " swipe away the screen for " & str_menuname)
                                    case "ok"
                                    hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " pressed the okay button for " & str_menuname)
                                    case "cancel"
                                    hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " pressed the cancel button for " & str_menuname)
                                end select
                        End Select
                    Catch ex As Exception
                        hs.WriteLog("Wear Confirm", "Error: " & ex.Message)
                    End Try
                End Sub 
            Please excuse any spelling and grammatical errors I may make.
            --
            Tasker Plugin / Speech Droid
            Tonlof | Sweden

            Comment


              #7
              Hi, Android Wear is now added to HS3 plugin and projectfiles for Tasker.

              You will need 3:rd app AutoWear. (Recomend to turn off Toasts notifications.)
              When downloading latest HS3 plugin it will install 2 new scriptfiles.
              wear_menu.vb

              Call it it with custom command
              menu=Menu1=:=Button1|Button2|Button3|Button4|Button5
              or script api-call.
              PHP Code:
              hs.PluginFunction("Tasker Plugin""""CustomAPI", New Object() {"Sony Experia Z2""menu=Menu1""Button1|Button2|Button3|Button4|Button5"}) 
              PHP Code:
                      Public Sub Main(ByVal Parms As Object)
                  
              'hs.writelog("Wear Menu","Wear:" & Parms)
                  Try
                          Dim arr_menu As String()
                          arr_menu = Parms.ToString.Split(":")
                          Dim str_deviceref As String = arr_menu(0)
                          Dim str_menuname As String = arr_menu(1)
                          Dim str_button As String = arr_menu(2)
                          Select Case str_menuname.ToString.Trim
                              '
              This is just an example how you can handle multiple menu's.
                              Case "Menu1"
                                  hs.WriteLog("Wear Menu", hs.DeviceName(str_deviceref.ToString) & " Pressed button: " & str_button & " from " & str_menuname)
                              Case "Menu2"
                                  hs.WriteLog("Wear Menu",hs.DeviceName(str_deviceref.ToString) & " Pressed button: " & str_button & " from " & str_menuname)
                              Case "Menu3"
                                  hs.WriteLog("Wear Menu", hs.DeviceName(str_deviceref.ToString) & " Pressed button: " & str_button & " from " & str_menuname)
                          End Select
                      Catch ex As Exception
                          hs.WriteLog("Wear Menu", "Error: " & ex.Message)
                      End Try
                  End Sub 
              wear_confirm.vb

              Call it it with custom command
              confirm=Maindoor=:=Doorbell is ringing, do you want to unlock the main door?

              or api-call.
              PHP Code:
              hs.PluginFunction("Tasker Plugin""""CustomAPI", New Object()  {"Sony Experia Z2""confirm=Maindoor",  "Doorbell is ringing, do you want to unlock the main door?"}) 
              PHP Code:
              Public Sub Main(ByVal Parms As Object)
                  
              'hs.writelog("Wear Menu","Wear:" & Parms)
                  Try
                          Dim arr_menu As String()
                          arr_menu = Parms.ToString.Split(":")
                          Dim str_deviceref As String = arr_menu(0)
                          Dim str_menuname As String = arr_menu(1)
                          Dim str_button As String = arr_menu(2)
                          Select Case str_menuname.ToString.Trim
                              '
              This is just an example how you can handle multiple menu's.
                              Case "Maindoor"
                                  select case str_button
                                      case "%awmessage"
                                      hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " swipe away the screen for " & str_menuname)
                                      case "ok"
                                      hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " pressed the okay button for " & str_menuname)
                                      case "cancel"
                                      hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " pressed the cancel button for " & str_menuname)
                                  end select
                              Case "Garagedoor"
                                      select case str_button
                                      case "%awmessage"
                                      hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " swipe away the screen for " & str_menuname)
                                      case "ok"
                                      hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " pressed the okay button for " & str_menuname)
                                      case "cancel"
                                      hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " pressed the cancel button for " & str_menuname)
                                  end select
                              case else
                                  select case str_button
                                      case "%awmessage"
                                      hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " swipe away the screen for " & str_menuname)
                                      case "ok"
                                      hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " pressed the okay button for " & str_menuname)
                                      case "cancel"
                                      hs.WriteLog("Wear Confirm", hs.DeviceName(str_deviceref.ToString) & " pressed the cancel button for " & str_menuname)
                                  end select
                          End Select
                      Catch ex As Exception
                          hs.WriteLog("Wear Confirm", "Error: " & ex.Message)
                      End Try
                  End Sub 
              Other custom wear features:
              wearnotification=Doorbell=:=Doorbell is ringing!

              cam=startwear
              (Starts casting your tinyCam to your weardevice)
              (tinyCam Pro needs to be installed.)
              Please excuse any spelling and grammatical errors I may make.
              --
              Tasker Plugin / Speech Droid
              Tonlof | Sweden

              Comment


                #8
                Speechdroid is now also implemented in Wear.

                Start AutoWear Settings, run the wizzard if you don't already have done it.
                Setup Shake, twist your watch twice to start speech regognizion.
                Please excuse any spelling and grammatical errors I may make.
                --
                Tasker Plugin / Speech Droid
                Tonlof | Sweden

                Comment


                  #9
                  I have tinycam working and it can stream to my android wear, and i have tasker working on my phone with the hs3 tasker plugin, but i am not sure what to put as the command in the events page of homeseer to make it stream my tiny cam camera onto my android wear. Any suggestions?

                  I have a task setup in tasker that i can click that will run and send the camera feed to my watch, so really i guess all i need is a way for HS3 to trigger a tasker task?

                  I found the thread that said to put ABC=yourdatawithoutspace=:=Any other text, could be very long. in the device string, and i replaced ABC with my task name, which was Front, but that didnt do anything when i ran it...
                  Last edited by optimatez; September 18, 2015, 04:52 PM.

                  Comment


                    #10
                    Hi optimatez,

                    Check the CAM task under HS3 Addons.
                    This task is based on camera name "Cam 1"

                    Trigger with custom command.
                    cam=startwear
                    (Can also combining with other command in same call. Ex cam=startwear say=:=Motion detected)
                    cam=stopwear

                    Other calls are.
                    cam=single
                    cam=multiple
                    cam=sequence
                    cam=floating
                    cam=motion
                    cam=nomotion
                    cam=audiostart
                    cam=audiostop
                    Please excuse any spelling and grammatical errors I may make.
                    --
                    Tasker Plugin / Speech Droid
                    Tonlof | Sweden

                    Comment


                      #11
                      Strange, but i set everything up and ran the event and nothing happened. I started to get screenshots and log files together, and 4 minutes after the event started, the watch vibrated and the camera loaded. now when i do it the task runs instantly and the camera comes up without delay. odd, but it works!

                      Comment

                      Working...
                      X