DaveGut / HubitatActive

Hubitat Environment Developments
64 stars 87 forks source link

Realtime updates #6

Closed gmaus60 closed 3 years ago

gmaus60 commented 3 years ago

The old drivers used to update status in the dashboard nearly in real-time. When I operate a physical Kasa switch, the status of the device is not shown in the Habitat dashboard. There is a serious delay, unless I set polling on the device to 5 seconds. Even this delay is less than desirable. Is this behavior intended? All of my Kasa devices used to provide very fast feedback except for a 3way switch model HS210. I had assumed this was a limitation of the device or the firmware on that device.

DaveGut commented 3 years ago

My old drivers never did quick polling faster than every 5 seconds. There are Hubitat performance issues in faster polling. The delay will average approximately 1/2 of the poll/refresh interval (5, 10, 20, 30 seconds / 1, 5, 15, 30 minutes).

HS210 - for the HS210, could you send me a log of you doing following:

There may be a problem with the socket connect assumption I make for the device - easily fixed.

gmaus60 commented 3 years ago

Here is the log for HS210. I hit 'on' at 1 second past and 'off' at 11 seconds past....

image

DaveGut commented 3 years ago

OK. The code has the correct assumptions. Thanks for the input.