Open aver-ua opened 4 months ago
Same DFrobot i2c here and having the same issue. Tested it in arduino ide so i know the sensor works as expected.
I however can get something with testing with one of those long spark lighters. Identical config as above
[22:45:25][W][as3935_i2c:029]: Writing register failed!
[22:45:27][W][as3935_i2c:029]: Writing register failed!
[22:45:28][W][as3935_i2c:033]: Reading register failed!
[22:45:28][W][component:237]: Component as3935 took a long time for an operation (1009 ms).
[22:45:28][W][component:238]: Components should block for at most 30 ms.
Just a quick comment here.... the i2c scan: starts at address 8 to 128. So if you have any i2c device using addresses below 8, like the as3935... it won't show up in the scan. I found this out when I finally looked at the C code for i2c scan. A local copy modified to start scanning at address 1 worked! Even though the scan starts at 8 and your as3935 won't show, if it is present, then the component will still use the assigned address... so more a nuisance for debugging.
@illigtr , thanks for your finding
The problem
Hi! DFRobot Lightning Distance Sensor AS3935 not found. But there is no problem with this board under Tasmota 13.4.0 (sensors)
![as3935_tasmota_3](https://github.com/esphome/issues/assets/12016649/f7de58ed-85c5-44f1-8972-fd6d904ff9a5)
Which version of ESPHome has the issue?
2024.2.2
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2024.3.0
What platform are you using?
ESP8266
Board
NodeMCU v3
Component causing the issue
I2C
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response