[ { "id": "Correction Conso estimé/shelly si injection trop importante", "result": { "structured": "TRIGGER: When declencheur 5 min timer [timer.declencheur_5_min] changes from any state to idle OR When conso prod power sensor [sensor.conso_prod_power] remains below -50 W for 15 seconds OR When gaspillage batterie sensor [sensor.gaspillage_batterie] remains above 15 W for 20 seconds. CONDITIONS: gaspillage batterie sensor [sensor.gaspillage_batterie] is above 15 W AND powerstream 1230 custom load power settings [number.powerstream_1230_custom_load_power_settings] is above 70. ACTIONS: Send a persistent notification titled 'Correction Charge maison à 70 W' with a message containing sensor values AND Log an entry named 'Ajustement shelly' with a message containing sensor values AND Set powerstream 1230 custom load power settings [number.powerstream_1230_custom_load_power_settings] to the value of consigne reelle number [number.consigne_reelle] (defaulting to 70 if unavailable).", "natural_language": { "trigger": "This automation can start in three ways: when the periodic 5-minute timer finishes, when the production consumption power sensor shows an injection (negative consumption) greater than 50 watts for 15 seconds, or when the battery waste sensor reports a value above 15 watts for 20 seconds.", "conditions": "For the automation to proceed, the battery waste sensor must be above 15 watts, and the estimated house consumption setting must be above 70 watts.", "action": "If triggered and conditions are met, the automation sends a notification and logs an entry with details about the current power values. It then adjusts the house consumption power setting to match a target value, defaulting to 70 watts if needed." }, "human_like": "This automation corrects the estimated house power consumption from a Shelly device by adjusting a power setting when excessive battery injection or waste is detected, helping to keep the system in balance.", "complexity": "medium" } } ]