zachcheatham / ha-omada

Home Assistant TP-Link Omada Integration
189 stars 26 forks source link

Expose some more device properties + clean up #24

Closed ping-localhost closed 2 years ago

ping-localhost commented 2 years ago

Not sure how welcome this PR is, but this is what I currently have running myself. I've done a bit of clean up (based on PyCharm's comments) and added some extra properties to for devices, so I can have a nice display like this:

image


Preferably I would have the actual devices not ne in device_tracker, as that seems a bit weird (maybe just as a sensor?), and also have information about the actual controller (the OC200 in my case).

That said, my custom component and python knowledge is quite limited, so I have no idea how I would approach that.


I've tried to include @gitnundejoe changes for wired connections, but no luck yet.

zachcheatham commented 2 years ago

Thanks for this!