Update to 4.3 now available. See note at root of this post.
Update to 4.3 now available. See note at root of this post.
Note on Energy Monitor Functions in HS-110 and HS-300
I have added the below note to the top-level:
The data presented in the Hubitat interface will NOT match that in the Kasa App:
Power: Should be the same
Energy: Should be the same; however, if a preference has been run, will not match.
7DayAverage, 7DayTotal, 30DayAverage, 30DayTotal: not provided. Instead ThisMonth and LastMonth equivalents are provided.
Reason: The return from the devices is truncated when the total characters exceed 1024. When this occurs, the remaining data is incomplete and can not be read. I have also tried the Hubitat "Raw TCP" and "Protocol.RAW_LAN" and confirmed that neither of these work with the HS-300 EM Multi-plug.
Am I reading this correctly, that this app/integration is able to provide energy monitoring for the Hs100, which it doesn't natively?
I have the HS110 monitoring my gas dryer. The 30 minute polling was not specific enough for me, so I appreciate the ability to change this parameter. Is there a way with Rule Manager to change the polling to 5 minutes when drawing power, then revert to 30 minutes when not drawing power? Or might this considered as a future feature for your code? Thanks for your great work!
Also in Aust. Got 5 HS110's today. I'm setting them up, but getting errors. I've succesfully added them to wifi network, and asigned static IP. When I add to HE though, errors and warnings. I've added in the app and the right driver.
This is the first TP Link device I've installed. I have four more to do.
Edit: FYI, the app finds the plug, but when I select the plug, it errors with the above error. No device is added to HE.
EDIT 2: dont worry, I didnt realise what EM stood for. Now I do. Stupid me.
But, it's not updating the on/off/status/etc.
It seemed to fix itself after 10 mins or so. Thanks for the app!
How do I get energy monitoring for the HS110's. I've got the right driver, and it's all connected to HE, however, it only has on/off/refresh. Nothing about energy monitoring.....
Edit: I'm still getting a stack of those timeout's in the post 2 above when I add new switches into the HE mix.
Timeout errors: These are due to a rather cumbersome (but unavoidable) discovery method. Since Hubitat does not support UDP discovery, I must poll the LAN IP:9999 addresses. If successful, then I data is returned and I parse that data. If unsuccessful, I get the above. This only occurs when you run the app, and then one-time.
No EM Data: You may have hooked to the incorrect file (there are two for two different devices). The correct file link is " TP-LinkEM-Plug(Hubitat).groovy".
Documentation: Installation instructions created to add note on UDP errors and also correct fild identifier for the EM plug.
If you still have a problem, I will look further at the code to see what is going on.
Hey Dave, I do have the right driver in Hubitat. Something else is going on I suspect. I've now got two identical versions of the hubitat energy monitor driver in HE.
Uninstall and start over tomorrow when I update the EM code.
I tried to create an automated function. Too many chances for user-induced, hard to recover errors, in the driver. It might be a future release.
PS: I could expose the setRefreshRate function as a custom command. You may be able to control that through the rule machine. You would have to try. Interested?
Using Rule Machine would be just fine. I basically would crate a trigger that says when dryer starts drawing power, SetRefreshRate to 1, when Dryer stops drawing power, setRefreshRate to 30. I would be happy to test for you. Let me know!
I should have something today or tomorrow. It will be custom and not in general distribution until you test.
Update to Energy Monitor Plug Driver (for HS-110). An update is on the server removing some errors and providing access to refresh interval from external programs. Follow the instructions below to assure update is successful
For each HS-110 device, Follow the below in the order stated:
Note: I have created the custom command "Set Refresh Interval" to replace the previous preference entry. Two advantages:
Problems - contact me.
This helped me out too, thanks. First post after getting Hubitat. I got several Caseta, TP-Link, and z-wave devices working in less than an hour since unboxing. The straightforward methods of setup and use is incredibly refreshing after deciding to try to migrate from a more challenged platform.
TP-Link Device Local LAN Only Option
The Kasa App no longer supports Local LAN Only as a user option. If the device was Local Lan Only when the app was updated, the "remote Access" option remained in the Preferences; however, once selected, the option disappeares.
Fix: New App Kasa Devices Local/Cloud Manager. This new app is in final test by me. provides the following:
Probably available at start of month.
I just got a Hubitat so I could be making just a dumb mistake, I'm trying to add a couple of HS105s, one HS100, and two HS300s. Loading the app only takes about one minute, but no error messages are given. On the manager page to add devices, no devices have been found. Any help would be appreciated. I have copied over the device drivers.
I guess I should add that these are devices I've already connected to my wifi system and use the kasa and alexa apps with.
The only guess I have is that they are not on the same IP segment as your Hub. I tried with the app just now and all 17 were found the first time. I have a series of HS-105, HS-107, HS-300, plus bulbs. Ran a fresh copy (renamed app) and stopped at the install page.
All error messages would be in the logs; however, you should ignore the messages (a lot) in the first line below. The second line is a sample of a success.
Things to check:
Please tell me if you resolve. I could load the next version of the integration early for you to try. It is fully tested, just waiting time to cure in my home environment (no errors yet). But, If you can not even discover the devices with this driver, then something is wrong with basic communications (outside the realm of the integration application).