Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add support for setting the timezone #436

Copy link
Copy link
@Jimmyson

Description

@Jimmyson
Issue body actions

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?

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.