[Help needed] can't update binary sensor status #193
Replies: 2 comments 7 replies
-
|
Try checking first whether the UART data is actually being received. logger:
level: DEBUG
uart:
...
debug:At the moment, the ESP device doesn’t have any code that sends data through UART. The HA status is sent via Wi-Fi. Also, the parsing configuration for the data received from the PC is incorrect. You should set a footer or checksum. If I try setting the header and footer manually, (0x0D, 0x0D) echo -e "\x02\x02\x02\x03\x01\x0D\x0D" > /dev/ttyUSB1 uartex:
...
rx_header: [0x02, 0x02]
rx_footer: [0x0D, 0x0D]
tx_header: [0x02, 0x02]
tx_footer: [0x0D, 0x0D] |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
we was talking long time ago, but i remember about it. i will return to this in few days fyi ;) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to use esphome to communicate with an external device via uart for controlling and monitoring this device.
I started with simple binary sensor configuration (yaml bellow) and connecting uart gpio pins to pc using CP2102. I noticed that the esphome doesn't send any data to my external device (currently it's pc) for reading sensor status. Even if I write data to serial I don't notice sensor state change in home assistant. Also I see that tx indicator lights when I'm sending data, but rx don't just like esp doesn't send anything.
What am I doing wrong?
config:
how I read data from serial at pc:
cat /dev/ttyUSB1how I write data to serial at pc:
echo -e "\x02\x02\x02\x03\x01" > /dev/ttyUSB1Beta Was this translation helpful? Give feedback.
All reactions