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

No reading #309

Closed
dean-ElisGroup opened this issue Oct 4, 2023 · 19 comments
Closed

No reading #309

dean-ElisGroup opened this issue Oct 4, 2023 · 19 comments
Labels
stale There has not been activity on this issue or PR for quite some time.

Comments

@dean-ElisGroup
Copy link

Anyone experienced no reading since the ESPHome updates recently?

My Glow does not read anything now and shows just a ZERO for usage. i've tried resetting etc but nothing is working.

@klaasnicolaas
Copy link
Owner

Which version are you using and is your sensor still on the correct GPIO pin?

@dean-ElisGroup
Copy link
Author

Yes, all hardware hasn't been altered in anyway.

Version: 2023.9.3
Glow Version: 4.0.0

@sunishnet
Copy link

I too have noticed recently, that once in a while its stopping metering. Was thinking it had something to do with my wifi network.

@pikkmarg
Copy link

pikkmarg commented Oct 5, 2023

I updated the position of a wifi repeater that is now used by the ESP and had to recalibrate the sensor.

Not sure but maybe it has to do with some kind of change in the amount of power going through the module?

This might relate to the ESPHome updates causing some optimisations to mess with the power levels and thus causing the sensor to become less reliable.

@dean-ElisGroup
Copy link
Author

I updated the position of a wifi repeater that is now used by the ESP and had to recalibrate the sensor.

Not sure but maybe it has to do with some kind of change in the amount of power going through the module?

This might relate to the ESPHome updates causing some optimisations to mess with the power levels and thus causing the sensor to become less reliable.

I've changed nothing, other than the software update. How do you recalibrate the sensor?

@pikkmarg
Copy link

pikkmarg commented Oct 5, 2023

I updated the position of a wifi repeater that is now used by the ESP and had to recalibrate the sensor.
Not sure but maybe it has to do with some kind of change in the amount of power going through the module?
This might relate to the ESPHome updates causing some optimisations to mess with the power levels and thus causing the sensor to become less reliable.

I've changed nothing, other than the software update. How do you recalibrate the sensor?

The sensor has a blue potentiometer that, when turned, changes the sensitivity of the sensor.

@dean-ElisGroup
Copy link
Author

I get sporadic readings now, a few minutes ago it was over 11,000,000W, not sure that's correct!

@pikkmarg
Copy link

pikkmarg commented Oct 9, 2023

Yes, if you look at the log then this happens because the sensitivity is such that it reports the same red flash as multiple flashes.

There are two ways to correct this:

  • Turn the potentiometer so that it only provides one input per red flash
  • Use the internal filter inside YAML by uncommenting it. #internal_filter: 100ms

The internal filter will only register input once every 100ms and will eliminate the wrong reading.

There are previous topics on this. Most recently:
#301
#302

@Barma-lej
Copy link

Barma-lej commented Nov 5, 2023

Hi guys. In ESPHome 2023.8.0, there was a pulse_meter refactoring. The default mode is now EDGE instead of PULSE as before.

To use the PULSE mode, you need to add the internal_filter_mode option to the pulse_meter configuration, like this:

  - platform: pulse_meter
    name: '${friendly_name} - Power Consumption'
    id: sensor_energy_pulse_meter
    internal_filter_mode: PULSE
    unit_of_measurement: 'W'
    state_class: measurement
    ...

@klaasnicolaas
Copy link
Owner

I use the EDGE mode with an internal_filter of 100ms, with a pulse rate of 1000 and have not noticed any difference 🤔

@Barma-lej
Copy link

Barma-lej commented Nov 6, 2023

Do you have any strange values?

@klaasnicolaas
Copy link
Owner

Nope, it is always spot on with measuring

@Barma-lej
Copy link

Barma-lej commented Nov 6, 2023

hm, In EDGE mode, an internal_filter of 100ms and a pulse rate of 10000 i have right values too 🤔I didn't use the internal_filter before

@dean-ElisGroup
Copy link
Author

Mine is still dead. Reports a 0w all day every day. I've tried to fix it but with no luck

@klaasnicolaas
Copy link
Owner

A pulse rate of 10000 is actually too high to make correct measurements. But if I understand correctly, you get good measurements when you set the interval_filter_mode to PULSE?

@Barma-lej
Copy link

Yes, but it's better with EDGE mode, an internal_filter of 100ms

Show the difference:

Pulse rate of 10000, EDGE mode, an internal_filter of 100ms:

image

Pulse rate of 10000, PULSE mode, an internal_filter is disabled

image

@klaasnicolaas
Copy link
Owner

Perhaps it would be better to set the internal_filter with 100ms default and not the mode back to PULSE as in your PR.

@Barma-lej
Copy link

I did close it

Copy link

github-actions bot commented Dec 8, 2023

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Dec 8, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale There has not been activity on this issue or PR for quite some time.
Projects
None yet
Development

No branches or pull requests

5 participants