alexryd / homebridge-shelly-ng

Homebridge plugin for the next generation of Shelly devices
GNU General Public License v3.0
124 stars 49 forks source link

Roller shutter shown as Window in HK (Shelly 2PM) #94

Closed t0mmey closed 1 year ago

t0mmey commented 1 year ago
Bildschirmfoto 2023-11-07 um 12 13 47 Bildschirmfoto 2023-11-07 um 12 40 28

Hi all, just set up a Shelly 2PM, changed to cover and calibrated it. The plugin is discovering the device but shows in Homebridge as a weird icon and in HomeKit it is shown as window. Any idea what I am doing wrong? I didn’t add a manual config to homebridge.

janbl commented 1 year ago

I have just changed the cover type to windowCovering and it shows up as a cover "cover:0": { "exclude": false, "type": "windowCovering" }

t0mmey commented 1 year ago

I have just changed the cover type to windowCovering and it shows up as a cover "cover:0": { "exclude": false, "type": "windowCovering" }

Thanks @janbl. I am a bit confused how to add this code the Config in terms of Syntax. I am using Hoobs, do I just need to put it in like this?

Bildschirmfoto 2023-11-09 um 14 54 16
t0mmey commented 1 year ago

@janbl got the Syntax and its working now! Thanks again

b123luke commented 1 year ago

HI @t0mmey i have the same problem and also using hoobs, can you send your complete config file for this Plugin? thanks

t0mmey commented 1 year ago

Hi @b123luke, my config file contains logins and PWs :/ would it be ok if I just share the Shelly NG part?

In Hoobs, go to Settings and then o Advanced. Here you see the plain config file.

Under "Platforms" insert a new platform as per below:

{ "name": "Shelly NG", "mdns": { "enable": true }, "devices": [ { "id": "ShellyPlus2PM-The12DigitIDofYourShelly", "name": "Rolladen WZ Mitte", "exclude": false, "switch:0": { "exclude": false, "type": "switch" }, "switch:1": { "exclude": false, "type": "switch" }, "switch:2": { "exclude": false, "type": "switch" }, "switch:3": { "exclude": false, "type": "switch" }, "cover:0": { "exclude": false, "type": "windowCovering" } } ], "platform": "ShellyNG" }

Once you hit save, the bridge should restart. then check the log file to see if a line appears similar to the one below (note that the name needs to be replaced by the name that you have entered in the code above under 'name'for your blind): HOOBSShelly NG[Rolladen WZ Mitte] Device added

Let me know if that works for you.

As an aside: I have been trying the code yesterday and it was not working for whatever reason. I might had a syntax issue or the ID was wrong.

b123luke commented 1 year ago

HI @t0mmey, thanks for your help but it does not work.... My config: { "platform": "Shelly NG", "name": "Shelly NG", "devices": [ { "id": "shellyplus2pm-90380c3859d0", "name": "Store Sitzplatz N", "exclude": false, "hostname": "192.168.XXX.XXX", "switch:0": { "exclude": false, "type": "switch" }, "switch:1": { "exclude": false, "type": "switch" }, "switch:2": { "exclude": false, "type": "switch" }, "switch:3": { "exclude": false, "type": "switch" }, "cover:0": { "exclude": false, "type": "windowCovering" } } ] }

Also at the log file i see nothing, just the Shelly IDs

t0mmey commented 1 year ago

@b123luke Hmm, for testing, did you try adding my code and just add the ID of your Shelly? If that works, may be start customizing according to your needs.

Also, I remember the plugin adds a another „platform“ entry in the log file with no additional attributes. I have removed that one and had just my code there.

b123luke commented 1 year ago

Hi @t0mmey Thanks for your support, now its working, but im not very sure why....

SilvioMigu commented 12 months ago

hey guys I have the same problem I've already tried your settings and I can't change the Homekit app to windowcovering. Are yours working? You can share your settings again, so I can paste them in my hoobs settings. Thanks

t0mmey commented 11 months ago

Hi @SilvioMigu For testing, did you try adding my code and just add the ID of your Shelly? If that works, may be start customizing according to your needs.

Also, I remember the plugin adds a another „platform“ entry in the log file with no additional attributes. I have removed that one and had just my code there.

Once you have added the code and your Hoobs is rebooting, check the log file to see if your shelly gets added

SilvioMigu commented 11 months ago

Hello @t0mmey Yes, I've already tested your code and others here on the forum and it never changes from cover to windownCovering. In the hoobs log, shelly 2pm is always added.

I already deleted it from the cache, and then installed the plugin again. I turned off Shelly's electricity so it wouldn't be added, before I put the code with the id information and the windowCovering information. Even so, when I turn on the power, the shelly is added and does not appear again as a cover in the homekit app. I don't understand I'm doing something wrong, I don't know what.

SilvioMigu commented 11 months ago

Can you show me how your code is? It's in the advanced section, where you have the code, right?

SilvioMigu commented 11 months ago

What is Syntax, which you mention?

SilvioMigu commented 11 months ago

Captura de ecrã 2023-12-07, às 15 20 59

This is my last configuration, for shelly 2pm I've tried the others too

t0mmey commented 11 months ago

@SilvioMigu maybe that's the difference: I didn't use the config field of the plugin.

Instead I went to settings of Hoobs, opened the plain config file and insterted the code there.

Bildschirmfoto 2023-12-07 um 16 42 10
SilvioMigu commented 11 months ago

Where do I do this on Hoobs?

Do I click on advanced?

t0mmey commented 11 months ago

Yes, the gear wheel in the left lower corner and then advanced. See if you have already an area in the code called "platforms" where other platforms have been added already and just add the code mentioned previously.

SilvioMigu commented 11 months ago

Captura de ecrã 2023-12-07, às 16 23 21 Already appears here

Erase it and put it back in again?

SilvioMigu commented 11 months ago

I only have written "platforms" at the beginning of the code

Now I deleted the plugin and reinstalled it

appears at the end, like this: Captura de ecrã 2023-12-07, às 17 06 28

SilvioMigu commented 11 months ago

Your firmware, is that?

image

SilvioMigu commented 11 months ago

I already got it thanks for the support see here: https://github.com/alexryd/homebridge-shelly-ng/issues/56