app icon indicating copy to clipboard operation
app copied to clipboard

Visualize temperature data missing with mutiple thermostats

Open lost101 opened this issue 2 years ago • 5 comments

Describe the bug

When viewing "today" in visualize tab, multiple thermostats are missing, at times few show up additionally. I have eight thermostats assigned to account and same building.

To Reproduce Switch from today to yesterday or 7 days.

Screenshots If applicable, add screenshots to help explain your problem. Screenshot from 2023-04-15 10-49-43

Screenshot from 2023-04-15 11-01-37

Screenshot from 2023-04-15 10-51-58

lost101 avatar Apr 15 '23 17:04 lost101

Could you share your thermostat serial number (here or to [email protected])? I can take a closer look!

ziebelje avatar Jun 12 '23 10:06 ziebelje

Hi, apologies it took so long. 415556845841 415597258947 415555762321 there are few more but I hope that helps. thanks

lost101 avatar Aug 30 '23 06:08 lost101

So...this is interesting and a bit nuanced. I don't have logs back to April from when you originally reported this, but I was able to reproduce and understand the issue.

First, the reason you're not seeing data sometimes is because the data is not synced. If you open beestat, only the thermostat you have open is synced. So let's say you are away from beestat for a week, then open beestat, then go straight to the visualize page. No matter what you do, only one of your thermostats will have temperature/occupancy data.

Fortunately, beestat syncs data in the background when you're not using it. For non-supporters, this can get down to as slow as once per week. For supporters, it stays at once per hour. Meaning: When you open beestat, the data for all of your thermostats should only be about 1-2 hours stale at worst.

One snag is that is that if you leave beestat open, the application actually tries to sync your current thermostat, and when it does that it updates your "last sync time", which prevents the background sync from doing work on the rest of the thermostats on your account.

I hope that makes sense...but what I would expect, is that if you make sure beestat is closed on all of your devices, then you should be able to open beestat at any time and have data be mostly up-to-date for all of your thermostats at any time. If you pick "Today", you may have to scroll backwards a couple hours to see data for the other thermostats. Are you able to verify this is the case for you?

The possible solution to this issue is to just have beestat sync all of your thermostats when you're using the application, instead of just the one you are viewing. I would like to verify the above with you first, then I can look into implementing that.

ziebelje avatar Sep 01 '23 02:09 ziebelje

Interesting, I tried what you said from beestat and I see that the thermostat I am currently viewing is populated under visualization. The rest of the thermostat populated up to 6 hours before the current time. I hope this makes sense. This behaviors that I see now is different( better) compared to before. (few weeks a go) If I switch to a different thermostat and close/reopen the page, it does not populate visualization up to current time for that particular thermostat. The data is shown for a previous thermostat and even after I change again nothing changes. Is this what you would expect? I noticed If I change to yesterday and back to today more thermostats start populating data up to currect time, but not all. It looks like couple populated that I have tried to switch to. After trying this trick to see if more data for other thermostat will come in, I did not see more changes.

Screenshot 2023-09-01 205225

lost101 avatar Sep 02 '23 04:09 lost101

It's most likely just that you loaded the visualizer data before the data was fully synced, or you're getting a cached response which may be slightly outdated.

I'll update this issue once I have a chance to address this. That fix will basically just trigger a sync for all thermostats any time you open beestat and then ensure the data is synced before showing you the 3D view.

The workaround in the meantime is to open each thermostat individually, and then when you get to the last one, wait a few seconds before opening the visualizer to make sure everything is loaded.

ziebelje avatar Sep 04 '23 20:09 ziebelje