Innr SP242 smart plug Sumation Delivered out by factor of 100

I’ve recently added a couple of Innr SP242 plugs to my zigbee network (ZHA) and observing the values output from the plug all looks sensible apart from the SummationDelivered, this appears to b out by a factor of 100 - apparently my washing machine has consumed 250kWh today!

I can see there were some similar issues on github with other innr plugs but looks like they were resolved some time ago.

Can anyone advise how to get sensible readings out of my plug?

Plug Firmware: 0x16183682

1 Like

I found your question when I was having the same issue, but managed to fix it.

If you haven’t yet fixed it, or if anyone else comes here looking for the fix, you need to install a ZHA quirk, which was originally for the SP240 but works for the 242.

Full procedure:

  1. Install this quirk but change the references to the SP240 to SP242

  2. Remove device from HA

  3. Reboot HA

  4. Put the SP242 into factory reset (long press side button until LED flashes rapid green)

  5. After HA reboots, add device back as normal.

That should do it, it worked for me :slight_smile:

3 Likes

How do we install, I’ve not done it before

P.s thank you very much I really appreciate it, I will try this when I can

There is a good guide here about how to install ZHA quirks.

1 Like

I added the quirk but didn’t remove the devices and it still seems to be working great without removing and re-adding

Thanks for this.

I created the new folder, copied the quirk into a new file (with a .py suffix in case anyone reading isn’t sure), added the folder details to the config file and replaced the SP240 references with SP242 then restarted HA, at which point the existing Innr plugs all started showing the correct values, so I didn’t have to remove/readd them.

Time to go off to Amazon and get some more now!

Paul

3 Likes

That’s worked perfectly for me too, thanks!
I also have an automation refreshing the figures every 5 minutes which keeps everything up to date, otherwise it would be completely random how often the energy summation would update, sometimes hours between updates.

1 Like

Late to the party here, but less success…
Have never added a quirk before and haven’t done much with configuration.yaml but this is what I have done:

Created innr_sp242_plug.py based on the file here

but swapping all 4 occurrences of 240 to 242 (because I have innr SP 242 plugs, 5 of them so far).
Using File editor, I created this folder path:
/homeassistant/config/zha_quirks
and uploaded innr_sp242_plug.py to it.

I then edited /homeassistant/configuration.yaml and added at the end:

zha:
database_path: /config/zigbee.db
enable_quirks: true
custom_quirks_path: /config/zha_quirks/

I restart HA, and all entities in dashboard return no values.

If I prefix all 4 of those lines in configuration.yaml with ‘#’ and restart, it’s all back to normal in the dashboards.
Any clues as to what I am doing wrong please?

Here are 3 of the plugs in Devices:

Just a quick thank you. Same problem and this (and the links to how to add quirks) fixed it.

1 Like

ZHA,
The route I went for fixing this was through updating the firmware, maybe that will work for you?

  1. configuration.yaml
zha:
  zigpy_config:
    ota:
      extra_providers:
        - type: z2m

(This enables ZHA to get firmware updates provided by Zigbee2MQTT zigpy wiki)
2. Restart Home Assistant
3. Open your Home Assistant instance and manage your pending updates.
4. Click ⟳ Check for updates
5. The update then appeared for me. I clicked it, then Update, it did its thing, the energy usage is more believable and the updates more timely :smiley:

SP 242
by innr
Connected via SkyConnect v1.0
Firmware: 0x191e3685

Hi there, if possible edit your post, if you update the firmware to 1.9XX the custom quirk is no longer needed .

Check YOUR_HOMEASSISTANT_URL/config/updates if you’re using the normal zigbee integration ( refresh button top right)
And check OTA updates | Zigbee2MQTT if you’re using zigbee2mqtt.

Updating your firmware fixes this :slight_smile:

1 Like

Thanks for your post, wish I had seen this sooner.
I had the quirk in place for about a year and updated the plugs firmware a couple of weeks ago, only just noticed the summation data has been a complete mess ever since.
Do we have any way of correcting, or just wiping that data from the Energy dashboard?
TIA

Firmware 0x191e3685 seems to be the cause of the problem.

 Summation delivered 9 minutes ago   4,423.000 kWh

Firmware: 0x19223685 works fine

Summation delivered 11 minutes ago    4.447 kWh

Unfortunately devices that come with 0x191e3685. There’s also no way to upgrade the 1922 devices to 191e because it’s not an OTA update ( INNR SP242 firmware issue, newer devices comes with a later firmware than what is available. · Issue #28637 · Koenkk/zigbee2mqtt · GitHub ) - I’m dubious of gerryinnr’s claim that about the only change.