Skip to content
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

[P110] Handshake failing in latest firmware #4

Closed
achetronic opened this issue Nov 27, 2023 · 2 comments
Closed

[P110] Handshake failing in latest firmware #4

achetronic opened this issue Nov 27, 2023 · 2 comments

Comments

@achetronic
Copy link

Hello there. First, congratulations for this amazing project. It's being used as library inside https://github.com/achetronic/autoheater/

With the latest version of the firmware on P110 plugs (updated not in purpose, but forgot disable automatic updates) I got the following message:

panic: interface conversion: interface {} is nil, not map[string]interface {}

goroutine 1 [running]:
github.com/richardjennings/tapo/pkg/tapo.(*Tapo).Handshake(0xc000146000)
	/home/achetronic/go/go1.17.1/pkg/mod/github.com/richardjennings/tapo@v0.0.0-20230101130552-aebccaf799d8/pkg/tapo/tapo.go:139 +0x8f0
github.com/richardjennings/tapo/pkg/tapo.NewTapo({0x7fff14f9d76f, 0x300000002}, {0x7fff14f9d77d, 0x13}, {0x7fff14f9d791, 0xe})
	/home/achetronic/go/go1.17.1/pkg/mod/github.com/richardjennings/tapo@v0.0.0-20230101130552-aebccaf799d8/pkg/tapo/tapo.go:55 +0x2ed
main.main()
	/home/achetronic/go/go1.17.1/pkg/mod/github.com/richardjennings/tapo@v0.0.0-20230101130552-aebccaf799d8/main.go:25 +0xd6

I assume this is caused by a change on Tapo API spec. Do you know something about? :)

@arigon
Copy link

arigon commented Dec 5, 2023

Tapo changed the protocol to KLAP. See here: evcc-io/evcc#10461

@achetronic
Copy link
Author

@arigon @TazerReloaded Thank you for guiding me to the problem. I supposed it but needed the exact names

The library maintainer does not seem to be maintaining this anymore, so finally I did some research, tests and ports and got it working https://github.com/achetronic/tapogo

Mine is only supporting the latest KLAP protocol. I arranged it in a reusable way just in case the maintainer of this one wants to introduce KLAP on this. Hope my research will be useful for everyone 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants