Comments (6)
I think you have to use ms instead of μs. They say for power-meter it could be 50-100ms.
Yes! That was it. All the documentation talks about μs and I of course thought that I have to use them too. Now I have 5ms as an internal_filter value and it works.
Thank you for you help!
from home-assistant-glow.
I think you have to play with the internal_filter
a bit, because you get 10x as many pulses for 1 kWh there is a good chance that it doesn't count because it is so many times in a row 🤔
from home-assistant-glow.
I have tried it with 4 and 8 us, but it doesn't change anything. My consumption is under 1000 Watts so the led isn't blinking too fast.
Here is a portion of my log
17:26:47][D][sensor:127]: 'House - Power consumption': Sending state 960.00000 W with 0 decimals of accuracy
[17:26:47][D][sensor:127]: 'House - Total energy': Sending state 5.67330 kWh with 3 decimals of accuracy
[17:26:47][D][sensor:127]: 'House - Power consumption': Sending state 0.00000 W with 0 decimals of accuracy
[17:26:47][D][sensor:127]: 'House - Total energy': Sending state 5.67470 kWh with 3 decimals of accuracy
[17:26:47][D][sensor:127]: 'House - Power consumption': Sending state 962.56689 W with 0 decimals of accuracy
[17:26:47][D][sensor:127]: 'House - Total energy': Sending state 5.67480 kWh with 3 decimals of accuracy
[17:26:47][D][sensor:127]: 'House - Power consumption': Sending state 0.00000 W with 0 decimals of accuracy
[17:26:47][D][sensor:127]: 'House - Total energy': Sending state 5.67580 kWh with 3 decimals of accuracy
[17:26:47][D][sensor:127]: 'House - Power consumption': Sending state 962.56689 W with 0 decimals of accuracy
[17:26:47][D][sensor:127]: 'House - Total energy': Sending state 5.67710 kWh with 3 decimals of accuracy
[17:26:48][D][sensor:127]: 'House - Power consumption': Sending state 0.00000 W with 0 decimals of accuracy
[17:26:48][D][sensor:127]: 'House - Power consumption': Sending state 952.38098 W with 0 decimals of accuracy
[17:26:48][D][sensor:127]: 'House - Total energy': Sending state 5.67730 kWh with 3 decimals of accuracy
[17:26:48][D][sensor:127]: 'House - Power consumption': Sending state 0.00000 W with 0 decimals of accuracy
[17:26:48][D][sensor:127]: 'House - Total energy': Sending state 5.67830 kWh with 3 decimals of accuracy
[17:26:48][D][sensor:127]: 'House - Total energy': Sending state 5.67850 kWh with 3 decimals of accuracy
[17:26:48][D][sensor:127]: 'House - Total energy': Sending state 5.67990 kWh with 3 decimals of accuracy
[17:26:49][D][sensor:127]: 'House - Power consumption': Sending state 962.56689 W with 0 decimals of accuracy
[17:26:49][D][sensor:127]: 'House - Total energy': Sending state 5.68080 kWh with 3 decimals of accuracy
[17:26:49][D][sensor:127]: 'House - Power consumption': Sending state 0.00000 W with 0 decimals of accuracy
[17:26:49][D][sensor:127]: 'House - Power consumption': Sending state 954.90723 W with 0 decimals of accuracy
[17:26:49][D][sensor:127]: 'House - Total energy': Sending state 5.68090 kWh with 3 decimals of accuracy
[17:26:49][D][sensor:127]: 'House - Power consumption': Sending state 0.00000 W with 0 decimals of accuracy
[17:26:49][D][sensor:127]: 'House - Total energy': Sending state 5.68200 kWh with 3 decimals of accuracy
[17:26:49][D][sensor:127]: 'House - Power consumption': Sending state 960.00000 W with 0 decimals of accuracy
[17:26:49][D][sensor:127]: 'House - Total energy': Sending state 5.68250 kWh with 3 decimals of accuracy
[17:26:49][D][sensor:127]: 'House - Power consumption': Sending state 0.00000 W with 0 decimals of accuracy
[17:26:49][D][sensor:127]: 'House - Total energy': Sending state 5.68330 kWh with 3 decimals of accuracy
[17:26:50][D][sensor:127]: 'House - Total energy': Sending state 5.68440 kWh with 3 decimals of accuracy
[17:26:51][D][sensor:127]: 'House - Total energy': Sending state 5.68480 kWh with 3 decimals of accuracy
[17:26:51][D][sensor:127]: 'House - Total energy': Sending state 5.68590 kWh with 3 decimals of accuracy
[17:26:51][D][sensor:127]: 'House - Power consumption': Sending state 960.00000 W with 0 decimals of accuracy
[17:26:51][D][sensor:127]: 'House - Total energy': Sending state 5.68600 kWh with 3 decimals of accuracy
from home-assistant-glow.
I think that this is not the case. If I calculated correctly my meter will flash 20 000 times per hour, if I'm using 20 kWh. That means 55,56 pulses per second. So 1 second equals 1 000 000 microseconds. One pulse will have time to rise and fall for 18 000 microseconds.
I tried also with pulse_counter but it calculates usage and consumption in certain time period. Pulse meter calculates it every time when there is a pulse. As you can see from my logs the total energy rises every time it is seen on the logs but for some reason consumption is always every second time zero.
The timeout for zero pulses per minute is 5 minutes so this can't be the case.
Is anyone else able to reproduce this error? How can I debug this
from home-assistant-glow.
Still thinking about this. I looked at the logs and there are sometimes huge consumption numbers
It baffles me that the total energy seems to accumulate correctly even though consumption is zero or 360 000 W. Could there be some kind of error with the pulse_meter library or do I have defective esp32?
[23:02:34][D][sensor:127]: 'House - Power consumption': Sending state 853.08057 W with 0 decimals of accuracy
[23:02:34][D][sensor:127]: 'House - Total energy': Sending state 0.07910 kWh with 3 decimals of accuracy
[23:02:34][D][sensor:127]: 'House - Power consumption': Sending state 360000.00000 W with 0 decimals of accuracy
[23:02:34][D][sensor:127]: 'House - Total energy': Sending state 0.07920 kWh with 3 decimals of accuracy
[23:02:35][D][sensor:127]: 'House - Power consumption': Sending state 0.00000 W with 0 decimals of accuracy
[23:02:35][D][sensor:127]: 'House - Total energy': Sending state 0.07980 kWh with 3 decimals of accuracy
from home-assistant-glow.
I think you have to use ms instead of μs. They say for power-meter it could be 50-100ms.
from home-assistant-glow.
Related Issues (20)
- WRONG reading HOT 8
- web server frontpage is not displaying any data HOT 4
- Very strange readings after first setting up, why use GPIO 13? HOT 7
- Anyone else having issues with the upgrade to ESPhome 2023.8.1? HOT 36
- Power consumption over the roof HOT 10
- Not an issue, but an FYI for those in North America HOT 1
- Addresable LED support? HOT 4
- No reading HOT 19
- Pulse meter sensor took a long time HOT 3
- 3 phase? HOT 2
- Calibrate Energy Value HOT 1
- Firmware stuck on v2023.2.4 HOT 5
- Documentation problem HOT 1
- House Total Energy get reset HOT 3
- Dependency Dashboard
- Error downloading manifest! Please help me! HOT 11
- ESP32-WROOM-32D_top_case.stl is a copy of ESP32-WROOM-32D_bottom_case.stl HOT 3
- WebUi Username/Password? HOT 3
- Where to find pulse_meter.yaml HOT 2
- Adoption problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-assistant-glow.