I recently acquired a set of KP115(AU) units to setup for power monitoring, and have them integrated into my Home Assistant Setup. Used python-kasa to pair them to the network on a separate device. Devices were automatically set to a timezone value of 6, corresponding to US Pacific Time which is outside of my location.
As Home Assistant is polling data from the Units to be logged, and the charts are reporting around 19 hours of Zero data.
The data begins to be captured when the Device clock is on Midnight, and the dates match between the Devices, and the Server.
The current way to adjust the Timezone of the Kasa Devices is to use the official TP-Link app. At present, the python application can only fetch the Timezone data, as stated in the following Terminal Output
For the time being, you could use a raw command. The link below mentions that it's necessary to provide current time information but you could start testing with something like this:
For the time being, you could use a raw command. The link below mentions that it's necessary to provide current time information but you could start testing with something like this:
Thanks for the information!!
The raw-command helped. Since I have a couple of devices on the network, I had to individually run the command for each device, but the time is now for updated.
There hasn't been any activity on this issue recently. This issue has been automatically marked as stale because of that. It will be closed if no further activity occurs.
Please make sure to update to the latest python-kasa version and check if that solves the issue.
Thank you for your contributions.
Activity
rytilahti commented on Feb 22, 2023
This is not currently implemented, but PRs to add it to the time module (https://github.com/python-kasa/python-kasa/blob/master/kasa/modules/time.py) are welcome.
For the time being, you could use a raw command. The link below mentions that it's necessary to provide current time information but you could start testing with something like this:
kasa raw-command time set_timezone '{"index": 1}'See https://github.com/GadgetReactor/pyHS100/pull/55/files for the command and GadgetReactor/pyHS100#53 (comment) for a list of index-tz mapping.
Jimmyson commented on Feb 26, 2023
Thanks for the information!!
The raw-command helped. Since I have a couple of devices on the network, I had to individually run the command for each device, but the time is now for updated.
github-actions commented on Sep 28, 2024
There hasn't been any activity on this issue recently. This issue has been automatically marked as stale because of that. It will be closed if no further activity occurs.
Please make sure to update to the latest python-kasa version and check if that solves the issue.
Thank you for your contributions.
rytilahti commented on Oct 6, 2024
Reopened as #1147 aims to add support for this.
Prepare 0.7.6 (#1213)
Prepare 0.7.6 (python-kasa#1213)