[DEPRECATED] Kasa Plug, Switch, and Bulb integration

Glad it is working OK and that the instructions helped. As you may guess, complex LAN structures (like yours) can have issues and that is why the "static IP" address is recommended.

As far as the other problem: It is a issue with the built-in app migration function.

  • When you reboot, the built-in app looses (oprhans) the migrated devices. Your devices were no longer children of the application.
    • There is essentially no impact day-to-day operations of the devices.
    • The work-around is to remove and re-install the devices. BUT THIS IS NOT NECESSARY except in very rare circumstances.
  • The issue does not impact devices installed with the built-in app (like your EP40 and HS100).

Is there a way to tell which version of the app was used to create the devices? I seem to see other devices showing up as 'new' now.

I receive the following when trying to add two new plugs with the built in Kasa integration.
I do still have some devices on the 3rd party integration and get a similar error.

Error: No signature of method: davegut_KasaIntegration.prodVer() is applicable for argument types: () values: [] Possible solutions: println(), println(), grep()

Any ideas?

Need this fix to stop the HS103 traces in 2.3.4.115. Any idea when it will be released?

If you check the logs I think you'll see that the device already exists (duplicate IP address.) That was the case for me and I deleted the device and re-added. I also set all 18 of my Kasa devices to have static IP addresses. Sounds the same as my issue above ^^.

I apologize, not too saavy with setting custom attributes.

I am attempting to set pollInterval to 1 minute within a RM rule when a plug turns on, and then after set time change it back to 5 minutes. What am I setting as the parameter type and string value.

Is it string and string value the value is X amount in seconds or minutes?

TYIA.

It is exactly the wording in the setPollInterval dropdown on the devi;s edit page. In your case 1 minute and 5 minutes.

I just got a Kasa KP115, but the HE Kasa app can't find my device. Here's what I did:

  1. Install Kasa app on iPhone
  2. Discover and connect KP115 for wifi network and updated firmware
  3. Tested KP115 in Kasa app and it responds
  4. Added the built-in Kasa HE app and ran discovery. No plug was found.
  5. Tried community Kasa app with same failure
  6. Tried discovery by IP address (looked up in DHCP server), and it failed

Manual discovery device log entry:
manualGetDevices: A Kasa device was not detected at 10.13.2.123

Ideas? Everything is a on a flat network (10.13.2.x). Running latest HE firmware.

I also ran a ping test from the Kasa app and used the KP115 IP as the non-Kasa device and it responds:

nonKasaDevice : [ip:10.13.2.123, min:5.994, max:12.207, success:100]

BTW, I have a HOOBS device and the TPLink plugin detects and can control the KP115 just fine. But I want the KP115 directly in HE.

Thanks for your reply. :beers:

Using the community app, I need you to run the app again and capture the logs. Send these to me via a Private Message (this is accessible by clicking my icon at the top-left of this message. Instructions

Open a log window
Open the App
Set debugLogging to TRUE (blue)
Run the standard discovery.
copy the logs AS TEXT and PM to me.

Also, provide me with the IP address of you Hub.

Finally, read the installation instructions. It gives some other options for discovery when all else fails (i.e., cloud installation). These can be accessed via a link in the Help screen for the app (accessed from upper right of the app).

That was it. I had forgotten I used two of the plugs for something else temporarily and did not remove them. Remembered when I saw your response. We are back in business. Thanks!!!

2 Likes

@djgutheinz Help I broke something. :frowning:

Awhile back I had asked about re-ip'ing devices to a new network/subnet. I moved a couple this way (Remove from kasa app, re-add to new network under same name, scan for devices in Kasa integration, check the device I change, etc) and worked fine.

I haven't had a chance to move the rest of my devices, but something changed recently and I'm getting a error when I try now. Here's the log entries with logging on.

I'm guessing I can't do it this way anymore and need to remove the device from hubitat then re-add it? Thinking this is the case I was going to make a virtual switch as a placeholder and use the swap device in apps tool but noticed it doesn't work with any of my kasa devices. :frowning:

app:8622022-12-03 01:28:41.161 PMerrorgroovy.lang.MissingMethodException: No signature of method: davegut_KasaIntegration.prodVer() is applicable for argument types: () values: []
Possible solutions: println(), println(), grep() on line 336 (method addDevStatus)
app:8622022-12-03 01:28:41.144 PMinfoKasaInt: addDevStatus
app:8622022-12-03 01:28:38.135 PMwarnKasaInt: addDevice: [status:failedToAdd, label:Testplug1, driver:Kasa Plug Switch, ip:10.40.40.106, errorMsg:java.lang.IllegalArgumentException: A device with the same device network ID exists, Please use a different DNI]
app:8622022-12-03 01:28:38.107 PMinfoKasaInt: addDevices: [selectedDevices: [005F67B1647B]]

Note this is with the built in version of the kasa integration.

The original device is still in Hubitat. The message says a device with the same DNI already exists.

Post 1916 is where we discussed it before.

But the weird thing is this worked a couple weeks ago.

Can you see any other way to update the IP of the device in hubitat without totally blowing it away and all the automations tied to them?

Even if it means migrating back to the community app or something?

I believe the design of the app will cover this. Put the device at the new IP/Port and go to the app and discover either on the new segment or as a manual install. The Software usually updates the IP / port on all devices if they have changed. (Never tested across segments since I do not use these segments.

Discovering on the new segment is where it pukes with the error that I got from the logs.

The weird thing is if I do the connectivity test, it shows the device on the new IP, but when you look at the actual device it's still the old one.

I didn't try the manual option but will when I get home.

No luck using the manual method to get it to update either...

From the app interface I get this:

An unexpected error has occurred trying to load the app. Check Logs for more information.

Error: No signature of method: davegut_KasaIntegration.prodVer() is applicable for argument types: () values: [] Possible solutions: println(), println(), grep()

And here's the debug output

...
app:8622022-12-03 08:29:05.332 PMerrorgroovy.lang.MissingMethodException: No signature of method: davegut_KasaIntegration.prodVer() is applicable for argument types: () values: []
Possible solutions: println(), println(), grep() on line 336 (method addDevStatus)
app:8622022-12-03 08:29:05.314 PMinfoKasaInt: addDevStatus
app:8622022-12-03 08:29:02.306 PMwarnKasaInt: addDevice: [status:failedToAdd, label:TestPlug, driver:Kasa Plug Switch, ip:10.40.40.106, errorMsg:java.lang.IllegalArgumentException: A device with the same device network ID exists, Please use a different DNI]
app:8622022-12-03 08:29:02.280 PMinfoKasaInt: addDevices: [selectedDevices: [005F67B1647B]]
app:8622022-12-03 08:28:55.392 PMwarnKasaInt: manualGetDevices: Kasa device already assigned to 10.40.40.106
app:8622022-12-03 08:28:55.388 PMinfoKasaInt: manualGetDevices: [segment: 10.40.40, addresses: [106], port: 9999]
app:8622022-12-03 08:28:55.387 PMdebugKasaInt: addDevicesPage: [scan: null]
app:8622022-12-03 08:28:52.398 PMinfoKasaInt: manAddDevicesPage
app:8622022-12-03 08:28:44.887 PMinfoKasaInt: starting Kasa Integration
...

Community integration or have you migrated to the built-in app? Either way:

  1. Open the app information page (go to the hubitat apps and click the
    image to the left of the Kasa Integration).
  2. Go to the bottom of the page. It will list child devices.
  3. If your device is NOT on this list, it has been orphaned. Your only option to change is to remove and then reinstall the device.
1 Like

EXISTING USERS of the Community Integration:

I can't emphasize enough that you should NOT migrate to the built-in app at this time. There is an issue where your devices will be orphaned from the built-in app after the migration and any subsequent Hub reboot.

  1. Normal (day-to-day) LAN operations are not impacted.
  2. CLOUD operations will no longer work.
  3. IP and Ports will not be able to be updated (this is handled by the app).
2 Likes

I got everything moved over. I ended up changing the DNI on the old device and adding OLD to the name in hubitat, rediscovering it with the new IP then moved all the in use by stuff over, then removed the old orphaned device.

Hopefully that doesn't break/hurt anything. Everything seems functional, and all devices show Installed: Yes in the integration.

Lastly, should the KP200 outlets be using the Plug Switch driver, or the Multi Plug driver? The old ones were multi, but when they got rediscovered they are using the plug switch one.

1 Like