jghaanstra / cloud.shelly

Homey app to control Shelly Cloud devices
GNU General Public License v3.0
21 stars 14 forks source link

Shelly app discovers already added devices. #229

Closed v61 closed 2 months ago

v61 commented 2 months ago

I have restarted Homey but the issue still exist. Best Regards, Valter

jghaanstra commented 2 months ago

I can not reproduce. Could you post a screenshot of the details of a device in the developer console that is being discovered again.

v61 commented 2 months ago

Hi,

An examle of two occurrences of the same device.

****From the Shelly diag***** { "web_id": "240213111718-ce341dc8-HEAD", "deviceInfo": { "name": "Multiswitch", "id": "shellyplusi4-c049ef89dd68", "mac": "C049EF89DD68", "slot": 0, ...


This is the original [PastedGraphic-1.png]

This is the ”rediscovered" [PastedGraphic-2.png]

Best Regards, Valter

27 juni 2024 kl. 19:06 skrev Jelger Haanstra @.***>:

I can not reproduce. Could you post a screenshot of the details of a device in the developer consolehttps://tools.developer.homey.app/tools/devices that is being discovered again.

— Reply to this email directly, view it on GitHubhttps://github.com/jghaanstra/cloud.shelly/issues/229#issuecomment-2195233842, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AH237O4XTC6JKC2IS45SYKDZJRBCLAVCNFSM6AAAAABJ7U2GN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJVGIZTGOBUGI. You are receiving this because you authored the thread.Message ID: @.***>

jghaanstra commented 2 months ago

You need to respond on Guthub if you want the images to show up.

v61 commented 2 months ago
redescovered original

The one with "local" in the ID is the rediscovered.

In the Shelly device itself it says. { "web_id": "240213111718-ce341dc8-HEAD", "deviceInfo": { "name": "Multiswitch", "id": "shellyplusi4-c049ef89dd68", "mac": "C049EF89DD68", "slot": 0, ...

Best Regards, Valter

jghaanstra commented 2 months ago

What version of the Shelly app on Homey are you using? I use the hostname of the device as unique ID. Some time ago Shelly changed the hostnames of the Shelly devices and added .local. This resulted in already added device showing up again. So I added something to the Shelly app which also filters out these duplicates.

This is the first time I see an issue with this again and it seems to be because the hostname of the .local device is now using capitals as well next to the added .local. That might mean these duplicate devices arent matched with existing and previously added devices. Not sure why this is happening and Allterco Robotics is now using capitals as well. I'll see if I can make sure it will add them always in lowercase to make the matching easier.

Your solution however is removing the device without the .local.

v61 commented 2 months ago

Hi, I use v3.30.7 and I noticed first yesterday. (Hav not tried to add anything for a while before yesterday) Best Regards, Valter