Skip to content

Failed to fetch devices from Hame API #219

Description

@dmham187

Before you submit

  • I have read the README and my question is not answered there.
  • I have searched existing issues and this is not a duplicate.

Battery / device models

Marstek Jupiter

Version

1.5.0

Deployment

Home Assistant add-on

B2500 MQTT configuration

Not applicable — I don't have a B2500

Are you using hm2mqtt?

Yes

What's happening?

Since I updated to version 1.5.0 I'm getting errors right after starting the add-on. No data fetched at all.

I tried completely removing the add-on and reinstalled it, but the error is still there. Is it possible to downgrade?

Configuration

log_level: info
username: ******
password: ******
mqtt_uri: mqtt://192.168.x.x:1883
default_broker_id: hame-2025

Logs

[2026-07-31 11:06:25] ERROR: Failed to fetch devices from Hame API
    err: {
      "type": "TypeError",
      "message": "Cannot read properties of null (reading 'trim')",
      "stack":
          TypeError: Cannot read properties of null (reading 'trim')
              at parseVersion (file:///app/dist/device_matrix.js:454:29)
              at file:///app/dist/main.js:136:31
              at Array.map (<anonymous>)
              at start (file:///app/dist/main.js:122:46)
              at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
              at async file:///app/dist/main.js:322:1
    }
[2026-07-31 11:06:25] ERROR: Failed to start MQTT forwarder
    err: {
      "type": "Error",
      "message": "Unable to fetch device information from Hame API: Cannot read properties of null (reading 'trim'): Cannot read properties of null (reading 'trim')",
      "stack":
          Error: Unable to fetch device information from Hame API: Cannot read properties of null (reading 'trim')
              at start (file:///app/dist/main.js:158:19)
              at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
              at async file:///app/dist/main.js:322:1
          caused by: TypeError: Cannot read properties of null (reading 'trim')
              at parseVersion (file:///app/dist/device_matrix.js:454:29)
              at file:///app/dist/main.js:136:31
              at Array.map (<anonymous>)
              at start (file:///app/dist/main.js:122:46)
              at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
              at async file:///app/dist/main.js:322:1
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions