Replies: 6 comments 11 replies
-
Good idea! I don't think it matters much whether we use this or an issue for collecting useful information, here's some more:
OUIs for homeassistant dhcp discovery
Some commands & responses that are workingThere are more, but here's some that worked on L530:
Related projects
|
Beta Was this translation helpful? Give feedback.
-
From @rytilahti #551 (comment)
So for HA I think username, password and timeout would be integration level settings rather than per config entry / device. I will very soon be updating my HA KLAP PR to handle TAPO store the username/password centrally in the Regarding persisting connection parameters it might be simpler just to store them as [IOT|SMART].ENCRYPT_TYPE strings along the lines of the logic here. It could be as simple as that forever and if it ever gets more complicated we could add items to the end of the string (like if they enable https for example). However I'm just as open to a simple ConnectionParameters container that has PROTOCOL_NAME, ENCRYPT_TYPE etc. @bdraco do you have a view? It would be good to nail this one down so we can start bringing the unsupported KASA devices back into HA and also get TAPO ones underway. N.B. does anyone have thoughts on passing the device_type string as returned from the device directly to the device_factory instead of the libraries own enum? |
Beta Was this translation helpful? Give feedback.
-
Some future work from #557 and #552 is captured here:
Edit: All complete now except the request id generator moved to #777 and #778 opened to improve test coverage. |
Beta Was this translation helpful? Give feedback.
-
Some more discussion points Originally posted by @sdb9696 in #569 (comment)
|
Beta Was this translation helpful? Give feedback.
-
Stumbled upon an interesting paper on the security of these devices, Smart Bulbs can be Hacked to Hack into your Household by Bonaventura et al., which provides an overview of the used protocols. |
Beta Was this translation helpful? Give feedback.
-
Closing this discussion now as all items addressed or moved to issues. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this is the right place for it but as we have been implementing the new TAPO type protocol for TAPO and some KASA devices there have been some open questions about future changes. I'm starting this discussion so we can capture and not lose sight of them.
Some communications feel rather sluggish, due to multiple queries (device state, then the emeter & the usage). Maybe these could be condensed into a single request? Just a thought.
EDIT: This is addressed with multipleRequest
The bulb seems to support these commands, too, but I'm not sure if we can detect the availability using component_nego or some other way.
EDIT: Now using component nego
Just a note for future, so no need for changes now, but we may want to move the mapping about supported device types inside the implementation classes
Captured discussion about interfaces
Beta Was this translation helpful? Give feedback.
All reactions