tbnobody / OpenDTU

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters
GNU General Public License v2.0
1.78k stars 495 forks source link

[Request] Option to set output limit on MQTT disconnection #681

Open DejanBukovec opened 1 year ago

DejanBukovec commented 1 year ago

Is your feature request related to a problem? Please describe.

Hi, I have one request for new feature which will be probably usefull for a lot of users... I would like feature which set non persitent limit to some value when opendtu lose connection to MQTT...

Describe the solution you'd like

I would like dynamic set limit depend of house power usage which I get in Home Assistant by zwave power meter. I would like to do zero export function but need solution when MQTT server, HA or WIFI/LAN stop working then it put inverters output limits to some predefined values... So I need some option to set lower limit value when I dont have informations about current power usage(If HomeAssistant do not work or something is wrong with switch, wifi)... If wifi and network work I can call from shelly or esphome URL to set limit, but need something which do not depend of network...
If possible it can also be some BT point to point connection... Or in worse case some input trigger which set inverters limit to value which is set as persistent limit and I will then put some another esp board to this input and it will trigger input to lower power...

Describe alternatives you've considered

As another check I will also do in shelly script which will check openDTU URL and if DTU will not respond and shelly power production will be over some limit I will turn off relay which will turn off inverters but this is not so elegant way to set inverters output limits to lowest value...

Additional context

No response

stefan123t commented 2 months ago

@DejanBukovec please double check the Dynamic Power Limiter (DPL) function in the daughter project OpenDTU-OnBattery.

I have described a possible PM+DPL setup with a Shelly Pro3EM as Power Meter (PM) here in another issue.