Skip to content

Commit

Permalink
hotfix: set a sane default on dyness net metering
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaDodds committed Jan 9, 2025
1 parent 91e6c6b commit 2742618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/energy_broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def publish_export_schedule(price_list: list) -> None:


def get_todays_n_highest_prices(batt_soc: float, ess_net_metering_batt_min_soc: float = 0.0) -> list:
ess_net_metering_enabled = STATE.get('ess_net_metering_enabled') or None
ess_net_metering_enabled = STATE.get('ess_net_metering_enabled') or False

if batt_soc > ess_net_metering_batt_min_soc and ess_net_metering_enabled:
n = calculate_max_discharge_slots_needed(batt_soc - ess_net_metering_batt_min_soc)
Expand Down
3 changes: 1 addition & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@
STATE = GlobalStateClient()

ACTIVE_MODULES = json.loads(retrieve_setting('ACTIVE_MODULES'))
ESS_NET_METERING = bool(retrieve_setting('TIBBER_UPDATES_ENABLED')) or False
DYNAMIC_ESS_NET_METERING_ENABLED = bool(retrieve_setting('DYNAMIC_ESS_NET_METERING_ENABLED')) or False
HOME_CONNECT_APPLIANCE_SCHEDULING = bool(retrieve_setting("HOME_CONNECT_APPLIANCE_SCHEDULING")) or False


def ev_charge_controller(): EvCharger().main()

def energy_broker(): energybroker()
Expand Down

0 comments on commit 2742618

Please sign in to comment.