output_Threshold input_Threshold min_Entladeleistung_PV min_Ladeleistung_Akku max_Wechselrichter_Ausgang output input timeout2 ausgang_max timeout1 Setzen der Variablen output_Threshold 30 input_Threshold 30 min_Entladeleistung_PV 100 min_Ladeleistung_Akku 50 max_Wechselrichter_Ausgang 600 Hauptscript ne shelly.1.shellypro3em#34987a453838#1.EM0.TotalActivePower Setzen der Ausgangsleistung output ADD 50 MINUS 50 state.val 40 output_Threshold 1 val zendure-solarflow.0.A8yh63.229NdfXd.outputHomePower Setzen der Eingangsleistung input ADD 50 MINUS 50 MULTIPLY 1 state.val -1 80 input_Threshold 1 val zendure-solarflow.0.A8yh63.229NdfXd.gridInputPower AND GT output 0 GT val zendure-solarflow.0.A8yh63.229NdfXd.solarInputPower min_Entladeleistung_PV 1. Entladen GT val zendure-solarflow.0.A8yh63.229NdfXd.solarInputPower min_Entladeleistung_PV PV Leistung in Hausverbrauch ausgang_max MINUS 1 val zendure-solarflow.0.A8yh63.229NdfXd.solarInputPower 50 min_Ladeleistung_Akku ausgang_max max_Wechselrichter_Ausgang GT output ausgang_max output ausgang_max timeout1 60 sec timeout1 = AC-Laden Threshold NEQ val zendure-solarflow.0.A8yh63.229NdfXd.acMode 2 zendure-solarflow.0.A8yh63.229NdfXd.control.acMode FALSE 2 zendure-solarflow.0.A8yh63.229NdfXd.control.setOutputLimit FALSE output timeout2 GTE val zendure-solarflow.0.A8yh63.229NdfXd.electricLevel 99 EQ val zendure-solarflow.0.A8yh63.229NdfXd.solarInputPower 0 2. Bypass wenn Akku voll, AC auf Output zendure-solarflow.0.A8yh63.229NdfXd.control.acMode FALSE 2 timeout2 TRUE between 06:00 22:59 LT val zendure-solarflow.0.A8yh63.229NdfXd.electricLevel 100 GT input 0 3. Laden mit PV Überschuss, AC auf Input zendure-solarflow.0.A8yh63.229NdfXd.control.setInputLimit FALSE input NEQ val zendure-solarflow.0.A8yh63.229NdfXd.acMode 1 zendure-solarflow.0.A8yh63.229NdfXd.control.acMode FALSE 1 timeout1 timeout2 4. Ein/Ausgangsleistung auf 0 setzen timeout2 30 sec zendure-solarflow.0.A8yh63.229NdfXd.control.setOutputLimit FALSE 0 zendure-solarflow.0.A8yh63.229NdfXd.control.setInputLimit FALSE 0