Giter Site home page Giter Site logo

Comments (10)

mihai-dinculescu avatar mihai-dinculescu commented on July 22, 2024

As far as I know, getting the energy data has always required the device to be connected to the internet. I suspect this is because the data is stored in the cloud rather than on the device.

from tapo.

goofy2k avatar goofy2k commented on July 22, 2024

Thanks for your reply!

I have been able to access the devices locally with a Nodered flow. Currently I can only get the data by using the Export function in the Android Tapo app. This generates a csv file that is sent to my email.

Currently I have no way to get my data available via Homey Pro.

Fred

from tapo.

mihai-dinculescu avatar mihai-dinculescu commented on July 22, 2024

Yes, you can access the device, get device info, turn it on/off, etc, without the device having an internet connection. But to get energy data, it does need an internet connection.

from tapo.

goofy2k avatar goofy2k commented on July 22, 2024

I will send you a link to the relevant source code(s) later.

Unfortunately I am not able to test it anymore e.g. by switching off my internet connection.

I The API info was allegedly supplied by TP-link. I now suspect that they removed that mode of access in later firmware updates.

Now I have to press a key in the Android app. Then I get an email with the data in some longer period.

I could live with it if I could let a Homey app do that key press all was it in a weekly frequency....

from tapo.

goofy2k avatar goofy2k commented on July 22, 2024

I discovered that more people hit on this issue. Local access was possible, but the method does not work after a firmware upgrade of the plugs.

You can find the discussion by following the link to the nodered software in my first message. Then follow the link to the relevant github repository and see Issues.

There is a solution available for Home Assistant. It is based on this.

I will test that solution in Python to see if it works for me....

from tapo.

mihai-dinculescu avatar mihai-dinculescu commented on July 22, 2024

Is this the issue that you're referring to?
sanlike0911/node-red-contrib-tplink-tapo-connect-api#38

from tapo.

goofy2k avatar goofy2k commented on July 22, 2024

Yep

from tapo.

mihai-dinculescu avatar mihai-dinculescu commented on July 22, 2024

That thread is about last year's firmware version that started using the KLAP encryption protocol.
This library does support it.

from tapo.

goofy2k avatar goofy2k commented on July 22, 2024

OK that's great! I will see if I can get data from my P110's !
I'll have to study how to use the lib.

OK. Got your TAPO_p110.py script working OK! Switches my garden lights on and of and ..... gets energy data. :-)

I use(d) that for monitoring energy usage of my heat pump.

I am not very knowledgable on networking. Is this local access? The plugs do not request for data from the TP-link cloud?

from tapo.

mihai-dinculescu avatar mihai-dinculescu commented on July 22, 2024

It is primarily local access. Most operations do not require the device to be connected to the Internet. However, some, like getting energy usage historical data, do require a cloud connection. Also, the devices need to connect to the cloud from time to time so that the locally cached password hash is synced.

from tapo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.