Good afternoon!
First off apologies, I’ve been struggling for days on this and I would really appreciate some help - if you can.
I have a esphome running on a esp8266 with an rs232 board connected to a Pylontech battery.
I am looking to setup some sensors that will show the status of the battery when I send commands like “info” or “pwr” to it via UART
Right now, in my yaml I have this
uart:
id: uart_bus
tx_pin: 1
rx_pin: 3
baud_rate: 115200
rx_buffer_size: 2048
debug:
direction: BOTH
dummy_receiver: false
after:
delimiter: "\n"
sequence:
- lambda: UARTDebug::log_string(direction, bytes);
interval:
- interval: 10s
then:
# PI30/PI30MAX/PI30REVO/PI41
- logger.log:
level: INFO
format: "Testing PI30/PI30MAX/PI30REVO/PI41 commands..."
- logger.log:
level: INFO
format: "This is the set of commands supported by the pipsolar component!"
# For escape characters, you must use double quotes!
- uart.write: "info\r\n"
- delay: 1s
in return I get this every 10 seconds which is great
Time level Tag Message
13:59:53 [I] [main:087]
Testing PI30/PI30MAX/PI30REVO/PI41 commands...
13:59:53 [I] [main:090]
This is the set of commands supported by the pipsolar component!
13:59:53 [D] [uart_debug:158]
>>> "info\r\n"
13:59:53 [D] [uart_debug:158]
<<< "info\n"
13:59:53 [D] [uart_debug:158]
<<< "\r@\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rDevice address : 1\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rManufacturer : Pylon\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rDevice name : US2\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rBoard version : PHANTOMS\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rMain Soft version : B65.12\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rSoft version : V2.3\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rBoot version : V2.0\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rComm version : V2.0\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rRelease Date : 19-06-22\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rBarcode : PPT12345\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\r\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rSpecification : 48V/50AH\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rCell Number : 15\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rMax Dischg Curr : -100000mA\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rMax Charge Curr : 102000mA\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rEPONPort rate : 1200\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rConsole Port rate : 115200\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rCommand completed successfully\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\r$$\r\n"
13:59:53 [D] [uart_debug:158]
<<< "\rpylon>\n"
13:59:53 [D] [uart_debug:158]
<<< "\rpylon>"
What I am struggling is to get (for example) is a sensor that sets the “Manufacturer” as “Pytlontech”
The idea is at some point to have it pull battery % for example and display that in HA.
Any help would be amazing!