Skip to content

OTA update for Sonoff Smart Plug S60ZBTPF v2.1.3 fails with Status.INVALID_IMAGE: 150 #386

Open

Description

@vanwinssen

OTA update for Sonoff Smart Plug S60ZBTPF v2.1.3 fails with Status.INVALID_IMAGE: 150

Description

I recently purchased a new SONOFF S60ZBTPF smart plug and paired it with Home Assistant using ZHA.

Home Assistant detected an available firmware update from version 0x00001002 (v1.0.0.2) to 0x00002103 (v2.1.3), using OTA image #364: SONOFF Smart Plug S60ZBTPF/S60ZBTPG v2.1.3.

The update consistently fails with the following error:

Update was not successful: <Status.INVALID_IMAGE: 150>

The OTA transfer starts successfully, and according to the logs the device requests image blocks. However, after receiving only a small portion of the image, the device reports Status.INVALID_IMAGE.
The update progress reaches approximately 0,06% before failing.

I also tried installing the previous OTA image manually, but it failed with the same error.

Product and upgrade information

The issue occurs with a newly purchased SONOFF S60ZBTPF running firmware version 0x00001002.

Property Value
Manufacturer SONOFF
Model S60ZBTPF
Hardware version 16
Installed firmware 0x00001002
Target firmware 0x00002103
OTA image #364 — S60ZBTPF/S60ZBTPG v2.1.3
Result Status.INVALID_IMAGE: 150

Environment

  • Home Assistant Core: 2026.10.4
  • Home Assistant OS: 18.3
  • OS kernel version: 6.18.52-haos
  • Integration: ZHA
  • Coordinator: SONOFF Dongle-LMG21
  • Device: SONOFF S60ZBTPF
  • Installed firmware: 0x00001002
  • Target firmware: 0x00002103

Expected behavior

The firmware update should install successfully on the Sonoff S60ZBTPF device with version 1.0.0.2.

Additional context

The relevant logs show that the device successfully requests image blocks and that Home Assistant responds with Status.SUCCESS. The device subsequently reports:

upgrade_end(status=Status.INVALID_IMAGE: 150)

This suggests that the device rejects the firmware image, although the exact reason is not given.

I use other Sonoff products with ZHA and these products had no issues with upgrades.
The issue only occurs with this SONOFF S60ZBTPF smart plug.
Any ideas why this upgrade error occurs or how to solve this? Thanks.

Summary of the logs:

OTA update started for update.sonoff_kwmeter_firmware.
Current firmware version: 0x00001002
Available firmware version: 0x00002103
OTA image size: 148864 bytes

Device requested OTA image blocks.
Two OTA image-block requests were answered with Status.SUCCESS. The reported update progress reached only 0.06% before the device reported upgrade_end(status=Status.INVALID_IMAGE: 150).

Update failed:
Update was not successful: <Status.INVALID_IMAGE: 150>

Power and voltage measurements continued to be received after the update failure.

I have included the full relevant ZHA logs.

zha-log.txt

Activity

  1. puddly commented on Oct 27, 2026

    @puddly
    Member

    Thanks for reporting this. Could you also attach ZHA diagnostics JSON for the device?

  2. vanwinssen commented on Oct 27, 2026

    @vanwinssen
    Author
  3. puddly commented on Oct 27, 2026

    @puddly
    Member

    @1775939187 Can you look into this problem? Why is the device rejecting the OTA image with INVALID_IMAGE?

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

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions