esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
292 stars 36 forks source link

ADS1115 readings started fluctuate after short WiFi outage #5814

Open Masterz69 opened 6 months ago

Masterz69 commented 6 months ago

The problem

WiFi network was not available for couple of minutes during software upgrade. Devices reconnected to WiFi & HA with no issues, not rebooted as downtime was short. But: ADS1115 readings started to fluctuate much after WiFi outage and till device manually rebooted.

Fluctuates all 4 channels, providing config for one channel.

IMHO this can be caused by some activity of wifi component. When after WiFi outage some piece of code started/stopped, enebled/disabled thus causing different power consumption leading to Supply Voltage fluctuations. Which causing all channeld readings (ADS->Resistance->NTC) fluctuate as well as they "believe" in stable reference voltage. Just thinking out loud.

I've listed through device log while available, but see nothing valuable, only sensors data publishing etc.

Which version of ESPHome has the issue?

2024.4.1

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32

Board

ESP-Wroom32

Component causing the issue

wifi, ads1115

Example YAML snippet

esp32:
  board: esp32dev
  framework:
    type: arduino

i2c:
  sda: GPIO21
  scl: GPIO22
  frequency: 800kHz

sensor:
  - platform: ads1115
    multiplexer: 'A0_GND'
    gain: 6.144
    id: adc_vcc
    name: 'Voltage Supply'
    update_interval: 2s
    accuracy_decimals: 2

Anything in the logs that might be useful for us?

No response

Additional information

image

Left side - short outages during WiFi upgrade. Right side - after device restart.

image Same entity in long-term view.

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.