Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional RTS pin #11

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add optional RTS pin #11

wants to merge 3 commits into from

Conversation

JosephAbbey
Copy link

@JosephAbbey JosephAbbey commented Jul 18, 2024

Added an optional RTS pin to use if hardware automatic control flow is not available.

hcpbridge:
  is_connected:
    name: "HCP Connected"
  tx_pin: GPIO17
  rx_pin: GPIO18
  rts_pin: GPIO16

cover:
  - platform: hcpbridge
    name: Door

switch:
  - platform: hcpbridge
    name: Light


external_components:
    source: github://JosephAbbey/esphome-hcpbridge
    refresh: 0s # Ensure you always get the latest version

Tested and working on an ESP32 S3 DevKit-C 1.

@fritzlc
Copy link

fritzlc commented Jul 24, 2024

After adding rst_pin I get an error in the code:

INFO ESPHome 2024.7.1
INFO Reading configuration /config/esphome/hormann.yaml...
INFO Updating https://github.com/mapero/esphome-hcpbridge.git@None
Failed config

hcpbridge: [source /config/esphome/hormann.yaml:57]
is_connected:
name: HCPBridge Connected
rx_pin: GPIO16
tx_pin: GPIO17

[rts_pin] is an invalid option for [hcpbridge]. Did you mean [tx_pin], [rx_pin]?
rts_pin: GPIO18

@14yannick
Copy link

The pull request ist not merged yet so if you want to use the functionality of the rts pin you need to link jesephabbey's reppo in your yaml.

@JosephAbbey
Copy link
Author

Yes, until it gets merged, you need to include:

external_components:
    source: github://JosephAbbey/esphome-hcpbridge
    refresh: 0s # Ensure you always get the latest version

@fritzlc
Copy link

fritzlc commented Jul 24, 2024

Sorry. I didn't read it, now it works properly.
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants