Skip to content

v0.9.0 - FleetAPI Support

Compare
Choose a tag to compare
@jasonacox jasonacox released this 21 May 00:47
· 128 commits to main since this release
4dcc36f

What's Changed

  • v0.9.0 - Tesla (official) FleetAPI cloud mode support by @jasonacox in #91 - This adds the FleetAPI class and mapping for pypowerwall.
  • FleetAPI setup provided by module CLI: python -m pypowerwall fleetapi
  • Adds auto_select mode for instatiating a Powerwall connection: local mode, fleetapi mode and cloud mode. Provides pw.mode class variable as the mode selected.
    import pypowerwall

    # Option 1 - LOCAL MODE - Credentials for your Powerwall - Customer Login
    password="password"
    email="[email protected]"
    host = "10.0.1.123"               # Address of your Powerwall Gateway
    timezone = "America/Los_Angeles"  # Your local timezone

    # Option 2 - FLEETAPI MODE - Requires Setup
    host = password = email = ""
    timezone = "America/Los_Angeles" 

    # Option 3 - CLOUD MODE - Requires Setup
    host = password = ""
    email='[email protected]'
    timezone = "America/Los_Angeles"
 
    # Connect to Powerwall - auto_select mode (local, fleetapi, cloud)
    pw = pypowerwall.Powerwall(host,password,email,timezone,auto_select=True)

    print(f"Connected to Powerwall with mode: {pw.mode}")

Full Changelog: v0.8.5...v0.9.0