mihai-dinculescu / tapo

Unofficial Tapo API Client. Works with TP-Link Tapo smart devices. Tested with light bulbs (L510, L520, L530, L610, L630), light strips (L900, L920, L930), plugs (P100, P105, P110, P115, P300), hubs (H100), switches (S200B) and sensors (KE100, T100, T110, T300, T310, T315).
MIT License
352 stars 36 forks source link

P110 `get_energy_usage` errors on the latest firmware #61

Closed mihai-dinculescu closed 1 year ago

mihai-dinculescu commented 1 year ago

Firmware: 1.1.6 Build 221114 Rel.203339

Error

Device inner response decrypted: {"result":{"today_runtime":896,"month_runtime":15603,"today_energy":6635,"month_energy":62939,"local_time":"2023-01-16 21:05:07","electricity_charge":[0,0,0],"current_power":0},"error_code":0}
Error: missing field `past24h` at line 1 column 176

The four arrays with detailed data, past24h, past7d, past30d and past1y are entirely gone in this new firmware version.

Current thinking: Make them optional and hope that they will be re-introduced at a later date.

mihai-dinculescu commented 1 year ago

Fixed in release https://github.com/mihai-dinculescu/tapo/releases/tag/v0.4.0.