Replies: 1 comment 4 replies
-
You are right, I spent a lot of time solving this riddle, on how to get always refreshed parameters. The solution is using websocket connection and sending update command for the parameters, than wait like 1-3 seconds for update. That is why i made a dedicated function for it: forceWakeUp : $forceWakeUpRes = $devs->forceWakeUp($devIdent);
if ($forceWakeUpRes) {
$allLiveParams = $devs->getAllDeviceParamLive($devIdent);
echo '<h1>Get All Device Parameters Live After Force Wake Up</h1>';
echo '<pre>' . print_r($allLiveParams, true) . '</pre>';
} Im not sure if I would have time to port it to HA, but you can also take this comment and paste the solution on HA github repo, so the owner can modify his integration. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
I'm newbie in terms of coding but have been using Home Assistant for a long time now. In fact, the reason why I come across this repo is due to searching for a home assistannt integration.
So long story short, Home Assistant has this integration that will read the data from the ewelink devices. The problem is the data would not update if the device is not being "actively probe" by the ewelink app.
From your repo, I understood that you can probe the device.
I'm wondering if that "probe" part can be included as part of Home assistant? That would be great.
Thank you for your time
Beta Was this translation helpful? Give feedback.
All reactions