Comments (10)
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.
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.
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.
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.
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.
Is this the issue that you're referring to?
sanlike0911/node-red-contrib-tplink-tapo-connect-api#38
from tapo.
Yep
from tapo.
That thread is about last year's firmware version that started using the KLAP encryption protocol.
This library does support it.
from tapo.
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.
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)
- [info] How can i use this in a windows C# Application. HOT 1
- [Feature Request] Please add audio reactive lighting control HOT 1
- Is it mandatory to use the Hub? HOT 2
- P115 changing WI-FI HOT 5
- H100 initialization attempt returns error HOT 4
- Support client.getDeviceList HOT 4
- Example for doing things with devices accessed throung the hub HOT 1
- S500D support HOT 3
- cannot import 'LightHander' or 'ColorLightHandler' for typings HOT 3
- Meaning / correctness of timestamps of device.get_energy_data HOT 3
- Bug in hue/saturation and color_temperature code HOT 2
- ApiClient on AWS Lambda HOT 1
- Sporadic segfaults in a python module when using ApiClient to query a Tapo P110 HOT 8
- ImportError: cannot import name 'ApiClient' from partially initialized module 'tapo' (most likely due to a circular import) HOT 2
- start_timestamp and export timestamp HOT 5
- Tapo: SessionTimeout HOT 2
- Monthly data reading crashes when device somehow has negative values HOT 2
- trigger logs doesn't retrieve all logs HOT 2
- tapo-py 0.3.1 code hangs on timeout
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tapo.