[APP][Pro] Stromer - Connect your Stromer e-bike to Homey

Retrieving API Credentials (MITM Method)

To use this app, you need to retrieve your Stromer API credentials. This requires intercepting the login request from the official Stromer app. Here’s how:

Method 1: Using Charles Proxy (Mac/Windows/Linux)

Step 1: Install Charles Proxy

  1. Download Charles Proxy from https://www.charlesproxy.com/
  2. Install and launch Charles
  3. Accept the trial or enter license key

Step 2: Configure SSL Proxying

  1. In Charles, go to Proxy → SSL Proxying Settings
  2. Click “Add” under SSL Proxying
  3. Enter:
  • Host: api3.stromer-portal.ch
  • Port: 443
  1. Click OK

Step 3: Install Charles Certificate on iPhone

  1. In Charles, go to Help → SSL Proxying → Install Charles Root Certificate on a Mobile Device
  2. Follow the instructions to configure your iPhone to use Charles proxy
  3. On iPhone, go to Settings → General → About → Certificate Trust Settings
  4. Enable full trust for Charles Proxy certificate

Step 4: Configure iPhone Proxy

  1. On iPhone, go to Settings → Wi-Fi
  2. Tap the (i) icon next to your connected network
  3. Scroll to HTTP Proxy → Configure Proxy → Manual
  4. Enter your Mac’s IP address (shown in Charles)
  5. Port: 8888
  6. Save

Step 5: Intercept Login Request

  1. Open Stromer OMNI app on iPhone
  2. Log out if already logged in
  3. In Charles, clear the session (Ctrl+K / Cmd+K)
  4. Log in with your Stromer credentials
  5. In Charles, find the request to api3.stromer-portal.ch/mobile/v4/o/token/ or /o/token/
  6. Click on the request → Request tab
  7. Look for the JSON body containing:

{ “grant_type”: “password”, “username”: “your@email.com”, “password”: “yourpassword”, “client_id”: “YOUR_CLIENT_ID_HERE”, “client_secret”: “YOUR_CLIENT_SECRET_HERE” // Only for v3 API }

  1. Copy the client_id (and client_secret if present)

Step 6: Clean Up

  1. On iPhone, go back to Wi-Fi settings → HTTP Proxy → Off
  2. Remove Charles certificate from iPhone (Settings → General → VPN & Device Management)

Method 2: Using mitmproxy (Mac/Linux - Advanced Users)

Step 1: Install mitmproxy

brew install mitmproxy # Mac # OR pip install mitmproxy # Linux/Mac

Step 2: Start mitmproxy

mitmproxy --listen-port 8080

Step 3: Configure iPhone Proxy

  1. Settings → Wi-Fi → (i) → HTTP Proxy → Manual
  2. Server: Your computer’s IP address
  3. Port: 8080

Step 4: Install Certificate

  1. On iPhone, browse to http://mitm.it
  2. Install the certificate for iOS
  3. Settings → General → About → Certificate Trust Settings → Enable

Step 5: Capture Credentials

  1. Open Stromer app on iPhone
  2. Log in with credentials
  3. In mitmproxy terminal, press / to search
  4. Search for token
  5. Press Enter to view request
  6. Look for client_id and client_secret in request body