Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shelly plus plug uk #132

Open
Ntb1989 opened this issue Sep 5, 2024 · 4 comments
Open

Shelly plus plug uk #132

Ntb1989 opened this issue Sep 5, 2024 · 4 comments

Comments

@Ntb1989
Copy link

Ntb1989 commented Sep 5, 2024

Doesn’t seem to be supported yet. Is it possible to add support?

@sonixtorm
Copy link

+1

@sonixtorm
Copy link

Been having a nose around the source and as a quick hack, you can get it working by opening the following file:

/usr/local/lib/node_modules/homebridge-shelly-ng/node_modules/shellies-ng/dist/devices/shelly-plus-plug-us.js

Change the following lines:

ShellyPlusPlugUs.model = 'SNPL-00116US';
ShellyPlusPlugUs.modelName = 'Shelly Plus Plug US';

...to read:

ShellyPlusPlugUs.model = 'SNPL-00112UK';
ShellyPlusPlugUs.modelName = 'Shelly Plus Plug UK';

...and restart Homebridge. This will very likely break/need to be reapplied as updates are installed. I've not done anything with Homebridge plugin development, but it doesn't look too hard to add a new device. If I get the time, I will see if I can do something less hacky.

@apartmedia
Copy link

As this repo seems to be no longer maintained, better provide PR‘s to homebridge-shelly-ds9 from cubi1337 as that is the most active fork… it might have the UK plug already implemented.
Just take a look.

@sonixtorm
Copy link

So it does, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants