This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
[ SUBMITTED ] TP Link HS100/HS110/HS200 app
Hi all,
I have submitted an app controlling the TP Link (wifi) smartplugs HS100 (no energy monitoring) and HS100 (with energy monitoring). The HS200 will probably work as well, it would be great if someone with could verify.
The app can be found here: https://github.com/abaretta/nu.baretta.tplink.
Currently supported triggers/conditions/actions:
The default for the 'socket' class:
Triggers: 'turned on / off'
Conditions: 'is on / off'
Actions: 'on / off / toggle'
In addition to this I have added actions to switch the LED on and off.
Mobile capabilities:
Turn on / off
View energy monitoring (total, power, current and voltage)
TODO:
While updating the README I realized I forgot to look at implementing flow logic based on the energy usage, I'll look into that next.
The TP Link API offers many other hooks and possibilities as well, see: https://github.com/abaretta/nu.baretta.tplink/blob/master/tplink-smarkthome-commands.txt (the result of the very 'grundig' reverse engineering by the people at https://www.softscheck.com/en/reverse-engineering-tp-link-hs110, ). I might look at adding a configuration option to enable/disable the cloud functionality (accessed through the TP Link 'Kasa' app) by changing the cloud URL. While the Kasa app isn't bad, with Homey you don't need it, and you may want to remove this connection to the cloud.
There's a function in the hs100-api to discover plugs, that would be a good feature to add as well.
Regards, Anne
I have submitted an app controlling the TP Link (wifi) smartplugs HS100 (no energy monitoring) and HS100 (with energy monitoring). The HS200 will probably work as well, it would be great if someone with could verify.
The app can be found here: https://github.com/abaretta/nu.baretta.tplink.
Currently supported triggers/conditions/actions:
The default for the 'socket' class:
Triggers: 'turned on / off'
Conditions: 'is on / off'
Actions: 'on / off / toggle'
In addition to this I have added actions to switch the LED on and off.
Mobile capabilities:
Turn on / off
View energy monitoring (total, power, current and voltage)
TODO:
While updating the README I realized I forgot to look at implementing flow logic based on the energy usage, I'll look into that next.
The TP Link API offers many other hooks and possibilities as well, see: https://github.com/abaretta/nu.baretta.tplink/blob/master/tplink-smarkthome-commands.txt (the result of the very 'grundig' reverse engineering by the people at https://www.softscheck.com/en/reverse-engineering-tp-link-hs110, ). I might look at adding a configuration option to enable/disable the cloud functionality (accessed through the TP Link 'Kasa' app) by changing the cloud URL. While the Kasa app isn't bad, with Homey you don't need it, and you may want to remove this connection to the cloud.
There's a function in the hs100-api to discover plugs, that would be a good feature to add as well.
Regards, Anne
Comments
The app has been submitted, waiting for approval by Athom. It will then appear in the App store.
dat is alles wat ik kan in Engels maar toch bedankt
Another question. Do you have plans on supporting the lightbulbs?
I can still see the app as normal in the developer dashboard, I will ask Athom if they can have a look.
About the lightbulbs, I don't own any, I'll have a look.
I forgot to include a check on the model of the smart plug, I have added this for the next release. I think I will add that and then promote it to the stable channel.
I want to add some additional features relating to autodiscovery and dynamic IP's, but I need to purchase a second smart plug to properly work out the details for that.
BTW, the TP-link lightbulbs look good. They use the same API with some light-specific commands, it makes sense to include them in this app. Now if only one webshop had both the HS110 and LB130 in stock at a good price...
Update: I have submitted an update (v.0.0.4) with some minor tweaks to the stable channel. The autodiscovery now works for both new and previously discovered plugs, but only for the model the driver is for, ie. the HS110 driver will not autodiscover HS100 plugs and vice versa.