esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
288 stars 34 forks source link

Dallas temperature sensor not found after upgrade to ESPHome 2024.5.0 #5803

Open mrucidlo opened 2 weeks ago

mrucidlo commented 2 weeks ago

The problem

Dallas temperature sensor was normally working normally with ESPHome 2024.4.x version. I have only one sensor connected. After upgrade to ESPHome 2024.5.0, sensor is not found.

Which version of ESPHome has the issue?

2024.5.0

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.5.3

What platform are you using?

ESP32

Board

WeMos WROOM

Component causing the issue

dallas temperature sensor

Example YAML snippet

esp32:
  board: esp32dev
  framework:
    type: arduino

dallas:
  - pin: GPIO04

sensor:
  - platform: dallas
    address: 0xbe00000f1b381628
    name: "Water Heater Temperature"
    #accuracy_decimals: 1

Anything in the logs that might be useful for us?

[15:59:37][C][dallas.sensor:075]: DallasComponent:
[15:59:37][C][dallas.sensor:076]:   Pin: GPIO4
[15:59:37][C][dallas.sensor:077]:   Update Interval: 60.0s
[15:59:37][W][dallas.sensor:080]:   Found no sensors!
[15:59:37][C][dallas.sensor:089]:   Device 'Water Heater Temperature'
[15:59:37][C][dallas.sensor:089]:     Device Class: 'temperature'
[15:59:37][C][dallas.sensor:089]:     State Class: 'measurement'
[15:59:37][C][dallas.sensor:089]:     Unit of Measurement: '°C'
[15:59:37][C][dallas.sensor:089]:     Accuracy Decimals: 1
[15:59:37][C][dallas.sensor:097]:     Address: 0xbe00000f1b381628
[15:59:37][C][dallas.sensor:098]:     Resolution: 12

...

[15:59:58][W][component:170]: Component dallas cleared Warning flag
[15:59:59][W][dallas.sensor:269]: 'Water Heater Temperature' - Scratch pad checksum invalid!
[15:59:59][W][component:157]: Component dallas set Warning flag: unspecified

Additional information

No response

andreas-bulling commented 2 weeks ago

Have you tried/can you try https://github.com/persuader72/esphome-components ?

BinnenBeest commented 2 weeks ago

I have the same issue, annoying 🤨

BinnenBeest commented 2 weeks ago

Have you tried/can you try https://github.com/persuader72/esphome-components ?

I don’t think this is related. I have a Dallas soldered to a gpio on esp32.

BinnenBeest commented 1 week ago

Not solved with ESPHome 2024.5.1 nor with ESPHome 2024.5.2

3dogzzz commented 1 week ago

I had this issue and I switched the GPIO pin I was using and that seemed to fix the issue.

BinnenBeest commented 1 week ago

I had this issue and I switched the GPIO pin I was using and that seemed to fix the issue.

I’m using GPIO pin 21. It worked for years but after the upgrade it no longer does. I don't see a hardware cause. What pin are you using?

3dogzzz commented 1 week ago

I had this issue and I switched the GPIO pin I was using and that seemed to fix the issue.

I’m using GPIO pin 21. It worked for years but after the upgrade it no longer does. I don't see a hardware cause. What pin are you using?

I’m using GPIO23 now.

mrucidlo commented 1 week ago

After some playing around, nothing with the board I have and ESPHome version 2024.5.3 worked. So I replaced Dallas ESPHome component (sorry ESPHome) with https://github.com/nrandell/dallasng. Temperature sensor is back, same pin as before.

My code now looks like:

external_components:

dallasng:

sensor:

BinnenBeest commented 1 week ago

After some playing around, nothing with the board I have and ESPHome version 2024.5.3 worked. So I replaced Dallas ESPHome component (sorry ESPHome) with https://github.com/nrandell/dallasng. Temperature sensor is back, same pin as before.

My code now looks like:

external_components:

  • source: github://nrandell/dallasng

dallasng:

  • pin: GPIO4 update_interval: 30s

sensor:

  • platform: dallasng index: 0 name: "Water Heater Temperature" resolution: 12 filters:

    • filter_out: NAN

Thanks for sharing, this works for me as well

Dominator86 commented 1 week ago

I updated to 2024.5.3 and now my temperature sensors also stopped working. Guess I'll give dallasng a try for the time being.

jasper-bosch commented 1 day ago

After some playing around, nothing with the board I have and ESPHome version 2024.5.3 worked. So I replaced Dallas ESPHome component (sorry ESPHome) with https://github.com/nrandell/dallasng. Temperature sensor is back, same pin as before.

My code now looks like:

external_components:

  • source: github://nrandell/dallasng

dallasng:

  • pin: GPIO4 update_interval: 30s

sensor:

  • platform: dallasng index: 0 name: "Water Heater Temperature" resolution: 12 filters:

    • filter_out: NAN

Thanks, this worked for me too!