-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Q: TL-SG1016PE new hardware-versions working? #8
Comments
Hi! In principle, I don't see any fundamental restrictions on interaction with new hardware revisions. Versions V1 and V3 are listed in the documentation because the component was guaranteed to work on these revisions (unfortunately, I don't have access to a large number of different devices to personally check the integration or add support for them) My component essentially emulates working with a switch through a built-in web interface, with all the advantages and disadvantages. The hardware revision should not impose any restrictions on this method of interaction. However, if the format of data transmitted via http requests has changed in the new version, then the component may not work (there were precedents with other switch models). In this case, you can create an issue, and we can try to figure it out together |
I have this device (hardware version 5.2) and I'm getting this error in the logs, device is failing to configure:
The username and password are correct by the way, and changed from default. Easy Smart utility (1.3.13.0) is working. |
For anyone who ends up here with the error @kevpatts had, after quite a bit of time reviewing the network calls from the browser it showed that the request headers for login.cgi use the Referer header pointing to the root page "/", so by by adding async def authenticate(self) -> None:
"""Perform authentication and return true when authentication success"""
try:
_LOGGER.debug("Authentication started")
self._refresh_session()
_LOGGER.debug("Performing initial GET to obtain cookies")
await self._get_raw("")
_LOGGER.debug("Performing logon")
response = await self._post_raw(
"logon.cgi",
{"username": self._user, "password": self._password, "logon": "Login"},
) ![]() |
Great! Thanks. Helped to get connection to TL-SG116E with FW v2.2 |
Hi there,
I'm about to (maybe) buy the TL-SG1016PE switch, because I love that it can be controlled with your component.
Do you have any guess or advice, if the newest hardware-versions could cause trouble? In your docs it read that V1 and V3 work, but on the TPLink-website they are already talking about version 5, so... I'm a bit scared to run into trouble :-)
I want to switch the POE ports on/off via Home Assistant.
Thank you for the great work!
The text was updated successfully, but these errors were encountered: