klatremis / esphome-for-deye

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

Functionality request #43

Open rvdgaag opened 1 month ago

rvdgaag commented 1 month ago

Hi I would like to have a button to switch off in total the Deye inverter, I believe modbus register 80 makes this possible ?

How do I add this to the yaml ?

fabhund commented 1 month ago

Please note this will not turn off he inverter completly it will only stop the inverter/charging function. The display etc. will still be operational. Further it throws a F19, that is rather undocumented, so proceed with caution. Fx. if you turn it off, and for some reason you loose connection via.modbus you will not be able to turn it on via. the Display again.

Add this to your "Switch" segment in the YAML, and edit name, modbus ID etc. to your needs. https://pastebin.com/mYznfnfg

switch:

rvdgaag commented 1 month ago

will it also stop the discharging of the battery ? Thanks by the way !

My goals is to switch the Deye off when a fire alarm is triggered in my smart home system for safety reasons.

fabhund commented 1 month ago

It should. The inverter trips and stops all inverting. But test it out for yourself, again there is very little documentation for what it does, and throwing an error is also wierd. As an alternative you could re-wire the on/off switch of the inverter to a external Relay controlled via ESP32 (ESPhome) this way you can use the existing built-in function to start/stop the inverter. 2.nd alternative is to mount a "Switchbot" on top of the button to physically push the button.

b1ggi commented 5 days ago

I have no Load/Gen/PV connected to my deye 12k, here are my findings: i used the register 80 to turn off, it worked well until the Battery went into UVP (no problem, enough left).

image

Later i wanted to turn on the through register 80, but only the Grid Inverter switched on. the inverter relay stayed off. I had to press the blue Button on the left to charge the capacitor again.