klatremis / esphome-for-deye

Esphome component for Deye 3 phase inverters for Home Assistant
144 stars 32 forks source link

Modbus-register #8

Closed dowermyr closed 1 year ago

dowermyr commented 1 year ago

Hi! Do you have the modbus-register for this? I wantto add som points

kababoom commented 1 year ago

Here's the version I've used, lot's of Chinese in it but usable.

Modbus.Deye.amit.posun.docx

dowermyr commented 1 year ago

Trying to find something that would trigger discharge of battery to sell to grid. Any idea? Right now I am using zero grid to CT. Trying to find a register so I can change the working mode but I can't find any.

kababoom commented 1 year ago

I use this for the ESP:


select:
  - platform: modbus_controller
    use_write_multiple: true
    modbus_controller_id: ${modbus_controller_id}
    name: "sun3p-Limit control mode"
    id: sun3p_limit_control_mode
    address: 142
    value_type: U_WORD
    optionsmap:
      "Allow Export": 0
      # "Essentials": 1
      "Zero Export": 2

Then something like this for the card:


type: entities
entities:
  - entity: select.sun3p_limit_control_mode
    name: Limit Mode
  - entity: number.sun3p_maximum_battery_discharge_current
  - entity: number.sun3p_maximum_battery_charge_current
image
dowermyr commented 1 year ago

Hi! Trying to find adress for peak shaving. Both on/off and set the value. Do you know if it exist?

EDIT: Found value on adress 191 but not the on/off

tomatensaus commented 1 year ago

I have a single phase deye inverter and peak shaving

enable is at address: 280 optionsmap: "None": 0 "Enable": 0x0100

Just dump all registers.... change setting and dump them again... slow process but you can reverse engineer it. Seems like they are not the same at all, sorry the above will not work