Announcement

Collapse
No announcement yet.

TPLink Smarthome Plugin

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    TPLink Smarthome Plugin

    Features
    • Use a tplink device like any other Homeseer device
    • Turn on/off the led for SmartPlugs via an event action
    • Change colors of a color Smartbulb via an event action
    • Chart out the energy usage for HS110, HS107 and HS300 devices

    Setup:
    1. Discover the tplink devices using the setup page (network discovery or Kasa credentials)
    2. The discover uses a broadcast message which the tplink devices sometimes fail to respond so use the individual IP text box for those.
    3. In the setup page select any additional energy monitoring devices you want created (for HS110, HS107 and HS300 devices)
    4. Go to the config for the devices created by the plugin and choose the polling priority (default is 2 minutes)
    James

    Running HS 3 on Win10 .

    #2
    I'm glad to see it was finally published!

    Comment


      #3
      Hi Jasv, I just wanted to follow-up and tell you that with 19.4.18.1, everything now seems to be dialed-in. I have my HS110 monitoring our washing machine, and we really like hearing the notification when the cycle is done.

      The way I implemented it is if the watts exceeds a threshold, I set a flag indicating the washer is running. If the Watts drops below the threshold and the flag indicated it was running, it starts a timer. If the watts goes back up within a minute, I reset the timer to 0 because the washer just paused between portions of the cycle. If it goes more than 2 minutes without exceeding the threshold, the timer triggers an event to notify us the washer is done and clears the timer and run flag. I plan on doing the same with our dishwasher to ensure the hot water recirculation is running to supply hot water. Thanks!

      Comment


        #4
        Originally posted by dzee View Post
        Hi Jasv, I just wanted to follow-up and tell you that with 19.4.18.1, everything now seems to be dialed-in. !
        Great news. Thanks for the feedback.

        James

        Running HS 3 on Win10 .

        Comment


          #5
          BTW, I've spent the entire weekend trying to write a plug-in using C# looking at the Moskus sample in VB, but based on Alex Dresko's HSPI Framework. I'm a decent C# developer and have written both websites and Windows desktop applications and plenty of API implementations, but you have my respect for figuring out how to get TPLink into a HS3 plugin. Wow, they don't make this easy.

          Comment


            #6
            Originally posted by dzee View Post
            BTW, I've spent the entire weekend trying to write a plug-in using C# looking at the Moskus sample in VB, but based on Alex Dresko's HSPI Framework. I'm a decent C# developer and have written both websites and Windows desktop applications and plenty of API implementations, but you have my respect for figuring out how to get TPLink into a HS3 plugin. Wow, they don't make this easy.
            Thank you. I appreciate that.
            James

            Running HS 3 on Win10 .

            Comment


              #7
              Really cool plugin, wish I could get it on my SEL. Is there any chance you would make it Linux compatible?

              Comment


                #8
                Originally posted by Daniel L View Post
                Really cool plugin, wish I could get it on my SEL. Is there any chance you would make it Linux compatible?
                I have plenty of Linux experience and it would be interesting to have it run under Linux. I have a busy couple of weeks but I will take a look later in the month.
                James

                Running HS 3 on Win10 .

                Comment


                  #9
                  Originally posted by jasv View Post

                  I have plenty of Linux experience and it would be interesting to have it run under Linux. I have a busy couple of weeks but I will take a look later in the month.
                  Cool, looking forward to useing it!
                  Thanks.

                  Sent from my SM-G950U using Tapatalk

                  Comment


                    #10
                    Originally posted by Daniel L View Post
                    Really cool plugin, wish I could get it on my SEL. Is there any chance you would make it Linux compatible?
                    It is now available on Linux. I've done basic testing and it seems to be working as expected. I don't have this in the instructions but if you are using Kasa to discover you need to be on the same network as the devices (meaning you can't be doing using your web browser from outside of your home).
                    James

                    Running HS 3 on Win10 .

                    Comment


                      #11
                      Originally posted by jasv View Post

                      It is now available on Linux. I've done basic testing and it seems to be working as expected. I don't have this in the instructions but if you are using Kasa to discover you need to be on the same network as the devices (meaning you can't be doing using your web browser from outside of your home).
                      Cool. I'll give it a spin on my Linux system.

                      Comment


                        #12


                        Originally posted by jasv View Post

                        It is now available on Linux. I've done basic testing and it seems to be working as expected. I don't have this in the instructions but if you are using Kasa to discover you need to be on the same network as the devices (meaning you can't be doing using your web browser from outside of your home).
                        Thanks a million! It's working great. I think this is a valuable plugin since Kasa light switches are often on sale for half the price of your typical smart switch.

                        Sent from my SM-G950U using Tapatalk

                        Comment


                          #13
                          Does this plugin require to have the homeseer machine and tp-link smart plugs to be on the same network/subnet, right?

                          In my case I have a separate subnet only for IoT devices (including tp-link devices) and looks like the plugin could not find any (I tried with the tp-link plug ip too) from a different subnet even if I have provided access rule in pfsense and could see that my homeseer ip (in my case a raspberry pi4) is reaching tp-link device ip in a different subnet.
                          Appreciate to have this option to control the smart plugs from homeseer, just wonder how others are considering if it's OK to have those IoT devices on same network/subnet as your homeseer machine?

                          Thanks

                          Comment


                            #14
                            Originally posted by Ionut View Post
                            Appreciate to have this option to control the smart plugs from homeseer, just wonder how others are considering if it's OK to have those IoT devices on same network/subnet as your homeseer machine?

                            Thanks
                            Have you tried using the Kasa option rather than the discover option? I haven't looked at the code to be sure but I think that might work.
                            I don't see any reason to keep the IOT devices on a separate subnet but I am not a network security specialist so I don't know if there is an exposure or not.
                            James

                            Running HS 3 on Win10 .

                            Comment


                              #15
                              Originally posted by jasv View Post

                              I don't see any reason to keep the IOT devices on a separate subnet but I am not a network security specialist so I don't know if there is an exposure or not.
                              May relate to the recent FBI article(s).... eg: https://www.zdnet.com/article/fbi-re...arate-network/

                              Comment

                              Working...
                              X