esphome / issues

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

honeywellabp2_i2c sensor only works with logger enabled to VERBOSE or VERY_VERBOSE #6043

Open bruce3322 opened 3 months ago

bruce3322 commented 3 months ago

The problem

honeywellabp2_i2c sensor only works with logger enabled to VERBOSE or VERY_VERBOSE. If I set the logger to default, then it fails with: [12:51:57][E][component:082]: Component honeywellabp2_i2c.sensor is marked FAILED I have tried changing i2c frequency and timeout, but the results are always the same

Which version of ESPHome has the issue?

2024.6.6

What type of installation are you using?

Docker

Which version of Home Assistant has the issue?

2024.7.0

What platform are you using?

ESP32

Board

ESP32 MH-ETLive

Component causing the issue

honeywellabp2_i2c

Example YAML snippet

i2c:
  sda: GPIO21
  scl: GPIO22
  frequency: 100kHz #According to MPRLS datasheet
  scan: true
  id: bus_a

sensor:
  - platform: honeywellabp2_i2c
    pressure:
      name: "MPRLS Pressure"
      unit_of_measurement: "PSI"
      accuracy_decimals: 2
      min_pressure: 0
      max_pressure: 25
      transfer_function: "A" 
    update_interval: 10s   
    address: 0x18

Anything in the logs that might be useful for us?

From default logger log:

[12:51:57][I][i2c.arduino:096]: Results from i2c bus scan:
[12:51:57][I][i2c.arduino:102]: Found i2c device at address 0x18
[12:51:57][C][honeywellabp2:086]:   Min Pressure Range: 0.0
[12:51:57][C][honeywellabp2:087]:   Max Pressure Range: 25.0
[12:51:57][C][honeywellabp2:089]:   Transfer function A
[12:51:57][C][honeywellabp2:093]:   Update Interval: 10.0s
[12:51:57][E][component:082]:   Component honeywellabp2_i2c.sensor is marked FAILED

From VERY_VERBOSE log
[23:51:52][I][i2c.arduino:096]: Results from i2c bus scan:
[23:51:52][I][i2c.arduino:102]: Found i2c device at address 0x18
[23:51:52][C][honeywellabp2:086]:   Min Pressure Range: 0.0
[23:51:52][C][honeywellabp2:087]:   Max Pressure Range: 25.0
[23:51:55][VV][scheduler:226]: Running interval 'update' with interval=10000 last_execution=4294966864 (now=9569)
[23:51:55][V][honeywellabp2:079]: Update Honeywell ABP2 Sensor
[23:51:55][VV][i2c.arduino:176]: 0x18 TX AA0000
[23:51:55][VV][scheduler:032]: set_timeout(name='meas_timeout', timeout=50)

Additional information

No response

bruce3322 commented 3 months ago

Actual device used is: Adafruit MPRLS Ported Pressure Sensor: https://www.adafruit.com/product/3965