kpsuperplane / homebridge-wiz-lan

Control Wiz lights over LAN
Apache License 2.0
114 stars 37 forks source link

Bugs with Names Scenes #129

Open asyba opened 1 year ago

asyba commented 1 year ago

Scenes options show the same text over and over for all bulbs

image

Config

        {
            "name": "WizSmarthome",
            "enableScenes": true,
            "lastStatus": false,
            "address": "192.168.1.114",
            "refreshInterval": 0,
            "devices": [
                {
                    "host": "192.168.1.125",
                    "name": "Luz Dormitorio",
                    "mac": "D8-A0-11-83-6C-6E"
                },
                {
                    "host": "192.168.1.126",
                    "name": "Luz Mesa"
                },
                {
                    "host": "192.168.1.127",
                    "name": "Luz Sillon"
                }
            ],
            "platform": "WizSmarthome"
        }

Logs

[1/16/2023, 9:21:38 PM] [WizSmarthome] Adding new accessory: Luz Sillon
[Luz Sillon@Luz Sillon@Active] Characteristic not in required or optional characteristic section for service Lightbulb. Adding anyway.
[1/16/2023, 9:21:38 PM] A platform configured a new accessory under the plugin name 'WizSmarthome'. However no loaded plugin could be found for the name!
[1/16/2023, 9:21:38 PM] [WizSmarthome] Adding new accessory: Luz Mesa
[Luz Mesa@Luz Mesa@Active] Characteristic not in required or optional characteristic section for service Lightbulb. Adding anyway.
[1/16/2023, 9:21:38 PM] A platform configured a new accessory under the plugin name 'WizSmarthome'. However no loaded plugin could be found for the name!
[1/16/2023, 9:21:38 PM] [WizSmarthome] Adding new accessory: Luz Dormitorio
[Luz Dormitorio@Luz Dormitorio@Active] Characteristic not in required or optional characteristic section for service Lightbulb. Adding anyway.
[1/16/2023, 9:21:39 PM] A platform configured a new accessory under the plugin name 'WizSmarthome'. However no loaded plugin could be found for the name!
[1/16/2023, 9:21:39 PM] [WizSmarthome] Updating accessory: Luz Mesa
[1/16/2023, 9:21:39 PM] [WizSmarthome] Updating accessory: Luz Sillon
[1/16/2023, 9:21:39 PM] [WizSmarthome] Updating accessory: Luz Dormitorio
asyba commented 1 year ago

then I tried to remove all, restart, clean cache. then add again and this time it show the correct scene names but the name of the bulb is not set:

CleanShot 2023-01-16 at 21 39 18@2x
[1/16/2023, 9:38:21 PM] [WizSmarthome] [Discovery] Sending discovery UDP broadcast to 255.255.255.255:38899
[1/16/2023, 9:38:21 PM] [WizSmarthome] [Discovery] Sending discovery UDP broadcast to 192.168.1.125:38899
[1/16/2023, 9:38:21 PM] [WizSmarthome] [Discovery] Sending discovery UDP broadcast to 192.168.1.126:38899
[1/16/2023, 9:38:21 PM] [WizSmarthome] [Discovery] Sending discovery UDP broadcast to 192.168.1.127:38899
[1/16/2023, 9:38:21 PM] Living 97EE is running on port 39661.
[1/16/2023, 9:38:21 PM] Please add [Living 97EE] manually in Home app. Setup Code: xxxxxx
[1/16/2023, 9:38:21 PM] Homebridge v1.6.0 (HAP v0.11.0) (Homebridge 2BE9) is running on port 51877.
[1/16/2023, 9:38:21 PM] [WizSmarthome] Updating accessory: Luz Sillon
[1/16/2023, 9:38:21 PM] [WizSmarthome] Updating accessory: Luz Mesa
[1/16/2023, 9:38:21 PM] [WizSmarthome] Updating accessory: Luz Dormitorio
[1/16/2023, 9:38:21 PM] [WizSmarthome] Updating accessory: Luz Sillon
[1/16/2023, 9:38:21 PM] [WizSmarthome] Updating accessory: Luz Dormitorio
[1/16/2023, 9:38:21 PM] [WizSmarthome] Updating accessory: Luz Mesa

this time I put first the name and platform.

        {
            "name": "WizSmarthome",
            "platform": "WizSmarthome",
            "enableScenes": true,
            "lastStatus": false,
            "address": "192.168.1.114",
            "refreshInterval": 0,
            "devices": [
                {
                    "host": "192.168.1.125",
                    "name": "Luz Dormitorio"
                },
                {
                    "host": "192.168.1.126",
                    "name": "Luz Mesa"
                },
                {
                    "host": "192.168.1.127",
                    "name": "Luz Sillon"
                }
            ]
        },
asyba commented 1 year ago

so definitely some bug with names, I read other tickets with no solutions. https://github.com/kpsuperplane/homebridge-wiz-lan/issues/12 https://github.com/kpsuperplane/homebridge-wiz-lan/issues/90

asyba commented 1 year ago

cleaning with cache homebridge Remove All Cached Accessories . makes random issue with bulb names and scene names and strange errors like

[Luz Dormitorio@Luz Dormitorio@Active] Characteristic not in required or optional characteristic section for service Lightbulb. Adding anyway.
[1/16/2023, 9:47:37 PM] A platform configured a new accessory under the plugin name 'WizSmarthome'. However no loaded plugin could be found for the name!
asyba commented 1 year ago

this is from when I disable the plugin restarted, no devices in homebridge, then enable plugin and restart. same bug with scenes name as the bulb name

[1/16/2023, 9:51:04 PM] [WizSmarthome] Adding new accessory: Luz Sillon
[Luz Sillon@Luz Sillon@Active] Characteristic not in required or optional characteristic section for service Lightbulb. Adding anyway.
[1/16/2023, 9:51:04 PM] A platform configured a new accessory under the plugin name 'WizSmarthome'. However no loaded plugin could be found for the name!
[1/16/2023, 9:51:04 PM] [WizSmarthome] Adding new accessory: Luz Mesa
[Luz Mesa@Luz Mesa@Active] Characteristic not in required or optional characteristic section for service Lightbulb. Adding anyway.
[1/16/2023, 9:51:04 PM] A platform configured a new accessory under the plugin name 'WizSmarthome'. However no loaded plugin could be found for the name!
[1/16/2023, 9:51:04 PM] [WizSmarthome] Adding new accessory: Luz Dormitorio
[Luz Dormitorio@Luz Dormitorio@Active] Characteristic not in required or optional characteristic section for service Lightbulb. Adding anyway.
[1/16/2023, 9:51:04 PM] A platform configured a new accessory under the plugin name 'WizSmarthome'. However no loaded plugin could be found for the name!
[1/16/2023, 9:51:04 PM] [WizSmarthome] Updating accessory: Luz Mesa
[1/16/2023, 9:51:04 PM] [WizSmarthome] Updating accessory: Luz Sillon
[1/16/2023, 9:51:04 PM] [WizSmarthome] Updating accessory: Luz Dormitorio