shelly-homekit icon indicating copy to clipboard operation
shelly-homekit copied to clipboard

Shelly Plus Plug S

Open salee31 opened this issue 2 years ago • 25 comments

I couldn‘t find any comments regarding the Plus Plug S, is there any news regarding this device? Is there upcoming support for Shelly Plus Plug S device?

salee31 avatar Apr 02 '23 11:04 salee31

Any update on this?

tvavrys avatar Jul 15 '23 20:07 tvavrys

Hey,

created a PR with a basic implementation without LED support. There are i think neopixel stuff used for LED stuff and not figured out how to use them right now.

Currently it support the button, homekit support, power- and temperature measurement.

trucidare avatar Aug 03 '23 14:08 trucidare

So I can't get my Shelly plug s flashed. Shows no reaction... As soon as I this link: http://192.168.178.66/ota?url=http://rojer.me/files/shelly/shelly-homekit-ShellyPlugS.zip I get this message: Trying to update from http://rojer.me/files/shelly/shelly-homekit-ShellyPlugS.zip

When I go back to the Ip of the Shelly no Homekit view comes. Latest original firmware has been updated and wifi connection is strong. Does anyone know what this can be?

bsoener avatar Aug 10 '23 19:08 bsoener

@bsoener Are you trying to flash a Shelly Plug S or Shelly Plus Plug S with the Shelly Plug S firmware?

Anyway, try to set a gateway and/or DNS IP in the network section of your device.

raubsau avatar Aug 27 '23 07:08 raubsau

I'm trying a Shelly Plus Plug S. But from what I've been told, this device is not supported?

bsoener avatar Aug 27 '23 08:08 bsoener

Is there no solution for this? Or an alternative to flashing?

bsoener avatar Sep 17 '23 08:09 bsoener

I am waiting for a "native" solution too. In the meantime, I will use Hombridge (https://homebridge.io/)

raubsau avatar Sep 17 '23 09:09 raubsau

Ok. I have already installed the plugin on the Homebridge. However, a message appears on the administration page:

homebridge-shelly No devices discovered

Can you please tell me what could be the reason for this?

bsoener avatar Sep 17 '23 09:09 bsoener

Hi, please is possibility to make flash the Shelly Plus Plug S with Homekit? I have the same issue like bsoener commented on Aug 10

Older Shelly Plug S was OK, also Shelly S - with no problem

jamesv91 avatar Oct 25 '23 12:10 jamesv91

Can you please tell me what could be the reason for this? I cannot help you, sorry...

raubsau avatar Oct 25 '23 14:10 raubsau

I am on FW 1.0.8 with my Shelly Plus Plug S. But the homekit FW does not work. Same Problem

So I can't get my Shelly plug s flashed. Shows no reaction... As soon as I this link: http://192.168.178.66/ota?url=http://rojer.me/files/shelly/shelly-homekit-ShellyPlugS.zip I get this message: Trying to update from http://rojer.me/files/shelly/shelly-homekit-ShellyPlugS.zip

When I go back to the Ip of the Shelly no Homekit view comes. Latest original firmware has been updated and wifi connection is strong. Does anyone know what this can be?

ragt03knisternd avatar Nov 21 '23 23:11 ragt03knisternd

We currently support only the Shelly Plug S (which is no longer sold by Shelly) and not the new Shelly Plus Plug S!

timoschilling avatar Nov 22 '23 08:11 timoschilling

Is there any timewindow when it will be supported or do you have a workaround? Thanks a lot

Ladenburg1 avatar Nov 23 '23 18:11 Ladenburg1

Hey,

created a PR with a basic implementation without LED support. There are i think neopixel stuff used for LED stuff and not figured out how to use them right now.

Currently it support the button, homekit support, power- and temperature measurement.

Hey @trucidare , I really like the work which is done for Shelly Homekit :) And I bought Shelly Plus Plug S and tried to use your PR. But I am not used to Git etc. Tried to "Makefile" a new .Zip to Upload the firmware, but failed. Any chance to get the .zip File from you to flash my shelly?

gizzy90 avatar Dec 26 '23 13:12 gizzy90

Hey, find the build firmware in the link:

fw.zip

build using make ShellyPlusPlugS LOCAL=0

trucidare avatar Dec 31 '23 14:12 trucidare

Hi, I tried to update the Shelly Plus Plug 1 with this SW from @trucidare but I failed. Could you please explain me how to do this? And does the Plus Plug 1 then work with Homekit? Thanks a lot!!

fek89 avatar Jan 05 '24 10:01 fek89

Hey, find the build firmware in the link:

fw.zip

build using make ShellyPlusPlugS LOCAL=0

Sorry, I don't know what I'm doing - but I tried

make ShellyPlusPlugS LOCAL=0

and get

make: *** No rule to make target ShellyPlusPlugS'. Stop.`

Would you be so kind and tell me what to do to build a firmware for ShellyPlusPlugS

theArch86 avatar Jan 10 '24 07:01 theArch86

Hi, i have the same issue (Plus Plug S v.2 ) - there is a newer Version here in Germany I think only with physical changes - some contacts had not specific length and so on... Do you think there will be a firmware someday for this plug - otherwise I will send it back?! Best regards and thanks for your work you share here!

MountainMan1977 avatar Jan 21 '24 11:01 MountainMan1977

I think there is nothing going on here. Thank you all for your great work using Shellys with Apple Homekit! I'm switching to original Shelly firmware and integrate it in Homekit using HomeAssistant. This works fine running on a Raspberry. Best regards

Ladenburg1 avatar Feb 09 '24 22:02 Ladenburg1

I compiled the branch of @trucidare's fork (binary attached here: shelly-homekit-ShellyPlusPlugS.zip) and I'm having trouble flashing it.

Edit: I seem to have the Shelly Plus Plug S v2 SNPL-10112EU: https://kb.shelly.cloud/knowledge-base/shelly-plus-plug-s-v2 This is the model name that is printed on the plug. The device information that one can download in the web interface state that it is a SNPL-00112EU. Don't know if this matters, or it means that both devices can use the same firmware.

After enabling debug logging, I found this message:

shelly_ota.cpp:245 Aborting update: backend 0x3ffe0a98 aborts update at file bootloader.bin: -4: app / fs already written, can't update boot

I'd like to help with the implementation for v2. Any pointers on how to get information about the hardware? It seems that it's necessary to break the case to take a look at the hardware.

Edit2: I found this comment regarding the error: https://github.com/tasmota/mgos32-to-tasmota32/issues/31#issuecomment-1865993407

  • It seems that the order of entries in the zip file matters. The manifest must come first and the remaining files must be added in thee same order as they are listed in the manifest file.
  • Additionally, some files must be written before others.
  • I think boot and the partition table must always come first, as they have to be written before app and fs. This is also consistent with the manifest of the official firmware.
  • Now the error is shelly_ota.cpp:245 Aborting update: backend error while processing data: -1 (-10: Cannot relocate shelly)", which may be because the new partition table is incompatible with the one of the stock firmware. Or maybe something entirely different.

Edit3: I managed to flash the firmware by using the fs order from the stock firmware as well as its partition table. By adding another nvs, I seem to have managed to get the same layout as the stock image. However, I won't share the file because I'm not sure how safe it is to use. It may brick devices as soon as something is written to the persistent file system because the addresses are not aligned with the one from the actual build of the firmware.

So I can confirm that the PR of @trucidare works if the layout is changed. I think this can be fixed by changing the FS config in mos.yml, but I don't know how this works. This may be a thing that can be done in 10s if someone knows what they are doing.

nikeee avatar Feb 29 '24 20:02 nikeee

I think there is nothing going on here. Thank you all for your great work using Shellys with Apple Homekit! I'm switching to original Shelly firmware and integrate it in Homekit using HomeAssistant. This works fine running on a Raspberry. Best regards

This is exactly what I did a few weeks ago: Home Assistant (HAOS) in Proxmox, created several Homekit Bridges via configuration.yaml and expose the Shelly Plugs via Home Assistant to Homekit.

As mentioned, thank you to everybody working on a Homekit integration of Shelly devices!

raubsau avatar Mar 01 '24 13:03 raubsau

Guys, you don't need to ask whether this will be developed any further. As far as I know, the developer is no longer working on this object because he was acquired directly from Shelly and is no longer allowed to do so.

bsoener avatar Mar 01 '24 15:03 bsoener

I compiled the branch of @trucidare's fork (binary attached here: shelly-homekit-ShellyPlusPlugS.zip) and I'm having trouble flashing it.

Edit: I seem to have the Shelly Plus Plug S v2 SNPL-10112EU: https://kb.shelly.cloud/knowledge-base/shelly-plus-plug-s-v2 This is the model name that is printed on the plug. The device information that one can download in the web interface state that it is a SNPL-00112EU. Don't know if this matters, or it means that both devices can use the same firmware.

After enabling debug logging, I found this message:

shelly_ota.cpp:245 Aborting update: backend 0x3ffe0a98 aborts update at file bootloader.bin: -4: app / fs already written, can't update boot

I'd like to help with the implementation for v2. Any pointers on how to get information about the hardware? It seems that it's necessary to break the case to take a look at the hardware.

Edit2: I found this comment regarding the error: tasmota/mgos32-to-tasmota32#31 (comment)

  • It seems that the order of entries in the zip file matters. The manifest must come first and the remaining files must be added in thee same order as they are listed in the manifest file.
  • Additionally, some files must be written before others.
  • I think boot and the partition table must always come first, as they have to be written before app and fs. This is also consistent with the manifest of the official firmware.
  • Now the error is shelly_ota.cpp:245 Aborting update: backend error while processing data: -1 (-10: Cannot relocate shelly)", which may be because the new partition table is incompatible with the one of the stock firmware. Or maybe something entirely different.

Edit3: I managed to flash the firmware by using the fs order from the stock firmware as well as its partition table. By adding another nvs, I seem to have managed to get the same layout as the stock image. However, I won't share the file because I'm not sure how safe it is to use. It may brick devices as soon as something is written to the persistent file system because the addresses are not aligned with the one from the actual build of the firmware.

So I can confirm that the PR of @trucidare works if the layout is changed. I think this can be fixed by changing the FS config in mos.yml, but I don't know how this works. This may be a thing that can be done in 10s if someone knows what they are doing.

Hi,

very good findings. I was just looking into the same things for a ShellyPlus1PM.

I think they changed the filesystem Type:

I had to do this:

-        ESP_IDF_EXTRA_PARTITION_2: "shelly,data,nvs,0x3fc000,16K"
+        ESP_IDF_EXTRA_PARTITION_2: "shelly,data,0x88,0x3fc000,16K"

So changing the nvs to 0x88. Afterwards it worked. I will test this and maybe get this firmware running again...

markirb avatar May 14 '24 18:05 markirb

So I tested more of this today and this works perfectly for me now.

@trucidare if you want to fix this then just merge https://github.com/mongoose-os-apps/shelly-homekit/pull/1387 into your PR

markirb avatar May 15 '24 18:05 markirb

I don't know how to generate the file myself. It would be so great if somebody could upload the ZIP.

mjohm1 avatar May 17 '24 17:05 mjohm1

shelly-homekit-ShellyPlusPlugS.zip

This is the current build from PR. Try at your own risk

markirb avatar May 18 '24 08:05 markirb

Is there anything I am doing wrong? I cannot update my plus plug s with the zip file: Aborting update: manifest.json was not first in archive. Is there anything I can do to use the zip file?

Marcusyo avatar May 21 '24 16:05 Marcusyo

actually it is first in the zip file, strange thing...

image

markirb avatar May 21 '24 16:05 markirb

Maybe its because im on mac and had to create a separate zip file. I will try on my windows computer later

Marcusyo avatar May 21 '24 16:05 Marcusyo

Yes that’s why. Right click link and say load link then it will not be automatically extracted

markirb avatar May 21 '24 17:05 markirb