home-assistant-skydance icon indicating copy to clipboard operation
home-assistant-skydance copied to clipboard

Zones Order when deleting items in SkySmart App

Open jffluis opened this issue 1 year ago • 4 comments

Hi,

Just found this bug today and wanted to talk to you if it is a bug of yours or Skydance's.

I had 10 lights added to app, then I deleted the item position 8 or zone=8 what happened is that Zone10 was made unavailable in HASS but visible in SkySmart app. I found a workaround that if I add one more zone (just a dummy), it works again.

Proof from debug log:

Before deleting ZONE 8

023-07-25 20:36:40.270 DEBUG (MainThread) [custom_components.skydance.light] Zone=8 has type=ZoneType.Dimmer, name=teste123 2023-07-25 20:36:40.270 INFO (MainThread) [custom_components.skydance.light] Getting info about zone=9 2023-07-25 20:36:40.270 DEBUG (MainThread) [skydance.network.session] Sending: 55 aa 5a a5 7e 0a 80 00 80 e1 80 00 00 00 01 78 00 00 00 7e 2023-07-25 20:36:40.531 DEBUG (MainThread) [skydance.network.session] Received: 55 aa 5a a5 7e 0a 80 00 80 e1 80 57 ff 00 01 f8 10 00 11 00 50 61 72 65 64 65 20 53 61 6c 61 20 20 20 00 7e 2023-07-25 20:36:40.532 DEBUG (MainThread) [custom_components.skydance.light] Zone=9 has type=ZoneType.Dimmer, name=Parede Sala 2023-07-25 20:36:40.532 INFO (MainThread) [custom_components.skydance.light] Getting info about zone=10 2023-07-25 20:36:40.532 DEBUG (MainThread) [skydance.network.session] Sending: 55 aa 5a a5 7e 0b 80 00 80 e1 80 00 00 00 02 78 00 00 00 7e 2023-07-25 20:36:40.773 DEBUG (MainThread) [skydance.network.session] Received: 55 aa 5a a5 7e 0b 80 00 80 e1 80 57 ff 00 02 f8 10 00 11 00 50 61 72 65 64 65 20 43 6f 7a 69 6e 68 61 00 7e 2023-07-25 20:36:40.773 DEBUG (MainThread) [custom_components.skydance.light] Zone=10 has type=ZoneType.Dimmer, name=Parede Cozinha 2023-07-25 20:36:40.773 DEBUG (MainThread) [custom_components.skydance.light] Finished fetching skydance data in 2.681 seconds (success: True)

After deleting ZONE8 in SkySmart app

2023-07-25 20:38:03.405 DEBUG (MainThread) [custom_components.skydance.light] Zone=8 has type=ZoneType.Dimmer, name=teste123 2023-07-25 20:38:03.406 INFO (MainThread) [custom_components.skydance.light] Getting info about zone=9 2023-07-25 20:38:03.406 DEBUG (MainThread) [skydance.network.session] Sending: 55 aa 5a a5 7e 0a 80 00 80 e1 80 00 00 00 01 78 00 00 00 7e 2023-07-25 20:38:03.745 DEBUG (MainThread) [skydance.network.session] Received: 55 aa 5a a5 7e 0a 80 00 80 e1 80 57 ff 00 01 f8 10 00 11 00 50 61 72 65 64 65 20 53 61 6c 61 20 20 20 00 7e 2023-07-25 20:38:03.745 DEBUG (MainThread) [custom_components.skydance.light] Zone=9 has type=ZoneType.Dimmer, name=Parede Sala 2023-07-25 20:38:03.746 DEBUG (MainThread) [custom_components.skydance.light] Finished fetching skydance data in 3.400 seconds (success: True)

Now just fetch's until Zone9.

Zone10 was gone and Zone8 its still here. In SkySmart I can't see Zone8.

jffluis avatar Jul 25 '23 19:07 jffluis