Skip to content

Commit

Permalink
standardized some topic nomenclature
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaDodds committed Jan 10, 2025
1 parent 3075ed7 commit 3a00e03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"grid_charging_enabled": f"Tesla/settings/grid_charging_enabled",
"trigger_ess_charge_scheduling": f"Cerbomoticzgx/EnergyBroker/RunTrigger",
"system_shutdown": f"Cerbomoticzgx/system/shutdown",
"ess_net_metering_enabled": f"Cerbomoticzgx/system/EssNetMeteringEnabled",
"ess_net_metering_overridden": f"Cerbomoticzgx/system/EssNetMeteringOverridden", # When this is toggled on, DynESS will not operate with automated buy/sell decisions
"ess_net_metering_batt_min_soc": f"Cerbomoticzgx/system/EssNetMeteringBattMinSoc",
"ess_net_metering_enabled": f"Cerbomoticzgx/system/ess_net_metering_enabled",
"ess_net_metering_overridden": f"Cerbomoticzgx/system/ess_net_metering_overridden", # When this is toggled on, DynESS will not operate with automated buy/sell decisions
"ess_net_metering_batt_min_soc": f"Cerbomoticzgx/system/ess_net_metering_batt_min_soc",

# Tibber
"tibber_total": f"N/{systemId0}/Tibber/home/energy/day/euro_day_total", # workaround to update dz
Expand Down
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ def post_startup():
logging.info(f"post_startup(): Re-storing previous state if available...")

restore_and_publish('ac_power_setpoint', default='0.0')
restore_and_publish('ess_net_metering_batt_min_soc')
restore_and_publish('ess_net_metering_enabled')
restore_and_publish('ess_net_metering_batt_min_soc', default='80.0')
restore_and_publish('ess_net_metering_enabled', default=False)
restore_and_publish('ess_net_metering_overridden', default=False)
restore_and_publish('grid_charging_enabled', default=False)
restore_and_publish('grid_charging_enabled_by_price', default=False)
restore_and_publish('ess_net_metering_overridden', default=False)
restore_and_publish('tesla_charge_requested', default=False)

# clear the energy sale scheduling status message
Expand Down

0 comments on commit 3a00e03

Please sign in to comment.