Unable to send commands from an ESP-ETH01 controller to an audio amplifier via RS232 serial connection
Hello,
I’d like to control my audio amplifier from Home Assistant for on/off and volume up and down.
I have an ESP32-ETH01 controller connected via RJ45, equipped with a MAX3232 connector. The DB9 port is connected to my amplifier with a DB9 null modem cable (male/female).
I can’t get it to work. Absolutely nothing happens.
However, all the instructions worked when using the USB port directly between my Home Assistant PC and the amplifier.
I’ve tried other connectors, and each time I’ve also tested swapping the TX and RX ports, but nothing works.
Can anyone help me
ma carte max3232mon controlleur ESP32-ETH01?
esphome:
name: primare-bridge3
esp32:
board: esp32dev
framework:
type: arduino
# si on ne met pas la commande "power_pin: GPIO16"
# la carte ethernet n'est pas reconnue
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO18
clk_mode: GPIO0_IN
phy_addr: 1
power_pin: GPIO16
uart:
id: uart_bus
tx_pin: GPIO04
rx_pin: GPIO32
baud_rate: 4800
stop_bits: 1
data_bits: 8
parity: NONE
debug:
direction: BOTH
# Création des boutons de commande
# Ces commandes ont été testées en liaison serie directe sur mon PC HA
# avec l'instruction PRINTF (car la commande "echo -ne" ne fonctionnait pas)
button:
- platform: template
name: "Primare - Power ON"
on_press:
- uart.write: [0x02, 0x57, 0x0F, 0x02, 0x10, 0x03]
- platform: template
name: "Primare - Standby"
on_press:
- uart.write: [0x02, 0x57, 0x0F, 0x01, 0x10, 0x03]
- platform: template
name: "Primare - Mute"
on_press:
- uart.write: [0x02, 0x57, 0x0F, 0x31, 0x10, 0x03]
- platform: template
name: "Primare - Volume +"
on_press:
- uart.write: [0x02, 0x57, 0x0F, 0x10, 0x10, 0x10, 0x03]
- platform: template
name: "Primare - Volume -"
on_press:
- uart.write: [0x02, 0x57, 0x0F, 0x11, 0x10, 0x03]
- platform: template
name: "Primare - Entrée PLATIN"
on_press:
- uart.write: [0x02, 0x57, 0x0F, 0x3C, 0x10, 0x03]
- platform: template
name: "Primare - Entrée DAPHILE"
on_press:
- uart.write: [0x02, 0x57, 0x0F, 0x06, 0x10, 0x03]
# Service pour envoyer des commandes manuelles si besoin
api:
services:
- service: send_primare_command
variables:
payload: int[]
then:
- uart.write:
id: uart_bus
data: !lambda |-
std::vector<uint8_t> data;
for (auto val : payload) { data.push_back((uint8_t)val); }
return data;
ota:
- platform: esphome
logger:
level: DEBUG
baud_rate: 0
Perhaps my reasoning is flawed and my hardware configuration is unsuitable.
Do you have any ideas?
Thanks in advance.
1 post – 1 participant
HI-FI News
via Home Assistant Community – Latest topics https://ift.tt/2CJWafe
February 19, 2026 at 12:17PM
-
Product on sale
Audiophile Vinyl Records Cleaning BundleOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Product on sale
Easy Start Vinyl Records Cleaning KitOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Vinyl Records Cleaner Easy Groove Concentrate€34.95 incl. VAT -
Easy Groove Super Set€199.00 incl. VAT -
Easy Groove Enzycaster – vinyl records prewash cleaner€34.95 incl. VAT -
Easy Groove Extreme MK. II- vinyl records prewash cleaner€45.00 incl. VAT -
Vinyl Records Cleaner – Easy Groove Virgin Concentrate€35.00 incl. VAT -
Easy Groove Spray&Wipe vinyl records cleaner€34.95 incl. VAT









