Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

After ~24 hours, the system loses its environment sensor. #1

Open
Numbski opened this issue May 21, 2021 · 5 comments
Open

After ~24 hours, the system loses its environment sensor. #1

Numbski opened this issue May 21, 2021 · 5 comments

Comments

@Numbski
Copy link

Numbski commented May 21, 2021

I've been running this for about 6 months or so now, and consistently it will drop the environment sensor after about a day. I haven't found the actual triggering factor, but a power cycle always brings it back. I'm going to attempt to capture some logging to see if I can sort it out, but as I recall, logging was somewhat limited - but I no longer recall why that is the case.

image

Strangely, it thinks uptime is only 3 days here, but it has been "up" for weeks so far as I am aware. Unsure of what is causing it to power cycle on its own. The following is after I power cycle it:

image

It's a very strange bit of behavior. Apart from the slowness that is present (and pretty much unavoidable as I understand it), it otherwise behaves exactly as expected.

@Numbski
Copy link
Author

Numbski commented May 21, 2021

It appears that if you trigger a restart from the webui, it will immediately lose the environmental sensor. Very peculiar.

@Numbski
Copy link
Author

Numbski commented Jun 18, 2021

Best I can tell, any time there is a soft-restart, the dht doesn't get initialized properly. Perl and JavaScript are my languages, but I am trying to find the inits and where the soft restarts are occurring and update it.

@Numbski
Copy link
Author

Numbski commented Jun 18, 2021

image

Seems as though the soft reset happens every morning around 8a local time (Central time, USA).

I would have expected to find it in main.cpp if it is happening intentionally, but no such luck.
Will keep looking.

@Numbski
Copy link
Author

Numbski commented Jun 18, 2021

Thinking it might be the HomeKit watchdog function doing it. Somehow the watchdog timer expires and the thing soft-resets, losing the dht.

@micampe
Copy link
Owner

micampe commented Jun 24, 2021

Hi Tony, sorry for the late reply but unfortunately I have now moved to a new house (with is the main reason for the delay) with different AC units so I’m not using this code anymore so I won’t be able to maintain it further.

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

No branches or pull requests

2 participants