Skip to content

Instantly share code, notes, and snippets.

@dyipon
Created June 28, 2025 14:47
Show Gist options
  • Save dyipon/f3c2d8024a26eeefd6fa87f931de84a7 to your computer and use it in GitHub Desktop.
Save dyipon/f3c2d8024a26eeefd6fa87f931de84a7 to your computer and use it in GitHub Desktop.
#pip3 install wallbox
from wallbox import Wallbox, Statuses
import time
import datetime
import sys
w = Wallbox("user", "pass") #my.wallbox.com user/pass
# Authenticate with the credentials above
w.authenticate()
# Print a list of chargers in the account
print(w.getChargersList())
# Get charger data for all chargers in the list, then lock and unlock chargers
for chargerId in w.getChargersList():
chargerStatus = w.getChargerStatus(chargerId)
print(f"Current Max Charging Current to: {chargerStatus['config_data']['max_charging_value']}")
max_charging_current = int(sys.argv[1]) if len(sys.argv) > 1 else 16
w.setMaxChargingCurrent(chargerId, max_charging_current)
chargerStatus = w.getChargerStatus(chargerId)
print(f"Setting Max Charging Current to: {chargerStatus['config_data']['max_charging_value']}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment