martijnvwezel / watermeter-esphome

22 stars 10 forks source link

Watermeter stops with light_level:331: Too Dark #39

Closed thomaskoopmans closed 7 months ago

thomaskoopmans commented 8 months ago

Problem/Motivation

meter stops registering new usage after about 12 hours after reboot.

Expected behavior

continues logging

Actual behavior

error in debug log stating low light

Steps to reproduce

reboot or reinstall watermeter and wait

Proposed changes

(If you have a proposed change, workaround or fix, describe the rationale behind it)

thomaskoopmans commented 8 months ago

Two hunches. USB C power cable not ok. 5 meter length causing power drop.

Or

water condensation on sensors. Watermeter is installed in damp space

nothing on debug logs to support the hunches

martijnED commented 8 months ago

your picture doesnt work

thomaskoopmans commented 8 months ago

Bekijk recente foto's

martijnED commented 8 months ago

if you have a very damp space use nail polish or something else to protect the watermeter. 5M is quite long for wifi devices itself.

Do you get from the logs that the logging that it is continuesly too dark?

thomaskoopmans commented 8 months ago

After a period of 12-14 hours the error messages are popping in regularly. wifi connection is ok enough. Nothing in logs indicating connection issues.

Only the light Too Dark error

nail polish on the print itself. As in top and bottom?

martijnED commented 8 months ago

The led still works, maybe the led is very dimmed? You could also install the latest version, that only sends liter updates after no water has been used for a minut. To make sure proper working If the error pops up once in the while too dark not a big issue. If you have multiple behind each other its an issue.

thomaskoopmans commented 8 months ago

And it doesn’t explain the period it does work

I power cycle it via wall socket. Not touching the meter itself

martijnED commented 8 months ago

But that it stops sending updates doesnt make sense. Can you have a look at the meter itself?

martijnvwezel commented 7 months ago

Can you see if there is water damage to the meter ?

thomaskoopmans commented 7 months ago

Meter looks ok. IMG_2486 IMG_2485

thomaskoopmans commented 7 months ago

The WiFi connection is decent and stays online. Can easily access and update the meter via esphome

I have some colored nailpolish available. Will coat the top and bottom excluding the lights and sensors.

thomaskoopmans commented 7 months ago

Is there a debug flag I can set to flesh out power issues? Nothing in current logs

martijnED commented 7 months ago

Yes there is a bug flag but your watermeter got damaged: If you look closer you see near the capacitor and the black chip corrosion, maybe after some cleaning your power issue is resolved or you need to replace the items. I can help you with that!

But first clean the pcb and hopefully it will be enough.

Does your watermeter is in a wet environment? image

If you power the board and after a few minuts you feel on touch the blackchip get hot?

martijnED commented 7 months ago

To answer the logging part, I do log but only errors I can change that.

How to clean: 1) Get some cleaning alcohol 2) get old toathbrust and dip it a bit in the alcohol 3) go slowly over the given picture and clean it so that the white stuff is removed. 4) Make sure the placement is clean of water and test if it works now without problems 5) get nail polish and polish the given part so that the part is protected from water. 6) I did not test nail polish on the sensors itself and what it does to the sensoring part so I cannot help you yet with it.

martijnED commented 7 months ago

Can you measure the width you enlarged the whole with, i will order a new batch where I enlarge those two holes a bit.

martijnvwezel commented 7 months ago

@thomaskoopmans Can you give me an update?

thomaskoopmans commented 7 months ago

Current status after an initial clean and update of firmware:

INFO ESPHome 2024.3.0
INFO Reading configuration /root/config/muino-water-meter-dda564.yaml...
INFO Updating https://github.com/martijnvwezel/watermeter-esphome.git@main
[09:31:24][I][app:102]: ESPHome version 2024.3.0 compiled on Mar 29 2024, 08:52:57
[09:31:24][I][app:104]: Project esphome.muino-water-meter version 2.0.3
[09:31:34][W][light_level:331]: Too dark
[09:31:34][W][light_level:331]: Too dark
[09:31:34][W][light_level:331]: Too dark

Haven't found the time yet to properly clean the white stuff yet, but will do so this week and also measure the drilled holes. Will update here afterwards.

Thanks for all the help.