8000 Add energy_monitoring quirk for L535E by fantandrea · Pull Request #1591 · python-kasa/python-kasa · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@fantandrea
Copy link
Contributor

Add a quirk to read the energy data from the L535E device.
According to the TP-Link Support (ref: TKID250908555 #63159), the values exposed in get_emeter_data are values computed based on the energy consumption specifications of the device as there is no physical sensor (that's the reason for the missing energy_monitoring in the component list).

TODO:

  • Fix devtools.dump_devinfo to export get_emeter_data

for comp in components_raw["component_list"]
}

def _enable_device_quirks(self) -> None:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't make it static to be called in _parse_components so I called it just after to fix the self.components without touching the self.components_raw

@fantandrea fantandrea marked this pull request as draft October 14, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0