KASA Integration Question

I see this page Kasa Integration ... and I am concerned about my Kasa integration. My switch reliability is going down. How can I tell if I am using thee Kasa Built-In App or the developer code (I know that I installed it ... but ... it's been a minute)? I have Kasa Drivers and apps code installed and my apps window shows:

If I am using the developer code, even though this page Kasa Integration states that I can only use one app at a time, can I install the Kasa devices to built-in app and then select Migrate Kasa devices to built-in app.

Otherwise, what is the best path forward to get the most reliable installation/integration?

You are currently using the community app (user).

The apps are exclusive (you can run both); however, you can not install the devices twice. They use the same DNI and a second install will fail.

If you want to go to the built-in app you will have to removel from the community then install in the community, If you have a few devices - no big deal. A lot of devices - more work.

Both installations use the SAME code, so they currently have the same reliability.

Adding to the above:

That is not the current docs site (though you did find one page where this note was not added :smiley: ). Use docs2.hubitat.com instead, which is where any current link in the UI should take you. This page in particular is here: Kasa Integration | Hubitat Documentation

I'm not sure if this option is still available; it was at one time, but I know some people had problems, and I'm not sure if it was brought back (or if the problems were resolved either way).

Since the code is basically the same between the two, if you are having problems with one, I would not expect switching to another to fix that on its own. I would recommend looking into the problem.

Sharing more details about your setup and the specific problems would be good. To name one possibility, it's normally recommended to set a "static" IP address on the Kasa devices (or really a DHCP reservation on your router to create the same outcome), to name one possibility. General hub troubleshooting may also help: How to Troubleshoot Apps or Devices | Hubitat Documentation

Of course, If you have error logs or data on the reliability problem, then we would need that. One thing you can do is (in Preferences) set Reboot device and save preferences. This will clear any issues within the device. You may consider going to the built-in to get a clean install.

Again, with issues we need logs or something that points to the problem.

Other issues encoundered not related to the app/driver:

a. not having Static IP (DHCP Reservations) address set in your router.
b. An over-crowded router. Depending on the model, some older, inexpensive routers can only effectively handle 30 or so devices.

Dave, Robert, Thanks for the quick replies. All good advice.

Overall then, good news with respect to my installation.

I used to have more static IPs but today I seem to be limited by the recent install of the AT&T fiber gateway which has limited static addresses ... I used to have the KASA switches as static on my old personal router, but I can't do that today (without changing out hardware).

In terms of reliability, some of the switches do not respond occasionally. I will set Hubitat debugging on ... but I was not considering it a Hubitat problem. I'll see what I can find.

I did start adding delays between switching the switches, hoping it was a WiFi interference problem ... but that has not resolved the issue.

Run the Installation application. That will update the IP addresses in Hubitat to current. On a newer router, that may solve the issue (they don't change addresses as readily) - so it may solve the issue.

Then, talk to AT&T about your router. There should be ways to set up DHCP (static) addresses on the router.

djgutheinz, I probably wasn't clear. I have DHCP static addresses set up on the gateway ... but the BGW320-500 only allows 14 DHCP static assignments. With a alarm system, server, FireTV, thermostat, water heater, amplifier, doorbell, etc. etc., connected as static DHCP ... there are just not enough static DHCP addresses for my 10+ Kasa devices.

I am interested in the comment referring to setting IP address "to current" ... It seems like Hubitat knows the IP addresses. What I mean by unreliable is for example, I press my remote once and two lights come on ... I press it again and only one light goes off ... I press it again and both lights will come/be on. So it seems to me that Hubitat knows the IP address (unless it dynamically finds and resets the IP address every time it switches ... I hope not). So the reliability issue I am chasing is WiFI interference ... but I gotta admit ... it's a longshot.

Just in case it's a coding problem, here is the current code. I started toggling both lights (but they got out of sequence when the shelf lights failed to come on). I changed to the IF statement checking for ON/OFF. And now I am delaying the Self lights to see if it delaying the command helps (which it hasn't yet).

Of course, under test the lights did not fail ... but here are a few on/off sequences ... no errors noted.

dev:1802023-11-16 06:55:27.099 PMinfoShelf Lights 6.6.0: setSysinfo: [switch:off]

app:3732023-11-16 06:55:26.951 PMinfoDelay Over: Off: Shelf Lights

dev:1812023-11-16 06:55:26.535 PMinfoTheater Standard Light 6.6.0: setSysinfo: [switch:off]

app:3732023-11-16 06:55:26.448 PMinfoAction: END-IF

app:3732023-11-16 06:55:26.421 PMinfoAction: Off: Shelf Lights --> delayed: 0:00:00.5

app:3732023-11-16 06:55:26.393 PMinfoAction: Off: Theater Standard Light

app:3732023-11-16 06:55:26.390 PMinfoAction: ELSE (do actions)

app:3732023-11-16 06:55:26.388 PMinfoAction: On: Shelf Lights --> delayed: 0:00:00.5 (skipped)

app:3732023-11-16 06:55:26.385 PMinfoAction: On: Theater Standard Light (skipped)

app:3732023-11-16 06:55:26.382 PMinfoAction: IF (Theater Standard Light(on) is off(F) [FALSE]) THEN (skipping)

app:3732023-11-16 06:55:26.363 PMinfoEvent: RC-HT-RGBGenie pushed 3

dev:1802023-11-16 06:55:21.672 PMinfoShelf Lights 6.6.0: setSysinfo: [switch:on]

app:3732023-11-16 06:55:21.525 PMinfoDelay Over: On: Shelf Lights

dev:1812023-11-16 06:55:21.125 PMinfoTheater Standard Light 6.6.0: setSysinfo: [switch:on]

app:3732023-11-16 06:55:21.031 PMinfoAction: END-IF

app:3732023-11-16 06:55:21.028 PMinfoAction: Off: Shelf Lights --> delayed: 0:00:00.5 (skipped)

app:3732023-11-16 06:55:21.026 PMinfoAction: Off: Theater Standard Light (skipped)

app:3732023-11-16 06:55:21.023 PMinfoAction: ELSE (skipping)

app:3732023-11-16 06:55:20.991 PMinfoAction: On: Shelf Lights --> delayed: 0:00:00.5

app:3732023-11-16 06:55:20.962 PMinfoAction: On: Theater Standard Light

app:3732023-11-16 06:55:20.959 PMinfoAction: IF (Theater Standard Light(off) is off(T) [TRUE]) THEN

app:3732023-11-16 06:55:20.943 PMinfoEvent: RC-HT-RGBGenie pushed 3

dev:1802023-11-16 06:55:12.726 PMinfoShelf Lights 6.6.0: setSysinfo: [switch:off]

app:3732023-11-16 06:55:12.576 PMinfoDelay Over: Off: Shelf Lights

dev:1812023-11-16 06:55:12.168 PMinfoTheater Standard Light 6.6.0: setSysinfo: [switch:off]

app:3732023-11-16 06:55:12.080 PMinfoAction: END-IF

app:3732023-11-16 06:55:12.048 PMinfoAction: Off: Shelf Lights --> delayed: 0:00:00.5

app:3732023-11-16 06:55:12.021 PMinfoAction: Off: Theater Standard Light

app:3732023-11-16 06:55:12.019 PMinfoAction: ELSE (do actions)

app:3732023-11-16 06:55:12.016 PMinfoAction: On: Shelf Lights --> delayed: 0:00:00.5 (skipped)

app:3732023-11-16 06:55:12.013 PMinfoAction: On: Theater Standard Light (skipped)

app:3732023-11-16 06:55:12.011 PMinfoAction: IF (Theater Standard Light(on) is off(F) [FALSE]) THEN (skipping)

app:3732023-11-16 06:55:11.994 PMinfoEvent: RC-HT-RGBGenie pushed 3

app:3732023-11-16 06:55:07.740 PMinfoDelay Over: Off: Shelf Lights

app:3732023-11-16 06:55:07.235 PMinfoAction: END-IF

app:3732023-11-16 06:55:07.202 PMinfoAction: Off: Shelf Lights --> delayed: 0:00:00.5

app:3732023-11-16 06:55:07.174 PMinfoAction: Off: Theater Standard Light

app:3732023-11-16 06:55:07.171 PMinfoAction: ELSE (do actions)

app:3732023-11-16 06:55:07.168 PMinfoAction: On: Shelf Lights --> delayed: 0:00:00.5 (skipped)

app:3732023-11-16 06:55:07.165 PMinfoAction: On: Theater Standard Light (skipped)

app:3732023-11-16 06:55:07.162 PMinfoAction: IF (Theater Standard Light(on) is off(F) [FALSE]) THEN (skipping)

app:3732023-11-16 06:55:07.143 PMinfoEvent: RC-HT-RGBGenie pushed 3

app:3732023-11-16 06:55:06.232 PMinfoDelay Over: Off: Shelf Lights

app:3732023-11-16 06:55:05.999 PMinfoAction: END-IF

app:3732023-11-16 06:55:05.401 PMinfoAction: Off: Shelf Lights --> delayed: 0:00:00.5

app:3732023-11-16 06:55:04.910 PMinfoAction: Off: Theater Standard Light

app:3732023-11-16 06:55:04.907 PMinfoAction: ELSE (do actions)

app:3732023-11-16 06:55:04.905 PMinfoAction: On: Shelf Lights --> delayed: 0:00:00.5 (skipped)

app:3732023-11-16 06:55:04.902 PMinfoAction: On: Theater Standard Light (skipped)

app:3732023-11-16 06:55:04.898 PMinfoAction: IF (Theater Standard Light(on) is off(F) [FALSE]) THEN (skipping)

app:3732023-11-16 06:55:04.880 PMinfoEvent: RC-HT-RGBGenie pushed 3

dev:1802023-11-16 06:54:19.933 PMinfoShelf Lights 6.6.0: setSysinfo: [switch:on]

app:3732023-11-16 06:54:19.784 PMinfoDelay Over: On: Shelf Lights

dev:1812023-11-16 06:54:19.374 PMinfoTheater Standard Light 6.6.0: setSysinfo: [switch:on]

app:3732023-11-16 06:54:19.314 PMinfoAction: END-IF

app:3732023-11-16 06:54:19.311 PMinfoAction: Off: Shelf Lights --> delayed: 0:00:00.5 (skipped)

app:3732023-11-16 06:54:19.309 PMinfoAction: Off: Theater Standard Light (skipped)

app:3732023-11-16 06:54:19.306 PMinfoAction: ELSE (skipping)

app:3732023-11-16 06:54:19.255 PMinfoAction: On: Shelf Lights --> delayed: 0:00:00.5

app:3732023-11-16 06:54:19.201 PMinfoAction: On: Theater Standard Light

app:3732023-11-16 06:54:19.197 PMinfoAction: IF (Theater Standard Light(off) is off(T) [TRUE]) THEN

app:3732023-11-16 06:54:19.181 PMinfoEvent: RC-HT-RGBGenie pushed 3

dev:1802023-11-16 06:53:50.917 PMinfoShelf Lights 6.6.0: setSysinfo: [switch:off]

app:3732023-11-16 06:53:50.767 PMinfoDelay Over: Off: Shelf Lights

dev:1812023-11-16 06:53:50.345 PMinfoTheater Standard Light 6.6.0: setSysinfo: [switch:off]

app:3732023-11-16 06:53:50.262 PMinfoAction: END-IF

app:3732023-11-16 06:53:50.230 PMinfoAction: Off: Shelf Lights --> delayed: 0:00:00.5

app:3732023-11-16 06:53:50.201 PMinfoAction: Off: Theater Standard Light

app:3732023-11-16 06:53:50.198 PMinfoAction: ELSE (do actions)

app:3732023-11-16 06:53:50.196 PMinfoAction: On: Shelf Lights --> delayed: 0:00:00.5 (skipped)

app:3732023-11-16 06:53:50.193 PMinfoAction: On: Theater Standard Light (skipped)

app:3732023-11-16 06:53:50.190 PMinfoAction: IF (Theater Standard Light(on) is off(F) [FALSE]) THEN (skipping)

app:3732023-11-16 06:53:50.172 PMinfoEvent: RC-HT-RGBGenie pushed 3

Wifi Ver 6 can sometimes interferes with 2.4 GHz signals. I have wifi 6 disabled on my 2.4 ghz wifi network. When an error occurs, you can check the IP address that Hubitat is set to in the data section at the bottom of the device's edit page. This can be compared to that on your router,

See bottom line on my ASUS Router screen below.