I made the corrections requested by ESPHOME 2024.6.1 for 1 WIRE:
Dallas:
- pin: 13
for
one_wire:
- platform: gpio
pin: 13
sensor:
- platform: dallas_temp
address: 0x650114534966aa28
name: "Temperatura Teste"
And the sensor was no longer recognized, I am receiving the message in the LOG:
[C][gpio.one_wire:017]: Pin: GPIO13
[W][gpio.one_wire:078]: Found no devices!
Help me
take a photo how you wire.
I replaced the sensor with another one and it still didn't recognize it.
Check your indents and spaces and double check the device code it finds in the log when you install the update. I assume you know each sensor has a unique device code. Here is a screen shot of what I did to my KC868-AIO board's code, so the code line numbers will be different, too. Good luck!
Telewizard13
Did you add the "platform: esphome" under the #Enable Home Assistant API" section? Did you restart the board and Home Assistant? Some changes don't take effect until you do.
Update to ESPHOME 2024.6.1 breaks any sensors on gpio 13 & 14. Go back to earlier version until esphome fixes it. I went back to 2024.5.4 and now my sensors on 13 & 14 work again.
indeed, these days ESPHome have updated 1-wire component, there are some problem. we can wait for they update again. mabye you can post your issue to ESPHome forum.
Add the following to your esphome yaml for the device:
external_components:
- source:
type: git
url: https://github.com/ssieb/esphome
ref: onewire
components: [ gpio ]
refresh: 1min
Then your dallas sensors on gpio13 & 14 will be recognized. I have attached a working KC868-AM YAML file with nine ds18b20 sensors and they all work. Just change the address to yours.
thanks share your yaml code.
(06-22-2024, 11:37 PM)Philadam Wrote: [ -> ]Add the following to your esphome yaml for the device:
external_components:
- source:
type: git
url: https://github.com/ssieb/esphome
ref: onewire
components: [ gpio ]
refresh: 1min
Then your dallas sensors on gpio13 & 14 will be recognized. I have attached a working KC868-AM YAML file with nine ds18b20 sensors and they all work. Just change the address to yours.
Thanks for sharing
With this change in the code, my sensor started working again.
Thanks for sharing
With this change in the code, my sensor started working again.