esphome / issues

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

After last update: config error ID 'uartX' is reserved internally and cannot be used #4438

Closed henkiejan1 closed 1 year ago

henkiejan1 commented 1 year ago

The problem

Updated just to the new version of ESPHome and want to update 2 Air Gredient sensor the use UARX for the dust and co2 sensor. So called uart1 and uart2 and got the complete config error below. I have nothing changed in the code.

Which version of ESPHome has the issue?

2023.4.0

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2023.4.5

What platform are you using?

ESP8266

Board

Wemos D1 mini

Component causing the issue

uart

Example YAML snippet

No response

Anything in the logs that might be useful for us?

INFO Reading configuration /config/esphome/airgradient2.yaml...
Failed config

uart: [source /config/esphome/airgradient2.yaml:37]
  - rx_pin: D5
    tx_pin: D6
    baud_rate: 9600

    ID 'uart1' is reserved internally and cannot be used.
    id: uart1
  - rx_pin: D4
    tx_pin: D3
    baud_rate: 9600

    ID 'uart2' is reserved internally and cannot be used.
    id: uart2
sensor.pmsx003: [source /config/esphome/airgradient2.yaml:62]
  platform: pmsx003
  type: PMSX003

  ID 'uart1' is reserved internally and cannot be used.
  uart_id: uart1
  pm_1_0: 
    id: pm10
    name: Particulate Matter <1.0µm Concentration slaapkamer
  pm_2_5: 
    id: pm25
    name: Particulate Matter <2.5µm Concentration slaapkamer
  pm_10_0: 
    id: pm100
    name: Particulate Matter <10.0µm Concentration slaapkamer
sensor.senseair: [source /config/esphome/airgradient2.yaml:74]
  platform: senseair

  ID 'uart2' is reserved internally and cannot be used.
  uart_id: uart2
  co2: 
    id: co2
    name: SenseAir CO2 Waarde slaapkamer
  update_interval: 60s

Additional information

No response

henkiejan1 commented 1 year ago

Oh i don't read well! There is a breaking issue in the changelog. My bad!