openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.86k stars 3.58k forks source link

[Tp-Link] My Feature request is to support the EP25 #13178

Closed hotelzululima closed 2 years ago

hotelzululima commented 2 years ago

On OpenHAB3 looking through the supported items for this binding I find no support for the EP25 whose monitoring capability suggests its an updated version of the EP125 in a slimline case.

Wondering what the difficulty level is(have some java experience long ago will try to add but given my aged brain dont count on it).

Any plans to add these 10$ sensor/outlets?

hotelzululima commented 2 years ago

it looks as if I could simply copy & relabel the code representing with a new id on same(and possibly some other minor changes.. have loaded into eclipse(NOT my fav IDE but then I prefer shell prompts etc :) 8x ep25 will be here in a couple hours so will build code now and try then(havent touched JAVA since it was OAK and internal to goslings team at sun, so this should be interesting)

hotelzululima commented 2 years ago

no sure I have to do anything just yet.. may b closing this down as already supported

hotelzululima commented 2 years ago

ok this has been an adventure and 1/2(preparing a new eclipse environment for work with Openhab via eclipse config tool (I had prepared a P25.xml file but initial pass at eclipse(installed via dmg) & openhab wasnt correct.. now seems to be mostly building correctly or are they :)

hotelzululima commented 2 years ago

ok after a LOT of failures cursing & screaming, I managed to get a maven build of this binding working with the EP25.. possibly a couple of bugs to kill and I have to figure out how to get my changes in to the git repo so no one else gets to have this much fun for this device :) in retrospect it was very easy to add a new device to this binding I encourage anyone interested to try. Thanks to the binding authors!

hotelzululima commented 2 years ago

BTW.. much easier to work with maven and vi.. and shell rather than eclipse

hotelzululima commented 2 years ago

so researching how to submit my minuscule changes to support the p25 to the maintainers as I am finding the EP25 with energy sensor extremely useful on my end(& they are reasonable $$ on amazon)

hotelzululima commented 2 years ago

ouch thats a LOT of work for just a couple of lines added in a few files

I will produce a git patch that adds this device after I look for anything else that isn't supported in this binding that I may want to add(like Volts and amps readings(may be there very new to openhab3, prefer c to java:/ but that is iife) will figure out how to get it to the maintainers later