Skip to content

ESP32 UART missing invert setting #1145

Description

@Mynasru

Describe the problem you have/What new integration you would like

The UART component is missing the invert setting to invert the RX/TX signals. This function would reduce the need of external components.

Please describe your use case for this integration and alternatives you've tried:

Very usefull for a P1/DSMR (custom) sensor where the serial data is received inverted.

Additional context

The feature is already availible in the ESP32 Arduino implementation but not exposed by ESPHome.

It could be a pin schema option on the UART pins, or a flag for the UART component:

uart:
  - rx_pin:
      pin:
        number: GPIO21
        inverted: True  # RX is inverted

or

uart:
    rx_pin: GPIO21
    inverted: true # All UART pins are inverted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions