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

Time register has wrong time (but not always!) #595

Open
PedroKTFC opened this issue Sep 16, 2024 · 6 comments
Open

Time register has wrong time (but not always!) #595

PedroKTFC opened this issue Sep 16, 2024 · 6 comments

Comments

@PedroKTFC
Copy link

This isn't (I think!) an issue with Grott/grottserver but I'm hoping someone can enlighten me.

When I read register 31 of my data logger (which should contain the data logger's time), I get odd results. This morning I got the correct time (within seconds) but, I've just read it at 19:56, I get 05:47, wrong and illogically wrong!! The date is always correct (allowing for before/after midnight). Anyone any ideas what's going wrong? Also, what is the format of the command to set the time?

@johanmeijer
Copy link
Owner

You can use the command=datetime in the grottserver api. That should update the datetime of the datalogger.

post :5782/datalogger?command=datetime&datalogger=

Other possibility is to stop/start grott or grottserver. The time will be set during initialisation phase.

It seems that more dataloggers have this date-time problem(eg #595). I think this should be a firmware problem.

@PedroKTFC
Copy link
Author

Thanks Johann. I'm aware of this. I've decided to try and investigate a bit. So last night I restarted Grott and set off a simple NodeRed flow to read the time every hour. It didn't take long for the time to be wrong! If I work anything out I'll report back here.

@PedroKTFC
Copy link
Author

I've now got a NodeRed flow that sets the data logger time every 15 minutes.

@anoppe
Copy link

anoppe commented Sep 19, 2024

@PedroKTFC out of curiosity: I'm running grott flawless using server date time, why don't you change your config like Johan suggested, instead of (in my opinion) try to fix it by applying a bandage?

@PedroKTFC
Copy link
Author

Grott has worked flawlessly for me too, for months. As I understand it, using server time means Grott uses the local HA server time when it records data. Meanwhile, the time in the data logger can drift as this thread suggests. If I set the inverter to, as I do, export power between 16:00 and 19:00 (top rate for me), then as the time drifts this will go wrong. I therefore have to apply the bandage don't I? Note I'm using my version of grottserver so the Shine app can never correct the time.

@anoppe
Copy link

anoppe commented Sep 19, 2024

oh, I see. You are dependent on the inverter datetime to control it on a specific date time... too bad for you :(

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

No branches or pull requests

3 participants