Zacknetic / HomebridgeMagicHome-DynamicPlatform

Homebridge Plugin for MagicHome LED controllers and light bulbs
Apache License 2.0
61 stars 11 forks source link

Plugin stopped working #32

Closed BarryValdost closed 3 years ago

BarryValdost commented 4 years ago

This plugin has worked fantastically for the past month or so, but just recently, I tried to change the color/state of the lights, but it didn't work. I looked at the homebridge log, restarted a few times, and it pruned my devices. Clearly it was not recieving a connection. Homebridge log follows after reinstalling the plugin.

[10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Uknown light version: 6... type probably cannot be set. Trying anyway... [10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Please create an issue at https://github.com/Zacknetic/HomebridgeMagicHome-DynamicPlatform/issues and post your homebridge.log [10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Warning! New device with Unique ID: 'DC4F22F8F1BB' is blacklisted or is not whitelisted.

[10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Uknown light version: 6... type probably cannot be set. Trying anyway... [10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Please create an issue at https://github.com/Zacknetic/HomebridgeMagicHome-DynamicPlatform/issues and post your homebridge.log [10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Warning! New device with Unique ID: 'DC4F22FDED9E' is blacklisted or is not whitelisted.

[10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Warning! New device with Unique ID: '840D8E6AA95C' is blacklisted or is not whitelisted.

[10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Uknown light version: 6... type probably cannot be set. Trying anyway... [10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Please create an issue at https://github.com/Zacknetic/HomebridgeMagicHome-DynamicPlatform/issues and post your homebridge.log [10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Warning! New device with Unique ID: 'DC4F22F8EE77' is blacklisted or is not whitelisted.

[10/4/2020, 19:14:27] [Config] Starting terminal session [10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Warning! New device with Unique ID: 'D8F15BCEC1B5' is blacklisted or is not whitelisted.

[10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Warning! New device with Unique ID: 'D8F15BA8500F' is blacklisted or is not whitelisted.

[10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Uknown light version: 6... type probably cannot be set. Trying anyway... [10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Please create an issue at https://github.com/Zacknetic/HomebridgeMagicHome-DynamicPlatform/issues and post your homebridge.log [10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Warning! New device with Unique ID: 'DC4F22F8F28B' is blacklisted or is not whitelisted.

[10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Uknown light version: 6... type probably cannot be set. Trying anyway... [10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Please create an issue at https://github.com/Zacknetic/HomebridgeMagicHome-DynamicPlatform/issues and post your homebridge.log [10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Warning! New device with Unique ID: 'C44F3381A1CE' is blacklisted or is not whitelisted.

[10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Warning! New device with Unique ID: 'C82B964E9559' is blacklisted or is not whitelisted.

[10/4/2020, 19:14:27] [homebridge-magichome-dynamic-platform] Warning! New device with Unique ID: '2CF432E48905' is blacklisted or is not whitelisted.

[10/4/2020, 19:14:28] [homebridge-magichome-dynamic-platform] Registered 0 Magichome device(s). New devices: 0 Cached devices that were seen this restart: 0 Cached devices that were not seen this restart: 0

All settings in the config are default. What can I do to fix this issue?

nchlsgh1 commented 4 years ago

Hi there same for me it worked until an update recently and getting error even with pruning

[10/9/2020, 11:07:42 PM] Homebridge v1.2.3 is running on port 51002.
[10/9/2020, 11:07:44 PM] [homebridge-magichome-dynamic-platform] 
Discovered 1 devices.

[10/9/2020, 11:07:44 PM] [homebridge-magichome-dynamic-platform] Uknown light version: 6... type probably cannot be set. Trying anyway...
[10/9/2020, 11:07:44 PM] [homebridge-magichome-dynamic-platform] Please create an issue at https://github.com/Zacknetic/HomebridgeMagicHome-DynamicPlatform/issues and post your homebridge.log
[10/9/2020, 11:07:44 PM] [homebridge-magichome-dynamic-platform] Warning! New device with Unique ID: 'DC4F22BC0238' is blacklisted or is not whitelisted.

[10/9/2020, 11:07:44 PM] [homebridge-magichome-dynamic-platform] 
Registered 0 Magichome device(s). 
New devices: 0 
Cached devices that were seen this restart: 0 
Cached devices that were not seen this restart: 0

Occasionally it works a little bit

[10/9/2020, 11:21:38 PM] [homebridge-magichome-dynamic-platform] 
Discovered 2 devices.

[10/9/2020, 11:21:38 PM] [homebridge-magichome-dynamic-platform] 
Registering new accessory 'RGBW Simultanious' 
Model: 'AK001-ZJ200' 
Unique ID: 'DC4F22C0719E' 
IP-Address: '192.168.0.51' 
Version 10 
Version Modifier: 4

[10/9/2020, 11:21:38 PM] [homebridge-magichome-dynamic-platform] 
Registered 1 Magichome device(s). 
New devices: 1 
Cached devices that were seen this restart: 0 
Cached devices that were not seen this restart: 0

HAP Warning: Characteristic 000000E3-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 00000043-0000-1000-8000-0026BB765291. Adding anyway.
[10/9/2020, 11:21:38 PM] [homebridge-magichome-dynamic-platform] Uknown light version: 6... type probably cannot be set. Trying anyway...
Zacknetic commented 3 years ago

Hello and apologies for the very late response!

Please update your plugin to version 1.5.1 . Note: if you are updating from version 1.4.x you'll need to purge all your magichome devices first.

With help, I found a bug in the code that caused duplicate device to register if the user had multiple subnets. Thus the crash. I was trying to scan on more than one subnet but didn't account for devices showing up on more than one.

Let me know how it goes. Thank you.

Zacknetic commented 3 years ago

Closing this issue for now. Please reopen if the problem persists. Thank you.