fishbigger / TapoP100

A module for controlling the TP-Link Tapo P100 Plugs
MIT License
572 stars 142 forks source link

Is slimmer P115 supported? #75

Closed xvitus closed 2 years ago

xvitus commented 2 years ago

Hello thank you for your great work: I made some successful tests with P110. I was wondering if you tested it with the new slimmer P115. Thank you in advance. Best regards.

marcel-wohlfahrt commented 2 years ago

i tested the p115 today via https://github.com/v4d1mm1/Tapo-P100-CLI-control. i was able to successfully turn the plug on, off and query the state. What I could not check is the energy monitoring. Tried to extend /v4d1mm1/Tapo-P100-CLI-control but my py skills are very limited.

xvitus commented 2 years ago

Thank you very much Marcel. I see the cli control you used does not support energy monitoring. Anyway, if you wish, you could create a little python program directly as specified here: "Energy Monitoring - P110" https://github.com/fishbigger/TapoP100#:~:text=Energy%20Monitoring%20%2D%20P110

Best regards.

xvitus commented 2 years ago

Just arrived and tested. P115 responds to energy monitoring too, so it seems fully compatible.

nicofr83 commented 2 years ago

Just arrived and tested. P115 responds to energy monitoring too, so it seems fully compatible.

Please can you send the full data received from the plug, just to double check that all the information returned is the same. Thanks For P110 the info is: { today_runtime: 1020, month_runtime: 10120, today_energy: 704, month_energy: 5458, local_time: '2022-08-27 17:07:36', past24h: [106, 102, 100, 22, 83, 56, 36, 34, 37, 45, 41, 36, 54, 25, 32, 64, 45, 38, 45, 54, 37, 22, 59, 0], past30d: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 189, 681, 660, 647, 644, 728, 482, 0, 722, 704], past1y: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5458], past7d: [ [27, 27, 27, 28, 28, 27, 26, 28, 20, 21, 21, 21, 41, 31, 27, 25, 27, 26, 26, 31, 32, 26, 27, 27], [25, 27, 26, 25, 25, 25, 22, 22, 42, 25, 25, 26, 25, 38, 23, 23, 25, 28, 43, 24, 24, 25, 26, 25], [28, 27, 27, 26, 26, 27, 26, 31, 45, 38, 25, 36, 41, 32, 28, 23, 33, 37, 23, 38, 37, 25, 24, 25], [24, 25, 26, 27, 26, 26, 25, 39, 29, 30, 24, 25, 22, 24, 32, 34, 34, 10, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 107, 108, 106, 102, 100, 22, 83, 56], [36, 34, 37, 45, 41, 36, 54, 25, 32, 64, 45, 38, 45, 54, 37, 22, 59, 0, 0, 0, 0, 0, 0, 0] ], current_power: 0 }