Open illigtr opened 3 weeks ago
I have tested two boards, esp32-cam and esp-wroom-32, as well as 2 different as3935, one from DFrobot, the other from CFMCU. Same problems... however, if I test these boards under Arduino IDE using either SparkFun, DFRobot or Adafruit libraires for the as3935, they all work fine. writing settings for capacitance, multiplier, etc. work and can be read back with the correct values.
The problem
Attempting to determine why parameters like div_ratio: and capacitance: have no apparent effect while tuning the as3935. Finally determined that reading the registers for these values ALWAYS RETURNS the SAME VALUE regardless of settings.
Which version of ESPHome has the issue?
2024.6.6.
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2024.7.0
What platform are you using?
ESP32
Board
ESP32-WROOM-32
Component causing the issue
ass3935
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
I have tried release and dev branch. Placed a dev copy of ic2, as3935 components locally so I could add additional logging. Problem persists on both dev and release. Also noted that values for many masks are very different than standard libraires from SparkFun, DFRobot and AdaFruit... not sure why this is. Also noted syntax errors (already reported) and found one more when setting div_ratio to 64.... but first either the writing or the reading of the registers seems wonky.