ESPHome Update der Geräte

Hallo Gemeinde

Ich bin gerade kurz vor dem Verzweifeln mit diesem ESPHome.
Da hat sich ja irgendwas geändert, was ein OTA-Update der ESPHome-Geräte verhindert.
Bei den Geräten, an denen nur ein Auf-Zu-Kontakt oder ein Relais hängt, da hab ich das hinbekommen:

ota:
  platform: esphome

Aber bei den Teilen, an denen 1-Wire-Temperatutsensoren dranhängen, da bekomme ich das seit Stunden nicht hin.
Es ist zum Haareausreißen.
Kann mir da jemand von Euch zu Hilfe eilen?

Hier der komplette yaml-Code von einem solchen Temperatursensor (hier habe ich bereits bei “ota:” “platform: esphome” eingefügt)

esphome:
  name: aussentemp
  friendly_name: Aussentemp

esp8266:
  board: d1_mini

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "qepd3EFodxxxxxxxxxxxxxp67p0mbZtuXuL1G0Q="

ota:
  platform: esphome
  password: "9d73fe1exxxxxxxxxxxxxxxxx29b788b24"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Aussentemp Fallback Hotspot"
    password: "IRggggggggguH"

captive_portal:


dallas:
  pin:
    number: D4
    mode:
      input: true
      pullup: true
    update_interval: 60s
  
sensor:
  - platform: dallas
    address: 0x852b385609646128
    name: "Aussentemperatur"
    unit_of_measurement: "°C"
    icon: "mdi:thermometer-plus"
    device_class: "temperature"
    state_class: "measurement"
    accuracy_decimals: 1
  - platform: dallas
    address: 0x98fe645409646128
    name: "Buerotemperatur"
    unit_of_measurement: "°C"
    icon: "mdi:thermometer-plus"
    device_class: "temperature"
    state_class: "measurement"
    accuracy_decimals: 1

Viele, vielen Dank bereits im Voraus !!!

Probier mal:


ota:
  - platform: esphome
    password: "9d73fe1exxxxxxxxxxxxxxxxx29b788b24"

Hallo

Fehlermeldung bei “platform: esphome”:

INFO ESPHome 2024.6.2
INFO Reading configuration /config/esphome/aussentemp.yaml...
Failed config

dallas: [source /config/esphome/aussentemp.yaml:32]
  
  The "dallas" component has been replaced by the "one_wire" component.
  https://esphome.io/components/one_wire.
  - pin: 
      number: D4
      mode: 
        input: True
        pullup: True
      update_interval: 60s

Fehlermeldung bei " - platform: esphome":

INFO ESPHome 2024.6.2
INFO Reading configuration /config/esphome/aussentemp.yaml...
Failed config

dallas: [source /config/esphome/aussentemp.yaml:32]
  
  The "dallas" component has been replaced by the "one_wire" component.
  https://esphome.io/components/one_wire.
  - pin: 
      number: D4
      mode: 
        input: True
        pullup: True
      update_interval: 60s

Es har was mit den “dallas”-Einträgen zu tun.
Aber was muss ich da ändern?

Ach so. Es steht ja in der Fehlermeldung, dass dallas ersetzt wurde durch one_wire

Nimm mal das update_intervall aus dem code

Hatten wir hier schon mal

https://community.simon42.com/t/esp-home-dallas-in-one-wire-aendern/27133/2?u=crypton

Hallo

Ich habe jetzt aus dem hier:

 dallas:
     pin:
     number: D4
     mode:
       input: true
       pullup: true
     update_interval: 60s
  
 sensor:
   - platform: dallas
     address: 0x852b385609646128

das hier gemacht:

 one_wire:
   - platform: gpio
      pin: GPIO 2
  
 sensor:
   - platform: dallas_temp
     address: 0x852b385609646128

Jetzt funktioniert´s endlich.

:crayon:by HarryP: Codezeilen formatiert (bitte immer in </> einbinden)

1 „Gefällt mir“