Comments (5)
Have you tried calling .refresh_session()
?
from tapo.
I'm sorry, the translator accidentally translated "Tarot", I wanted to write an application "Tapo"
I'm afraid to call .refresh_session()
will not work because first we create a device let my device = ApiClient::new(tapo_username, tapo_password).p110(ip_address).await?;
and then device.refresh_session().await;
But the call occurs along the following chain .p110(ip_address) -> login(ip_address) -> KlapProtocol.login() -> handshake() -> handshake1()
, and in handshake1
the incorrect "local_hash" and "server_hash" are generated, .refresh_session()
also causes handshake()
In general, the idea is to assemble a *.exe file that will scan the network, connect to the device's WI-FI and connect the device itself to the home network (what the Tapo mobile app does)
Only without the need for the user to install this application
from tapo.
Ah, I see.
So you basically want to be able to set up the wifi of a new device or a device that's been reset programmatically?
from tapo.
I think it would be nice in both cases (if possible)
For example, if you take a new outlet P115, connect it using the "Tapo", then reset it by pressing the button on the outlet itself (+- 5 sec.) then, when reconnecting, "Tapo" will detect some part of the old settings and offer to use them
Therefore, it is not clear whether these old settings are used when reconnecting or not
from tapo.
Yes, it sounds useful to add, indeed.
I'm happy to talk over contributions if someone is willing to add support for this.
from tapo.
Related Issues (20)
- Failed to install and use API HOT 2
- missing field `re_power_type HOT 16
- ImportError: cannot import name 'ApiClient' from partially initialized module 'tapo' (most likely due to a circular import) HOT 5
- [Improvement] Schedule HOT 4
- Add support for timeout parameter on device connection HOT 1
- Tapo: SessionTimeout HOT 3
- P300 support HOT 3
- Support for security cameras HOT 3
- get_device_info broken for L900 HOT 2
- [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
- H100 initialization attempt returns error HOT 4
- Support client.getDeviceList HOT 3
- Example for doing things with devices accessed throung the hub HOT 1
- Local access to TAPO P110 for energy data HOT 9
- S500D support HOT 3
- cannot import 'LightHander' or 'ColorLightHandler' for typings HOT 3
- Meaning / correctness of timestamps of device.get_energy_data HOT 3
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.