I am brand new to this. Just got my Hue lights and Kwikset lock tied in. Are there instructions somewhere for getting my tp-link devices onboard. Any help is appreciated.
I am excited to work on this .
Thanks,
Bryan
I am brand new to this. Just got my Hue lights and Kwikset lock tied in. Are there instructions somewhere for getting my tp-link devices onboard. Any help is appreciated.
I am excited to work on this .
Thanks,
Bryan
Welcome aboard Bryan. If you scroll to the top of this topic and follow the link for the installation instructions you should hopefully find what you need.
New Update Available
The drivers and application code have been updated to version 5.2.0 and are posted on GitHub:
Driver changes:
Application Changes:
Install location: HubitatActive/KasaDevices at master · DaveGut/HubitatActive · GitHub
Installation Instructions and Descriptions: : Home · DaveGut/Hubitat-TP-Link-Integration Wiki · GitHub
Notes:
Unbind Devices: This function removes the device from the Kasa Hub with the following effect:
Bind Devices: Reconnects device to the Kasa Cloud.
Reboot Device: Troubleshooting. Reboots the device (same effect as unplugging and then plugging into power source).
PM me if you have issues.
Just installed and KL50 working without error messages. Thanks for your great work, Dave.
Stress Testing on My C-5 Hub
A user was having a communications error problem on the 5.2 release (explicitly for dimming switch). The result was that I could not resolve the issue. If anyone else is having significant communications WARNING messages from a Kasa Device, please personal message me.
Stress Test: As a part of the troubleshooting, I set up and ran a quick polling stress test on my active hub (attempting to replicate the problem). I felt these results may be interesting to a wider audience. See below for data on the Stress Test.
Below is the configuration of the Hub Under Test (HUT):
WiFi Router: ASUS Blue Cave
Hub: C5
Firmware: 2.2.0.128
Kasa Devices (all running 5.2.0 driver versions)
Non-Kasa Devices
Applications
Version 5.2.1 Release to address some issues:
The entire set has been updated to 5.2.1. Changs are only in the following items:
Application:
EM Multi Plug Driver:
Kasa EM Plug: Update to date handling to avoid using state.currDate.
Version 5.2.0 notes for reference:
Thanks. You mentioning the Hubitat Package Manager forced me to look into it, and I'm glad I did. It's a great app, as is your TP-Link integration. Thanks.
Does anyone have TP-Link switches working with Rule Machine 4.0?
I'm trying to get a TP-Link (HS200) switch to trigger other switches (also HS200).
But what I'm finding is that there's some delay or doesn't trigger at all.
Yes I have them working, but due to their implementation over WiFi, they rely of polling to detect a physical press. So you will have to enable quick polling per device. I have mine at every 5 seconds, which results in a delay of up to 5 seconds, assuming no communication errors, on physical presses.
What is the rule you are trying to implement btw?
Thanks for the info about the polling. Do you notice any network issue if you have the polling set to a low interval?
The rule I'm trying to implement is just getting one switch to trigger others. So if I turn the switch on in my foyer when I arrive, the hallway switches also turn on.
I'm probably not the best guy to ask about networking issues as Dave can attest, but that is a story for another time, but when it did work well for me, like a month ago, 5 seconds did not seem to have an issue.
I asked about the rule, because what you are trying to do might be easier if you use the built-in app called Motion Lighting. It also contains something called Mode lighting inside that app that allows you to turn lights on and off per mode and have a certain switch act as a trigger, this is the documentation for it and see my rule below:
The traffic for a command stream is relatively low (one sent and on received per poll). This is generally not a problem on WiFi performance. Hubitat performance is another thing. See.
Hi Dave!
Thanks for the reply and all your hard work.
I'm primarily using Hubitat to add more Smart integrations with the Kasa switches since the app only allows 3 Smart integrations.
So far it's been working great!
So a 5 sec polling would more affect the Hubitat than my network? Would that be detrimental to the Hub then?
On an average installation, no. The secret is limiting quick polling to as few devices as necessary (one?) and then run for a while.
One hint. The switch attribute has a type of physical or computer. If you only want the other switch to turn on when the device is manually pressed, then the type should be physical in your rule (this came from other users).
Thanks Dave.
I'll give it a try when I get back home.
It took me awhile to realize that the Kasa switches do not "ping" the Hubitat when you physically push the switch, so my Rule wasn't firing.
Thank you so much for this integration. One question. I'm trying to use the MakerApi and Tasker to be able to toggle the plug from my smartwatch.
It seems like the device only supports on/off and doesn't have a toggle, is that correct? This is what I see when I query the device for supported commands:
[{"command":"off","type":["n/a"]},{"command":"on","type":["n/a"]},{"command":"refresh","type":["n/a"]},{"command":"setPollFreq","type":["NUMBER"]}]
If so, how would I go about accomplishing simulating a toggle?
Yes. The device is a switch. No toggle capability. To simulate a toggle, I would use rule machine and a virtual toggle device. You would toggle the device, rule machine would determine current state and turn on or off.
Thank you. I was a little confused because my Iris V2 switch supports toggle.
In any case, I wrote a RM rule to do as you suggested. Since I don't currently have polling enabled, my rule does device refresh and waits for 1 second before determining the current state (in case hubitat is out of sync with the actual state of the switch). It seems to be working correctly.
Thanks for this app. It works superbly!
Will get to it in a few hours....busy right now (which is why I'm on here ! )