This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "id": "ev_discharge_tab_001", | |
| "type": "tab", | |
| "label": "EV Discharge Limiting", | |
| "disabled": false, | |
| "info": "**EV Discharge Limiting v2**\n\nPrevents the battery from discharging to power the EV charger,\nbut ensures the battery still covers house loads even while the EV is running.\n\n**How it works:**\n1. Every 2s, reads battery power, grid usage, grid export, and current discharge limit.\n2. Every 2s, polls the EV charger API for current EV wattage.\n3. Calculates total household consumption minus EV = house-only load.\n4. Sets discharge limit to cover house-only load, never the EV.\n5. If EV stops, restores full discharge limit.\n\n**Key improvement over v1:**\nUses grid import to detect when the house needs more power from the battery,\neven if the battery had been limited to 0W. For example, if the EV is charging\nand you turn on a dryer, the script sees grid import rise and raises the\ndischarge limit so the battery covers the dryer.\n\n**Registers:**\n- Read: 5 |