Announcement

Collapse
No announcement yet.

Tasker to trigger an event

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

    Tasker to trigger an event

    Few people use Droid Tasker , perhaps you can give me a suggestion on how to do the following:
    I would like to trigger an event (Change thermostat temperature) via Tasker when I'm close to home.

    For individual that do not use tasker, I could trigger an HTTP post or HTTP Get. Could I use these to trigger events or scripts?

    Thanks,
    Aldo

    #2
    I tried so many combinations of HTTP POST in Tasker, but never could get it to work. The issue was the username/password combination for HS Security.
    HS4Pro Running on a Raspberry Pi4
    79 Z-Wave Nodes, 131 Events, 383 Devices
    Z-Wave, UPB, WiFi
    Plugins: EasyTrigger, weatherXML, OMNI, Z-Wave, Tuya, Device History
    HSTouch Clients: 3 Android, 1 Joggler

    Comment


      #3
      I actually found a post on tasker forum
      This requires another android application that is not free titled Email Me Pro . The cost is $2.
      Once installed you must open up Email Me Pro and enter your email settings and enable the send email automatically option.
      Then from within Tasker you can find the E-Mail Me Pro Task under the "Plug-Ins" section. from there you just enter the e-mail address you'd like to e-mail to be sent to, the subject, and the message.

      I use Jon00 Email program to trigger these events. It works great.

      Comment


        #4
        I know you have found a solution, it is possible and I do use tasker with HS quite a bit. It is good to get phone/text notifications through HS before I have even found my phone.

        Unfortunately it was nothing but a complete pain, Tasker as said does not appear to have any ability to do basic authentication which the HS webserver requires. In the end I had to place a php file on a webserver I had which in turn logged into the HS server and forwarded the HTTP request onto my HS server. Not a straightforward solution but does work, hopefully in the future they will update tasker.

        Comment


          #5
          Ad,

          Can we talk more about what you did? I am doing something VERY similar to get images from HS. I setup a basic web server (Tiny Server w/ PHP engine) so that Tasker can request information. Which the PHP in turn requests the same from HS. Which runs Jon00's image creator. I make an image with a lot of information. Tasker then just downloads the image from the webserver and I use Zoom (Couples with Tasker) to display this as a widget on my launcher.

          --Dan
          Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

          Comment


            #6
            Sure, I don't do anything more than get notified when my phone rings/new message/battery level is low/location update, I guess it is possible to do alot more. Ideally it would be nice if tasker could listen on a port as I would like to be able to set my alarm clock on the phone from HS but I digress.

            Four tasks set up in tasker that respond to the above situations. Each task performs a HTTP post on a php file on some webspace I have. When I perform the post I pass through parameters firstly what type of notification it is (phone/message/battery/location) and then in an additional couple of parameters depending on the trigger I pass through things like phone number/message body/location co-ords etc.

            Every day I check just in case my IP address has changed and then in turn upload a simple text file to my webspace just containing the IP.

            When tasker does a HTTP post it in turn reads from the above text file and makes an attempt to log on to my HS server. Then it passes the same parameters in the same format to an asp file in the HS html directory. The asp file then passes it in the same format to a vb.net script which does the magic of firing events/logging messages/locations or whatever.

            It sounds like a longwinded way of doing things but it takes a couple of seconds at most. I did contemplate running a second webserver on my HS PC with no authentication (so tasker went straight to the PC) but I had the webspace sitting doing nothing and figured if the IP changes then it is all handled for me rather than going into each individual tasker task and editing them.

            Sounds like half of what you are doing really, I get info from my phone to HS whereas you look to be going the same way and back again. I have done something semi similar to yourself with basic information with RSS. Created an RSS feed from a script and then uploaded it, had a widget set to read the feed and that worked OK just for daily reminders and stuff.

            Comment


              #7
              Originally posted by mrhappy View Post
              Sure, I don't do anything more than get notified when my phone rings/new message/battery level is low/location update, I guess it is possible to do alot more. Ideally it would be nice if tasker could listen on a port as I would like to be able to set my alarm clock on the phone from HS but I digress.
              You can do that if you are root. OR as I've stated in the past, if HSTouch was a service. Let's not pick that particular scab. lol

              --Dan
              Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

              Comment


                #8
                Originally posted by mrhappy View Post
                I have done something semi similar to yourself with basic information with RSS. Created an RSS feed from a script and then uploaded it, had a widget set to read the feed and that worked OK just for daily reminders and stuff.
                Which widget did you use for this? MinimalistText? I think that and Zoom are my two favorite widgets. I can do just about ANYTHING with them.

                --Dan
                Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

                Comment


                  #9
                  Not to necro-post.. But did you find a way to do this yet ? I use tasker to turn on my lights when I enter the driveway just using http:get

                  Comment

                  Working...
                  X