Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualize temperature data missing with mutiple thermostats #392

Open
lost101 opened this issue Apr 15, 2023 · 5 comments
Open

Visualize temperature data missing with mutiple thermostats #392

lost101 opened this issue Apr 15, 2023 · 5 comments
Labels
Visualize Related to the visualize tab.

Comments

@lost101
Copy link

lost101 commented Apr 15, 2023

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

@ziebelje ziebelje added the Visualize Related to the visualize tab. label Jun 12, 2023
@ziebelje
Copy link
Member

Could you share your thermostat serial number (here or to contact@beestat.io)? I can take a closer look!

@lost101
Copy link
Author

lost101 commented Aug 30, 2023

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

@ziebelje
Copy link
Member

ziebelje commented Sep 1, 2023

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.

@lost101
Copy link
Author

lost101 commented Sep 2, 2023

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

@ziebelje
Copy link
Member

ziebelje commented Sep 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Visualize Related to the visualize tab.
Projects
None yet
Development

No branches or pull requests

2 participants