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

New version published for testing: Stromer | Homey

Adds Estimated Charge Time in both minutes and hours, Battery Size + Charge Target settings, a Flow trigger for energy-rate scheduling, and confirmed Homey Self Hosted Server support.

The app is featured in the popular Youtube Channel from Bikes and Care, watch it here from 1:30:

I see exactly the same: whet am I doing wrong?

Seeing the same as….?

I don’t see the token part in any of the sections

@Ingo_Boddeling are you able to help @JefV , since I only used MacOs software, not familiair with this program…

Ok, I’ve solved it myself: The client_id is present in another host: stromer-portal.ch port:443

Nice addition! Could you provide an example Flow in which you have incorporated the estimated charge time in both minutes and hours, as well as the battery capacity and desired charge level settings?

Hi Wout. I’d really like to use this app and followed all the steps using Charles. I found my client_id via stromer-portal.ch (instead of api3.stromer-portal.ch). No client_secret is provided. When I enter my credentials in the Homey app it tells me it will authenticate with my bike, but nothing happens. I get no confirmation or error message and in the end my bike is not visible. Any clue on what is going wrong?

Did you try both these steps?

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
  4. 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
    }
    
  8. 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

Adding Your Bike to Homey

  1. In Homey, go to Devices → Add Device
  2. Select “Stromer” from the list
  3. Choose “Stromer Bike”
  4. Enter your Stromer account credentials:
    • Email: Your Stromer account email
    • Password: Your Stromer account password
    • Client ID: The client_id you retrieved (or use default)
    • Client Secret: (Optional) Only needed for v3 API accounts
  5. Click “Login”
  6. Select your bike from the list (auto-selected if you have only one bike)
  7. Click “Add Device”

Note: If you don’t provide a client_id, the app will use a default client_id that works for most accounts. Client secret is optional and only required for older v3 API accounts.

Hi @Mark_Meijer2 happy to hear, I reached out to Stromer to help me help users with this item, it is tough to find the client ID… Posted two potential routes to figure it out..