mletenay / home-assistant-pylontech

Home Assistant custom component for Pylontech (high voltage) BMS accessed via console
MIT License
13 stars 2 forks source link

pylontech stream server not working #6

Open tomasvida opened 9 months ago

tomasvida commented 9 months ago

Dear Mletenay, thank you for your work. It is very useful and fills the holes left by the manufacturer's technology. I have been using your integration of the good we inverter into the home assistant for a very long time. Thank you for her! Now I'm trying to get the pylontech integration working, but I keep having problems with it, I can't do it. I tried to use esp32 and ESP8266 but there is no difference between them. I am successfully using the Pylontech Battery Monitoring via WiFi integration that you mention in your tutorial. It works perfectly. But when I upload esphome to ESP, with the attached configuration, I am not able to connect with the help of your integration. Can you please advise me where I am doing wrong? esphome-web-726110.txt

Many thanks! Tomas

toessfrosch commented 2 weeks ago

have you found a solution? If so can you please post the code for ESPhome

guybw commented 2 weeks ago

have you found a solution? If so can you please post the code for ESPhome

Have a look at the code on my GitHub as that might help you out !

tomasvida commented 2 weeks ago

Unfortunately I didn't solve it, but I will take a look at the link of a colleague who answered here today

toessfrosch commented 2 weeks ago

Thanks for the help I have used an ESP32 and changed the following settings. But it does not work.

esp32: board: esp32dev framework: type: arduino

Does something need to be adjusted here? uart: id: uart_bus tx_pin: 1 #GPIO1 or 1 tx pin for pylontech uart rx_pin: 3 #GPIO3 or 3 rx pin for pylontech uart baud_rate: 115200 # baudrate for pylontech uart rx_buffer_size: 2048

website is accessible but without data. Time | level | Tag | Message 19:41:23 | [I] | [safe_mode:041] | Boot seems successful; resetting boot loop counter 19:41:23 | [D] | [esp32.preferences:114] | Saving 1 preferences to flash... 19:41:23 | [D] | [esp32.preferences:143] | Saving 1 preferences to flash: 0 cached, 1 written, 0 failed 19:44:41 | [I] | [main:1308] | Testing pwrsys commands 19:44:41 | [I] | [main:1311] | This has send the pwrsys command 19:44:41 | [D] | [uart_debug:158] | >>> "pwrsys\r\n"

guybw commented 2 weeks ago

Ok so a few things what pylontech is it ? Some of them require you to send a weird command before it will respond! Also the Esp32 might be different pins!

It all depends if the pylontech is on a certain firmware version. I haven’t done sending the command as I updated my firmware and it fixed it for me but I can help if you get stuck

toessfrosch commented 2 weeks ago

Polontech US3000C 10.01.2023 (Console RJ45) ESP32 WROM conect to TX (GPIO1) and RX (GPIO3)