Comments (30)
Hi Everyone,
The above-mentioned problem of my ghost readings has been solved (almost). As suggested in another post, the ghost readings might due to “noise” and the use of a 100 nF capacitor in the hardware setup was suggested......
When I applied a 10 uF capacitor / 25V, the hardware started to work fine, apart from two misreadings overnight. Maybe, I need a capacitor with a slightly higher capacitance, or somebody has another suggestion.
For those who encounter the same problem, I installed the capacitor between the 3V3 and GND pin of the photodiode. Note that the negative side of the capacitor should be connected to the GND pin.
from home-assistant-glow.
I have also most of the time continuously a red led without flash, but sometimes, it is correctly flashing. It looks to happen rather ad random. As RamblingGeekUK, I have also noticed that there are 4 cables visible in the picture. The AO is likely the analog output and DO is the digital one. The use of both outputs looks not logical, isn't it? Maybe Klaasnicolaas can explain the use of the fourth cable, if any.....
from home-assistant-glow.
In general, I use the newest versions. I have played around with the flash time, changed it to 150ms. Presently, the LED works fine. However, I did not test it extensively, so no guarantee. Indeed, a little later, it was again continuously lighting. After uploading the same program without any changes, the LED worked again fine, including blue flashing during uploading. The present conclusion is that is destabilizes after a while. But why?
Another (additional?) reason for a continuous light might be that I have sometimes a misreading, a value far too high. This seems to be related to the sensitivity of the photodiode. If I make it a little less sensible, it does not pick up de flash of the E-meter. If I make it a bit too sensitive, it gives a continuous signal, which you can see from the green LED on the photodiode. Finding the correct sensitivity is not easy. In between, the LED on the photodiode may start to flash very rapidly while there is no flash from the E-meter. There seems to be a solution for misreadings related to electronic noise by placing a 100nF capacitor, as written in at another (closed) issue about instability of the reading. However, I have no clue where to add it. Unfortunately, that issue has been closed, but the applied solution with the capacitor has not been documented, the electronic scheme is missing......
from home-assistant-glow.
A similar problem. The red LED is always on
from home-assistant-glow.
It happens when there are two quick flashes (but it could be imperceptible noise, or require tweaking of internal_filter). The duration of the flash is higher than the duration between the two flashes. The LED should go back to it "previous state" but the previous state is still "on", that's why the LED stays permanently "on".
Either it could be improved by using turn_on / turn_off with a short delay, or use a reset loop to force turn_off the LED every few seconds. It would not change the sensor results since this LED is just there for control.
from home-assistant-glow.
Thanks @Mincka , this sounds like a solution. @klaasnicolaas can this be implemented? My esphome yaml skills aren’t the best 🤣.
Edit: actually would this work?
on_value:
then:
- light.turn_on:
id: led_red
flash_length: 400ms
- delay: 1s
- light.turn_off:
id: led_red
Edit: the above does work but doesn’t feel as elegant as it should do. I could potentially remove the flash_length
and reduce the delay.
Edit: this seems better.
on_value:
then:
- light.turn_on:
id: led_red
- delay: 0.5s
- light.turn_off:
id: led_red
from home-assistant-glow.
That's right, everything works fine for me with version 1.2 and ESPHome 2021.8 🤔 I'll create a PR to fix a few things.
from home-assistant-glow.
@RamblingGeekUK Could you create a separate issue for this? To prevent situations from getting mixed up in an issue 😉
from home-assistant-glow.
That way of entering the imp/kWh rate has changed in version glow yaml version 1.2.
from home-assistant-glow.
Yes I know, I’m using the default 1000 as this is what’s displayed on my meter.
# imp/kWh rate ⬇ #
pulse_rate: '1000'
from home-assistant-glow.
Is this something to do with the pulse_pin
changing from a number to the actual GPIO pin?
from home-assistant-glow.
Mine does seem to flash at all...
I'm also confused by this
It says A0 isn't connected or not using on the ESP32, in the image it looks connected as four cables in use, but to what ?
from home-assistant-glow.
@Userofhomeassistant did you upgrade from the earlier version of the glow yaml (1.0)? It all worked fine for me (flashed on the pulse reading) but since updating to 1.2 it's constantly on. I've set the pulse to 1000 as per my meter (photo above).
from home-assistant-glow.
BTW I followed the guide as opposed to referring to the photo and I only used the 3 pins that were referenced.
from home-assistant-glow.
Answer to Aptonline, I use the newest version, i.e. 1.2.0.
from home-assistant-glow.
Answer to Aptonline, I use the newest version, i.e. 1.2.0.
But did you use the version prior to that? For me the led flashed correctly with the version prior. Also out of interest what version of esphome are you using? I’m trying to determine if this new behaviour is a change in the yaml for glow or a change that was introduced in the latest esphome.
from home-assistant-glow.
appears to be working, intermittently, it has started reading, after I confirm the sensor was working after holding my phones led to it. I'm not getting anything plotting on the Energy chart. I'm using the 3 cables and I agree the AO if for analogue and shouldn't be needed. 
from home-assistant-glow.
@RamblingGeekUK i’m assuming you are waiting a while to check the energy dashboard in HA? It does take a while to get the data in.
from home-assistant-glow.
It's been 11 hours... the animation was animating but that has now stopped... not sure.. was going to leave it alone today as I only installed yesterday and see what happens if anything tomorrow.
from home-assistant-glow.
That seems a long time. Hopefully @klaasnicolaas will be able to assist. Maybe worth posting another issues so my LED issue doesn’t get lost 😉.
from home-assistant-glow.
@Userofhomeassistant I attempted to change the dial on the photodiode yesterday but didn’t see any changes (to the led at least). I’ll attempt to do it again today (it is a Sunday after all) and reboot the glow at each stage. As an observation the LED seems to be staying on after the first pulse is received for me, it’s almost like the led is not being reset correctly after it’s turned on or the delay is not being read correctly and therefore constant.
from home-assistant-glow.
Adjusted photodiode sensitivity and issue still remains. There is a small led on the photodiode itself which you can use to calibrate it, too high and the led is on too low and it doesn’t fire. Adjusting this doesn’t seem to alter the LED connected to glow however.
from home-assistant-glow.
@RamblingGeekUK A0 is not used, the photo shows it because this is from a test set-up. But you can just omit the 4th cable 😉
from home-assistant-glow.
My Glow uses the 1.2 version and runs on ESPHome 2021.8, but I am not experiencing any problems in the measurements at the moment. As for the LED, that I'm not visually checking right now, so I'll get to that later.
@aptonline I find it strange that this has arisen after updating, what if you use an old version of the YAML config again?
from home-assistant-glow.
@klaasnicolaas ok I’ve just rolled back to v1 of the yaml and it initially started working as expected (the led flashed) then after a few mins the LED stayed on like before, this seems to be different from when I use v 1.2 as it stays on after the first pulse.
I’m starting to think it’s a change in EPShome but looking at the change log I can’t see anything that would impact it.
from home-assistant-glow.
Thanks Mincka,
Your suggestion works fine for me. The LED is functioning now flawless.
from home-assistant-glow.
I think it's fine to modify the code that calls the led flash, I tested it at home and it makes no difference for me.
from home-assistant-glow.
@klaasnicolaas so on your setup on the flash interval is working as expected?
from home-assistant-glow.
I just can't get mine to get consistent readings
I think I may solder the cables, just to be sure. 🤔
from home-assistant-glow.
I amended the code as per my post here: #28 (comment) but I believe @klaasnicolaas is going to update the main code via a PR in the future to hopefully improve this for all.
from home-assistant-glow.
Related Issues (20)
- 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
- Not a bug - request for better guide when changing parameters 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.