esphome / issues

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

[2024.6.1] GPIO8 can no longer be used for UART/RX on the Denky D4 #5932

Closed alucryd closed 2 months ago

alucryd commented 2 months ago

The problem

The latest update broke ESPHome on the Denky D4, typically used for Linky Teleinfo in France. We can no longer select GPIO8 for UART/RX, it was working fine in 2024.5.x.

Which version of ESPHome has the issue?

2024.6.1

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.6.3

What platform are you using?

ESP32-IDF

Board

Denky D4

Component causing the issue

uart

Example YAML snippet

esphome:
  name: linky
  friendly_name: Linky

esp32:
  board: denky_d4
  framework:
    type: esp-idf

uart:
  rx_pin: GPIO8
  baud_rate: 9600
  parity: EVEN
  data_bits: 7
  stop_bits: 1

Anything in the logs that might be useful for us?

INFO ESPHome 2024.6.1
INFO Reading configuration /config/esphome/linky.yaml...
Failed config

uart: [source /config/esphome/linky.yaml:40]
  - 
    This pin cannot be used on ESP32s and is already used by the flash interface (function: Flash Data 1).
    rx_pin: GPIO8
    baud_rate: 9600
    parity: EVEN
    data_bits: 7
    stop_bits: 1

Additional information

No response

ezlo-picori commented 2 months ago

I also just faced this issue, it is a consequence of https://github.com/esphome/esphome/pull/5615 . You may replace

  rx_pin: GPIO8

by

  rx_pin:
    number: GPIO8
    ignore_pin_validation_error: true

to silence this warning

seblang commented 2 months ago

@ezlo-picori

same issue for me but if i change in my yaml 👍

uart: rx_pin: GPIO8 ignore_pin_validation_error: true baud_rate: 9600 parity: EVEN data_bits: 7 stop_bits: 1

with

uart: rx_pin: number: GPIO8 ignore_pin_validation_error: true baud_rate: 9600 parity: EVEN data_bits: 7 stop_bits: 1

it's work than you

alucryd commented 2 months ago

Worked like a charm, thank you!