Tapo P410m energy works only on positive values · Issue #1709 · python-kasa/python-kasa · GitHub
Skip to content

Tapo P410m energy works only on positive values #1709

Description

@zirni112

config_entry-tplink-01KVA6VDVY9QT60V6XWM0H1EZX.json

I newly added a Tapo P410m (outdoor plug) to HomeAssistant via TP-Link Integration.
I didn't use the Matter connectivity.

P410m =
"Solar power monitoring – Detects the direction of electricity and is suitable for both balcony power plants and household appliances"
That is exactly why I want to use it.

The Plug is shown in HA.
If energy is consumed it shows positive values like other plugs (for example P110).
But, If my Plug-In Solar starts generating power, the values change to negative ones and in HA it shortly showed them I believe, but now it just shows as"unknown" for "energy (W)"

From the diagnostic data:
"get_energy_usage": { "today_runtime": 137, "month_runtime": 137, "today_energy": 6, "today_energy_mwh": 6127, "month_energy": 6, "month_energy_mwh": 6127, "today_charge_energy": 42, "today_charge_energy_mwh": 42498, "month_charge_energy": 42, "month_charge_energy_mwh": 42498, "local_time": "2026-06-17 11:12:11", "electricity_charge": [ 0, 0, 0 ], "saved_electricity_charge": [ 0, 0, 0 ], "current_power": -91304 }, "get_current_power": { "current_power": -91

EDIT:
I just found an error in the logs:
ERROR
Logger: kasa.smart.smartmodule
source: components/tplink/coordinator.py 76

"Error processing Energy for device ###, module will be disabled: get_emeter_data_for_Energy (error_code = Internal_Query_Error)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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