-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
missing field `re_power_type #159
Comments
It looks like this is a regression of the change in #135. |
After I changed get_device_info to get_device_info_json it works great.: 2024-01-19T09:11:54.974Z INFO tapo_l510 > Device usage: DeviceUsageEnergyMonitoringResult { time_usage: UsageByPeriodResult { today: 28, past7: 1211, past30: 13237 }, power_usage: UsageByPeriodResult { today: 1, past7: 172, past30: 1829 }, saved_power: UsageByPeriodResult { today: 27, past7: 1039, past30: 11408 } } Thanks for the help and your great work mate! |
Sorry, the output that's pasted above is for device usage. |
Sure, I just changed the sensitive parts. Device info: Object {"avatar": String("bulb"), "brightness": Number(30), "default_states": Object {"brightness": Object {"type": String("last_states"), "value": Number(30)}}, "device_id": String("8023C0D888DD972F67F68BF0809ABE791EF4B5E0"), "device_on": Bool(false), "fw_id": String("7BECA9DC454565672FEC87D1104F9972"), "fw_ver": String("1.3.0 Build 20230831 Rel. 75926"), "has_set_location_info": Bool(true), "hw_id": String("93F94D88DA9499F43B929DD38EBDF09A"), "hw_ver": String("1.0.0"), "ip": String("xx.xx.xx.xx"), "lang": String("hu_HU"), "latitude": Number(21412431), "longitude": Number(212141), "mac": String("11-11-11-11-11-11"), "model": String("L510 Series"), "nickname": String("S29ueWhh"), "oem_id": String("6B97E8E19CE8019B59D9E81CEDD371BD"), "on_time": Number(0), "overheated": Bool(false), "region": String("Europe/Budapest"), "rssi": Number(-46), "signal_level": Number(3), "specs": String("EU"), "ssid": String("V29yay1OZXR3b3Jr"), "time_diff": Number(60), "type": String("SMART.TAPOBULB")} Not fully okay as I see it now, because it wont get forexample the nickname correctly. |
Thank you, this is very helpful. The I know what needs changing now. |
The fix has been released in Tapo Rust v0.7.8 and Tapo Python v0.1.5. |
@zaraquer, it would be lovely if you could try out the new version. I suspect that there might be some further errors :( |
Thanks! I will check it today a bit later. Sorry for the late answer, I was away from my computer. BTW thanks again for your fast and amazing work! |
I tried the python version first. Traceback (most recent call last): After I changed it to get_device_info_json: Traceback (most recent call last): |
Are you sure you're using the latest version? I'm surprised to see the
|
Yeah, its the latest. git logcommit 4923824 (HEAD -> main, origin/main, origin/HEAD)
commit e9d2953 (tag: py-v0.1.5)
commit c8307d5 (tag: v0.7.8)
I'm testing with the example's. |
Okay, I deleted dict, now this is what I get: python examples/tapo_l510.py |
Hmm, before running the example, can you please run cd tapo-py
poetry install
poetry shell
maturin develop and try |
I did what you suggest:
|
That's brilliant, thank you. This error does make sense, and it's what I was afraid of. |
The fix has been released in Tapo Rust v.0.7.9 and Tapo Python v0.2.0. |
Hi!
I recieved this error booth on rust and python examples on L510 bulbs.
Error: Serde(Error("missing field
re_power_type
", line: 1, column: 550))I want to use the client to monitor the power usage of the bulbs.
What can I do to fix this issue?
The text was updated successfully, but these errors were encountered: