Skip to content

Add support for setting the timezone #436

Closed
@Jimmyson

Description

@Jimmyson

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.

Screenshot_2023-02-22_16-39-06
image

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

$ kasa time | grep Time: && date
	Time:         2023-02-21 21:50:56 (tz: {'index': 6, 'err_code': 0}
	Time:         2023-02-21 21:50:56 (tz: {'index': 6, 'err_code': 0}
	Time:         2023-02-21 21:50:55 (tz: {'index': 6, 'err_code': 0}
Wed 22 Feb 2023 16:50:59 AEDT

Can it be possible to adjust and save Timezone configuration changes to the Kasa devices using the API?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions