I’ve got a D1 mini flashed with ESPHome with a TTL to RS485 module attached.
On the RS485 module I’ve connected DE & RE together and also to the GPIO defined as the modbus flow_control_pin (D2/GPIO4). DI goes to RX, RO goes to TX. A & B go to the correct pins on the COM port of my Growatt MIC 750 TL-X.
Relevant parts of my yaml:
logger:
level: DEBUG
baud_rate: 0 # Disable log output on the UART as it conflicts with use by modbus
uart:
- id: uart1
baud_rate: 9600
tx_pin: GPIO1 # TX pin
rx_pin: GPIO3 # RX pin
modbus:
uart_id: uart1
flow_control_pin: D2 # GPIO4
# My model: Growatt MIC 750 TL-X single phase inverter
sensor:
- platform: growatt_solar
update_interval: 10s
protocol_version: RTU # RTU2
inverter_status:
name: "Growatt Status Code"
phase_a:
voltage:
name: "Growatt AC Voltage Phase"
current:
name: "Growatt AC Current Phase"
active_power:
name: "Growatt AC Power Phase"
pv1:
voltage:
name: "Growatt PV Voltage"
current:
name: "Growatt PV Current"
active_power:
name: "Growatt PV Active Power"
active_power:
name: "Growatt Grid Active Power"
pv_active_power:
name: "Growatt PV Active Power"
frequency:
name: "Growatt Frequency"
energy_production_day:
name: "Growatt Today's Generation"
total_energy_production:
name: "Growatt Total Energy Production"
inverter_module_temp:
name: "Growatt Inverter Module Temp"
It doesn’t work however. All the inverter statistics just show as “nan” on the front end. No sign of them in the log output either:
Just A and B to the inverter.
D1 mini is powered off the inverters USB port if that matters. Only 5v and gnd wires connected tho.
TTL to RS485 module has one red Led on it. It’s permanently lit when the D1 mini is on. I assume it’s a power led not a communication led?
Have a multimeter but no oscilloscope for troubleshooting.
Bought a different TTL to modbus converter to try (this one just has TX and RX, no DE & RE pins). Works perfectly and I have all the figures I could possibly need
Hi Ralph, I am also having some difficulty with a very similar setup. I have a TL-X1500 which is working well. I have used a D1 Mini with almost identical code to yours and this RS485 <> TTL Modult.
I see the TX led flash at my update interval, but there is never any data from the inverter. I am using pins 3 & 4 on the inverters com port. I am also using the 2nd RS485 channel for the Eastron meter for export limitatio. The latter works perfectly.
I have just tried a 120R termination resistor accross A & B with same result.
Hi, I’m trying to use this integration, and I’m not sure which pins need to be connected from the inverter side, I’m using pin 3(A) and pin 4(B). my inverter is a growatt mic 2000tl-x
Maybe (like for me) the message is not clear. This post deals with a DIY solution and you are asking from a ready-made shinewify usb dongle. …which is not (!) the same. So, are you trying to build a DIY or are you having an issue connecting your shinewifi ?
Sorry i understand now this option is from rs485 so you have both working rs485 modbus and shinelan x with growatt server, i was wrong…i will try connect by rs485 i want to get information in real time and integration with HA
Hi! Does this connected to the COM work also if I will keep the shineWIFI-X connected to the USB? I would like to keep the shineWIFI because the service people monitors via the shine website.
Yes. I also have the shinelink connected at the same time. I’m using a usb split cable to power the nodemcu board and connect the shinelink stick at the same time.