Jump to content

martinisonline

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by martinisonline

  1. Hello, I notice a similar behavior and the issue was the way the variables were defined. There are some power values that are SIGNED, and other are UNSIGNED. Make sure the signed (the ones that can be positive or negative) are properly defined as SIGNED (value_type: S_WORD).
  2. CorneSchutte, what I'm thinking is: The registers have a 16bit length, which means they can handle values from 0 up to 65535. On this specific register, one unit represents 0.1KWh so the maximum value the register can record is 6.553,5 KWh. So, when this value is reached, the register goes to 0 and the "high word" or the register 80 increments. Saying this, it will work fine until it reaches the 6,55 MWh. After that it will reset to 0 if we don't take into account the register number 80! Maybe I'm wrong, but this is my understanding
  3. Many thanks CorneSchutte and Sc00bs for your replies. In a short analysis, looks like your code (CorneShutte) matches my Deye 5Kw registers. Received today the TTL-RS485 adapter, so later today is time for bricolage One question: How is it managed the registers that contain two words? for example the Total Grid Buy Power (KWh) contains two registers (78 for low word and 80 for high word) according to the Modbus doc. I understand that the final value is a combination of these two values, right? Is this being managed by the ESPHome code somehow?
  4. Excellent. Like a lot the format style. my Inverter is a Deye 5K and I'm using a solution based in a raspberry Pi with USB-RS-485 adapter and with a Solark Modbus HA integration. It is working for about 1 year flawless, with a refresh rate of about every 5 seconds. Now I'm thinking to start to sell the surplus energy to the provider but want to do some automations to change some parameters automatically in the Inverter, specifically the battery charge rate according to time of the day and PV production. The integration I have, doesn't have the "write" functionality, is read only. I'm thinking to update the system and start to use this ESP32 approach to gain the "write" possibility. I have some ESP32 devices around and I did before some very simple projects with ESPHome. I've read the thread and the examples provided, but still is a bit confusing how the ESPHome intregration works and how it writes into the inverter registers. Had a look on the version shared by Klatremis, but the registers are completely different from the Deye 5Kw equipment. Can you share more details about your solution? ESPHome code...? Thank you.
  5. Hello, First of all, a big thanks for the different contributors who made an outstanding job and share it after with the community. With this solution (ESP32 and ESPHome) to retrieve/write data to the Deye inverters, how fast is it possible to retrieve data from the inverter? Every second, every 5 seconds, every 30 secs...?? Thanks,
×
×
  • Create New...