-
-
Notifications
You must be signed in to change notification settings - Fork 122
Description
I'm curious if anyone might be able to weigh in on if what I'm trying to accomplish is possible with this code.
I have a piece of pool equipment that has an RS485 port to which I currently have a RS485 USB adapter plugged into a RaspberryPi 3b.
On the RP, I'm running another github project https://github.com/tagyoureit/nodejs-poolController that allows me to controlled this device via a dedicated GUI or via Home Assistant.
In this configuration, it works flawlessly but I'm trying to replace the RP with a virtual machine and relay the RS485 bi-direction messages via this stream server component.
I'm using the following yaml code (only the relevant stream server parts are shown) but I can't get the device to respond to either messages sent to of from the pool equipment.
external_components:
- source: github://oxan/esphome-stream-server
stream_server:
uart_id: uart_bus
logger:
uart:
id: uart_bus
tx_pin: GPIO17
rx_pin: GPIO16
baud_rate: 9600
data_bits: 8
parity: NONE
stop_bits: 1
# rx_buffer_size: 256
binary_sensor:
- platform: stream_server
connected:
name: Connected
sensor:
- platform: stream_server
connection_count:
name: Number of connections
I know the answer is likely "it depends on your use case" but I'm just trying to relay raw RS485 messages and I feel like this project would work great for this need.