Skip to content

HME-4 (CT002) with firmware v120 not supported — isSupportVid threshold too high (>= 122) #138

@Bu66as

Description

@Bu66as

Problem

The isSupportVid function in topic.ts sets the firmware version threshold for HME-4 to >= 122.0, but the latest available firmware for HME-4 is v120. This means HME-4 devices are effectively unsupported — no remote_id is computed and the relay receives no cloud responses.

Code Reference

// topic.ts, lines 347-354
if (["HME-2", "HME-4", "TPM-CN"].includes(normalizedVid)) {
    return version >= 122.0;  // ← too high for HME-4
}
if (["HME-3", "HME-5"].includes(normalizedVid)) {
    return version >= 120.0;  // ← works fine
}

Details

  • Device: HME-4 CT-Clamp Smartmeter (CT002)
  • Firmware: v120 (latest available from manufacturer)
  • Salt and version are correctly returned by the EMS API
  • HME-3 and HME-5 have threshold >= 120 and work fine
  • HME-4 is grouped with HME-2 and TPM-CN at >= 122, but no firmware >= 122 exists for HME-4

Expected Behavior

HME-4 should work with firmware v120, just like HME-3 and HME-5. The threshold for HME-4 should be lowered to >= 120.0 (or HME-4 should be moved to the HME-3/HME-5 group).

Suggested Fix

Move "HME-4" from the >= 122.0 group to the >= 120.0 group:

if (["HME-2", "TPM-CN"].includes(normalizedVid)) {
    return version >= 122.0;
}
if (["HME-3", "HME-4", "HME-5"].includes(normalizedVid)) {
    return version >= 120.0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions