diff --git a/custom_components/sonoff/core/ewelink/__init__.py b/custom_components/sonoff/core/ewelink/__init__.py index cd8a3db8..bf8aff0f 100644 --- a/custom_components/sonoff/core/ewelink/__init__.py +++ b/custom_components/sonoff/core/ewelink/__init__.py @@ -361,7 +361,8 @@ async def update_spm_pow(self, device: XDevice, cloud_mode: bool): if cloud_mode: await self.cloud.send(device, params, timeout=0) else: - await self.local.send(device, params, command="statistics") + params["subDevId"] = device["deviceid"] + await self.local.send(device["parent"], params, command="statistics") def can_cloud(self, device: XDevice) -> bool: if not self.cloud.online: