‼ ESPHome 2024.6.1 Breaking Change in der ota-Node

Habe jetzt noch im Sensor - platform: dallas_temp geändert. Leider bringt das auch nichts.
Ich komme da einfach nicht weiter.

Muss ich vieleicht number: D4 gegen number: GPIO4 tauschen?

Lies bitte ESP Home Dallas in one wire ändern wie oben bereits vorgeschlagen wurde.

Versuch mal statt D4 hier GPIO2 einzutragen. Ist das ein 8266?

update_interval mal rausnehmen. Gibt bei mir Fehlermeldungen.

Ja, mein Gerät heißt D1 Mini NodeMcu mit ESP8266-12F

Habe nun auch das geändert. Mein Code sieht nun so aus:

esphome:
  name: d1-heizspeicher
  friendly_name: D1-Heizspeicher

esp8266:
#  board: esp01_1m
  board: d1_mini

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "xNlM----------------Q2o="

ota:
  - platform: esphome
    password: "84----------------------------7a"

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

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "D1-Heizspeicher Fallback Hotspot"
    password: "W------------------L1b"

captive_portal:
    
one_wire:
  pin:
    number: GPIO2
    mode:
      input: true
      pullup: true



sensor:
  - platform: dallas_temp
    address: 0xa5634b421f64ff28
    name: "Zirkulation-Temperatur"
    unit_of_measurement: "°C"
    icon: "mdi:thermometer-plus"
    device_class: "temperature"
    state_class: "measurement"
    accuracy_decimals: 2
  - platform: dallas_temp
    address: 0xc75d85431f64ff28
    name: "Speicher-Temperatur"
    unit_of_measurement: "°C"
    icon: "mdi:thermometer-minus"
    device_class: "temperature"
    state_class: "measurement"
    accuracy_decimals: 2

switch:
  - platform: gpio
    name: "Relay"
    pin: D1

Aktuell bekomme ich diese Meldung:

INFO ESPHome 2024.6.4
INFO Reading configuration /config/esphome/d1-heizspeicher.yaml...
Failed config

one_wire.unknown: [source /config/esphome/d1-heizspeicher.yaml:33]
  
  'one_wire' requires a 'platform' key but it was not specified.
  pin: 
    number: GPIO2
    mode: 
      input: True
      pullup: True

Ich verzweifle hier.

:crayon:by HarryP: Post formatiert

Den habe ich auch.

one_wire:
  - platform: gpio
    pin:
      number: GPIO2
      mode:
        input: true
        pullup: true
        #update_interval: 10s

Unter

one_wire:

fehlt das

- platform: gpio
1 „Gefällt mir“

Ey super. Das wars. Hätte ich allein nie heraus gefunden.
DANKE.

Bekomme ich jetzt irgendwie die 30s Update-Intervall wieder ein?

So

one_wire:
- platform: gpio
  pin:
    number: GPIO2
    mode:
      input: true
      pullup: true
update_interval: 30s 

funkt es nicht.

LG Werner

Ich habe das update_interval beim Sensor eingefügt und jetzt funktioniert es bei mir.

Dürfte bei dir dann normal so ausschauen:

sensor:
  - platform: dallas_temp
    address: 0xa5634b421f64ff28
    name: "Zirkulation-Temperatur"
    unit_of_measurement: "°C"
    icon: "mdi:thermometer-plus"
    device_class: "temperature"
    state_class: "measurement"
    accuracy_decimals: 2
    update_interval: 30s
  - platform: dallas_temp
    address: 0xc75d85431f64ff28
    name: "Speicher-Temperatur"
    unit_of_measurement: "°C"
    icon: "mdi:thermometer-minus"
    device_class: "temperature"
    state_class: "measurement"
    accuracy_decimals: 2
    update_interval: 30s
1 „Gefällt mir“

Ahh super Danke.
LG Werner