Closed SeByDocKy closed 1 year ago
I have the same problem, and a little investigating gave me that Arduino 2.0.2 works, 2.0.3 does not. And probably it's this change in Arduino that's the cause, https://github.com/espressif/arduino-esp32/pull/6259
I'm guessing the one wire implementation in ESPHome need to be updated in some way.
I may have time to look into it, but probably way over my knowledge ...
I think I have found the problem. The code uses pinMode extensively to communicate with the one wire devices.
I created a test program using Platform IO and fount out that pinMode takes ~16us on Arduino 2.0.3 and later, but on previous version it only took ~4us. This is probably the reason for dallas not working with Arduino 2.0.3.
Having a similar issue. Sensor no longer found after upgrading from one ESPHome version to another
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.
The problem
Compiling with this new setup, my dallas sensors are no more scanned. Works perfectly with default options (arduino lib & platform)
Which version of ESPHome has the issue?
2022.7.x
What type of installation are you using?
Home Assistant Add-on
Which version of Home Assistant has the issue?
2022.6.x
What platform are you using?
ESP32
Board
ESP32u
Component causing the issue
dallas sensor
Example YAML snippet