Giter Club home page Giter Club logo

homebridge-lifx-plugin's Introduction

homebridge-lifx-plugin

homebridge-lifx-plugin

verified-by-homebridge

npm npm npm

GitHub code size in bytes GitHub last commit

LIFX plugin for Homebridge.

This is the first lifx plugin that officially supports adaptive lighting β˜€οΈ | πŸŒ‘

A plugin that automatically adds Lifx bulbs on the network to the Homebridge instead of tediously registering the lights individually via homekit.

This plugin will be updated regularly in the future, because I see it as a small heart task and use it personally.

The reason to create this plugin was the use of several published already existing lifx-plugins for homebridge and the anger struggeling with lifx and homekit. Unfortunately, all the plugins I tested slowed down homebridge so I couldn't access my devices from outside my network. This plugin should fix that problem and add some extra functionality

Also, lights that were not connected to the power were marked as "not responding". This plugin automatically sets the status of these lights to offline as soon as the light can no longer be reached.

I appreciate anyone who would like to use my plugin and welcome comments of any kind.

Of course, sometimes no error is left out, so forgive me if you might have problems and stay tuned. Updates will follow as soon as possible!

πŸ’‘ Features

adaptive lighting

  • Adaptive Lighting
  • Different dim settings for brightness, color and On/Off
  • Addind lights automatically
  • Addind lights individually
  • Exclusions for individual bulbs
  • Default route for different NICs

πŸš€ Quick Start

1. Installation

npm i homebridge-lifx-plugin

or use the awesome Homebridge Config Ui X plugin

settings

2. Setup

To make sure your bulbs are automatically detected, enter your correct broadcast address in advanced settings. If you don't know what broadcast address means, have a look at this comment.

You can retrieve your broadcast address with the following command:

Windows

ipconfig

Mac/Linux

ifconfig

All settings can be configured in the Homebridge Plugin Settings GUI

All options can be found under Settings

3. Enjoy πŸ˜ŽπŸ’‘

All Lifx bulbs accessible on the network will be added to your homekit automatically. So go outside, configure your lights, create scenes and automations. Enjoy your life🧘

βš™οΈ Settings

General

Title Name Type Value Default Description
Platform Name name string any "Lifx Plugin" Display name of the platform, to be seen in the log
Enable Auto Discover autoDiscover boolean true/false true Discovers bulbs by broadcasting
Duration duration integer 0...∞ 0 Time to fade on/off in milliseconds
Brightness Duration brightnessDuration integer 0...∞ 300 Time to fade in milliseconds for changing brightness
Color Duration colorDuration integer 0...∞ 300 Time to fade in milliseconds for changing color

Bulbs

Adding bulbs separately is useful for networks where broadcasting is not possible or if you do not want the plugin to discover all bulbs automatically. If autoDiscover is enabled the separately added bulbs are not added a second time.

Title Name Type Value Default Description
Name name string any Name for recognizing the bulb
Address address string ip IP address of the bulb to be added separately

Excludes

You can now create exceptions for your bulbs that should not be registered with broadcasting

Title Name Type Value Default Description
Name name string any Name for recognizing the bulb
Address address string ip IP address of the bulb to be excluded
ID id string id Serial number of the bulb to be excluded

Advenced Settings

Title Name Type Value Default Description
Default Route default string ip 0.0.0.0 Default route address to bind the udp connection to
Broadcast Address broadcast string ip 255.255.255.255 Broadcast address of your network to detect bulbs automatically
Offline Tolerance lightOfflineTolerance integer 1...∞ 3 A light is offline if not seen for the given amount of discoveries
Handler Timeout messageHandlerTimeout integer 100...∞ 45000 In ms, if not answer in time an error is provided to get methods
Resend Packet Delay resendPacketDelay integer 50...∞ 150 Delay between packages if light did not receive a packet
Resend Packet Max Times resendMaxTimes integer 0...∞ 3 Resend packages x times if light did not receive a packet
Update updates boolean true/false true Disable if you don't want the plugin to check for updates

Example Configuration

πŸ’‘ Autodiscover

{
   "name": "Lifx",
   "duration": 0,
   "brightnessDuration": 300,
   "colorDuration": 300,
   "broadcast": "255.255.255.255",
   "lightOfflineTolerance": 3,
   "messageHandlerTimeout": 45000,
   "resendPacketDelay": 150,
   "resendMaxTimes": 3,
   "debug": false,
   "autoDiscover": true,
   "platform": "LifxPlugin"
}

πŸ”§ Manually Added Bulbs

{
   "name": "Lifx",
   "duration": 500,
   "brightnessDuration": 500,
   "colorDuration": 500,
   "broadcast": "255.255.255.255",
   "lightOfflineTolerance": 3,
   "messageHandlerTimeout": 45000,
   "resendPacketDelay": 150,
   "resendMaxTimes": 3,
   "debug": false,
   "autoDiscover": false,
   "bulbs": [
         {
            "address": "192.168.178.20"
         }
   ],
   "platform": "LifxPlugin"
}

πŸ“ ToDo

  • Dim settings for brightness, color and On/Off
  • Add lights individually
  • Listen for new states of the light
  • Mark bulb as offline if it could not be reached
  • Enable adding bulbs manually when autoDiscover is active
  • Added exclusions for bulbs to not be registered (thanks to L0T8)
  • Added default route for different NICs (thanks to andyvirus)
  • Implement adaptive Lighting (thanks to joelrichards)
  • Separate dim settings for brightness, color and On/Off
  • Configure lights individually
  • Accessories will show as "no response" until plugin has successfully initialised

βœ… Officialy supported on

  • LIFX A19 Night Vision
  • LIFX A19
  • LIFX Z
  • LIFX Mini White
  • LIFX BR30 Night Vision
  • LIFX Original
  • LIFX Colour 1000
  • LIFX GU10
  • LIFX Mini Day & Dusk

All other bulbs could be supported, but without guarantee. If you find something that does not fit yet open an issue, I will take care of it

πŸ” Tested on

  • LIFX A19 Night Vision
  • LIFX A19
  • LIFX Z
  • LIFX Mini White (by 7RDR7)
  • LIFX BR30 Night Vision (by 7RDR7)
  • LIFX Original (by andyvirus)
  • LIFX Colour 1000 (by andyvirus)
  • LIFX GU10 (by L0T8)
  • LIFX Mini Day & Dusk (by L0T8)

homebridge-lifx-plugin's People

Contributors

bradrees avatar calvarium avatar dgchurchill avatar lox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

homebridge-lifx-plugin's Issues

Updates

The home app is showing that I have updates available for my light strips, but when I go to the LIFX app, everything is up to date. This is the case whether I have updates under advanced features checked or not.

Exclude devices by Serial/MAC address only

If possible, could exclusions be defined by just the MAC/Serial number as with DHCP the IP changes. I have tried with just the Serial/MAC and discovery still finds the lifx lights not desired to be added by this plugin.

Thankyou so much for your efforts with this plugin!

Also, I have tested LIFX Z Strips and both work fine via your plugin. These are the ones I was trying to exclude via exclusions but as they were discovered, tested colour, on and off... All functional via the plugin.

Warning for Color Characteristic

Describe The Bug:
When setting the Lifx app light temperature to 2500K, the plugin starts generating warnings and can become non-responsive.

To Reproduce:
While running the plugin, set the lights to 2500K in either Home app or Lifx app.

Expected behavior:
The plugin will support max values of 500 for the lights and avoid the warning "This plugin generated a warning from the characteristic 'Color Temperature': characteristic was supplied illegal value: number 400 exceeded maximum of 371. See https://homebridge.io/w/JtMGR for more info."

Logs:
DEBUG - 240000144f62a9bad073d5103237000000000000000000a7000000000000000065000000 to 192.168.1.32
DEBUG - 240000144f62a9bad073d510d737000000000000000000a8000000000000000065000000 to 192.168.1.15
DEBUG - 240000144f62a9bad073d510ece4000000000000000000a9000000000000000065000000 to 192.168.1.27
DEBUG - 240000144f62a9bad073d55f23f3000000000000000000aa000000000000000065000000 to 192.168.1.13
DEBUG - 240000144f62a9bad073d5302604000000000000000000ab000000000000000065000000 to 192.168.1.24
DEBUG - 580000144f62a9bad073d510a40e00004c494658563200a618e5700a0397e4176b00000000000000ffffc4090000ffff4c69626279e2809973204c616d700000000000000000000000000000000000000000000000000000 from 192.168.1.25
[7/22/2024, 11:49:57 AM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Color Temperature': characteristic was supplied illegal value: number 400 exceeded maximum of 371. See https://homebridge.io/w/JtMGR for more info.

Plugin Config:
{
"name": "Lifx Plugin",
"duration": 10,
"brightnessDuration": 300,
"colorDuration": 300,
"default": "0.0.0.0",
"broadcast": "192.168.1.255",
"lightOfflineTolerance": 3,
"messageHandlerTimeout": 45000,
"resendPacketDelay": 150,
"resendMaxTimes": 3,
"updates": false,
"debug": false,
"autoDiscover": true,
"_bridge": {
"username": "0E:CF:46:EF:C4:58",
"port": 44016
},
"platform": "LifxPlugin"
}
Screenshots:

Environment:

  • Plugin Version: v0.3.0
  • Homebridge Version: 1.8.4
  • Node.js Version: v20.9.0
  • NPM Version: 10.1.0
  • Operating System: macOS

Plugin not working

Plugin not working

Logs:

LIFX Client invalid packet header error
Packet: 240080350000000000000000
Trace: RangeError: The value of "offset" is out of range. It must be >= 0 and <= 11. Received 22
at new NodeError (node:internal/errors:406:5)
at boundsError (node:internal/buffer:88:9)
at Uint8Array.readUInt8 (node:internal/buffer:254:5)
at Object.Packet.headerToObject (/usr/local/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/src/lifx/packet.js:131:39)
at Object.Packet.toObject (/usr/local/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/src/lifx/packet.js:162:16)
at Client. (/usr/local/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/src/lifx/client.js:205:30)
at Socket.emit (node:events:514:28)
at UDP.onMessage (node:dgram:941:8) {
code: 'ERR_OUT_OF_RANGE'
}
at Client. (/usr/local/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/src/lifx/client.js:211:15)
at Socket.emit (node:events:514:28)
at UDP.onMessage (node:dgram:941:8)

Plugin Config:

    {
        "name": "Lifx Plugin",
        "duration": 0,
        "brightnessDuration": 300,
        "colorDuration": 300,
        "default": "0.0.0.0",
        "broadcast": "255.255.255.255",
        "lightOfflineTolerance": 3,
        "messageHandlerTimeout": 45000,
        "resendPacketDelay": 150,
        "resendMaxTimes": 3,
        "updates": true,
        "debug": false,
        "autoDiscover": true,
        "platform": "LifxPlugin"
    }

Screenshots:

Environment:

  • Plugin Version:
  • Homebridge Version: 1.7.0
  • Node.js Version: 20.9.0
  • NPM Version: 10.1.0
  • Operating System: macOS

Fails to run on new install

Describe The Bug:

Plugin fails to load after configuring auto discover with the correct address and restarting homebridge. Using the latest matter BR30 lightbulbs that just came out

To Reproduce:

Install latest homebridge on raspberry pi. Install this plugin, reboot after getting config correctly. Auto discover gets stuck in a loop

Expected behavior:

Finds bulbs

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

image
image
Environment:

  • Plugin Version:
  • Homebridge Version:
  • Node.js Version:
  • NPM Version:
  • Operating System:

Lifx White 800 not working

Describe The Bug:

It looks like the Lifx white 800 is not supported

To Reproduce:

Have set up adaptive lighting in the home app. No colour changing. Tried to change colour manually in the app and no changing either. Lifx app still changes colour.

Expected behavior:

Expect to see colour change over the day

Logs:

DEBUG - 58000014f35ce128d073d510844600004c49465856320054e87248d87b80da166b00000000000000ffff64190000ffff46616d696c7920526f6f6d204c616d70000000000000000000000000000000000000000000000000 from 192.168.1.249
DEBUG - 24000034f35ce12800000000000000000000000000000054000000000000000002000000 to 255.255.255.255
DEBUG - 29000014f35ce128d073d510844600004c49465856320054e8caa9f07c80da1603000000017cdd0000 from 192.168.1.249
DEBUG - 29000014f35ce128d073d510844600004c49465856320054e81292f27c80da1603000000057cdd0000 from 192.168.1.249
DEBUG - 24000014f35ce128d073d510844600000000000000000055000000000000000065000000 to 192.168.1.249
DEBUG - 58000014f35ce128d073d510844600004c49465856320055e8644e027d80da166b00000000000000ffff64190000ffff46616d696c7920526f6f6d204c616d70000000000000000000000000000000000000000000000000 from 192.168.1.249 ```

**Plugin Config:**

```json

{
    "name": "Lifx Plugin",
    "duration": 0,
    "brightnessDuration": 500,
    "colorDuration": 500,
    "default": "0.0.0.0",
    "broadcast": "255.255.255.255",
    "lightOfflineTolerance": 3,
    "messageHandlerTimeout": 45000,
    "resendPacketDelay": 150,
    "resendMaxTimes": 3,
    "updates": true,
    "debug": false,
    "autoDiscover": true,
    "platform": "LifxPlugin"
}

Screenshots:

Environment:

  • Plugin Version: 0.2.2
  • Homebridge Version: 1.4.0
  • Node.js Version: 16.14.0
  • NPM Version: 8.3.1
  • Operating System: macOS

Phantom Updates on LIFX GU10 After Homebridge Restarts

Describe The Bug:
Every time the Homebridge restarts, the phantom updates appear for LIFX GU10 bulbs. I have three GU10 bulbs, and they sometimes show one to three updates. They disappear on their own after one to 12 hours. The phantom update doesn't happen for other LIFX bulbs, including A19 and Day & Dusk.

To Reproduce:

  1. Have a LIFX GU10 bulb
  2. Restart Homebridge
  3. Receive a notification for the "phantom" update

Expected behavior:
The phantom update should not happen for GU10 bulbs. There should be an option to disable an update check for bulb/s. Homebridge API documentation mentions Firmware Update.

Logs:

N/A

Plugin Config:

        {
            "name": "LIFX Plugin",
            "duration": 0,
            "brightnessDuration": 300,
            "colorDuration": 300,
            "broadcast": "255.255.255.255",
            "lightOfflineTolerance": 3,
            "messageHandlerTimeout": 45000,
            "resendPacketDelay": 150,
            "resendMaxTimes": 3,
            "debug": false,
            "autoDiscover": true,
            "excludes": [
                {
                    "name": "LIFX Switch",
                    "id": "d073d5635c52"
                }
            ],
            "platform": "LifxPlugin"
        }

Screenshots:
IMG_9BEFCF97BA11-1

Environment:

  • Plugin Version: v0.1.20
  • Homebridge Version: v1.4.0
  • Node.js Version: v16.13.1
  • NPM Version: v8.1.2
  • Operating System: macOS Mojave

When manually switched off the Lamp, Homekit-status stays on istead of going to "unavailable"

First: Thanks for this great plugin - works great - with one exception:

Describe The Bug:
When switching off the LIFX lamp manually with the light switch, the plugin does not recognize it's offline. The original Lifx-App and it's companion Homekit-device (added with the original Lifx-Homekit-Code) does recognize it and after a minute or so and is correctly reporting that the lamp unavailable.

To Reproduce:
Adding the lamp with the Lifx-plugin (with broadcast or manually). (No changes made at the sttings except adding the correct broadcasting address.)

Expected behavior:
The plugin detects the lamp is offline.

Environment:

  • Device: LIFX White to Warm A60
  • Plugin Version: v.0.3.0
  • Homebridge Version: v.1.6.1
  • Node.js Version: 16.20.2
  • Operating System: macOS High Sierra

Issue on initial startup after new install

Describe Your Problem:
I have a number of LIFX candles on a pendant out front (Group of 4) and a group of 4

Logs:

Directly after normal HB Startup entries:

LIFX Client UDP error
Trace: Error: bind EADDRNOTAVAIL 192.168.145.1
at node:dgram:362:20
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -99,
code: 'EADDRNOTAVAIL',
syscall: 'bind',
address: '192.168.145.1'
}
at Client. (/var/lib/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:207:13)
at Socket.emit (node:events:525:35)
at node:dgram:364:14
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

  • Plugin Version:
  • Homebridge Version:
  • Node.js Version:
  • NPM Version:
  • Operating System:

Add support for new Lifx Ceiling light / LFXRND1556C

Is your feature request related to a problem? Please describe:
Lifx has a new light, and it doesn't seem to be supported by the Homebridge plugin.
https://www.lifx.com/products/ceiling-light-15-black-trim

LFXRND1556C

Describe the solution you'd like:
Support for new ceiling light, preferably with separate control for downlight and uplight like in the Lifx app.

Describe alternatives you've considered:
I've attempted to manually add it via IP to the plugin, but it causes the plugin to crash. No useful logs were generated.

TypeError: Cannot read properties of undefined (reading 'color') crashes plugin

I keep restarting the plugin. I have 36 Lifx bulbs. So i probably have some original clunkers from about 6 years ago in the mix. Not sure if this could be why. But it seems that the Manufacturer and Model are undefined. I tried to get more information in Debug mode, but this particular error remains the same.

[16/10/2022, 19:50:38] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[16/10/2022, 19:50:38] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'color')
at Bulb.hasColors (/var/lib/homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:63:46)
at LifxPlatformAccessory.bindFunctions (/var/lib/homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:75:19)
at /var/lib/homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:30:12
at /var/lib/homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:34:9
at /var/lib/homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:83:7
at /var/lib/homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:116:7
at Client. (/var/lib/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:236:5)
at Client. (/var/lib/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:451:26)
at Array.forEach ()
at Client.processMessageHandlers (/var/lib/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:438:24)
[16/10/2022, 19:50:38] [Lifx Plugin] Child bridge process ended
[16/10/2022, 19:50:38] [Lifx Plugin] Process Ended. Code: 1, Signal: null
[16/10/2022, 19:50:45] [Lifx Plugin] Restarting Process...
[16/10/2022, 19:50:46] [Lifx Plugin] Launched child bridge with PID 17033`

Auto Discover Disabled still discovers and adds bulbs

Describe The Bug:
All LIFX bulbs are discovered when Auto discovery is set to "False"

To Reproduce:
Set Autodiscover to "False", restart homebridge.

Expected behavior:
LIFX bulbs not discovered and added to home bridge/homekit when auto discover is set to "false".
Bulbs added manually are the ONLY bulbs are added to home bridge/homekit.

Logs:

[12/15/2021, 3:04:25 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Color Temperature': characteristic was supplied illegal value: number 549 exceeded maximum of 500. See https://git.io/JtMGR for more info.
[12/15/2021, 3:04:30 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Color Temperature': characteristic was supplied illegal value: number 549 exceeded maximum of 500. See https://git.io/JtMGR for more info.
[12/15/2021, 3:04:35 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Color Temperature': characteristic was supplied illegal value: number 549 exceeded maximum of 500. See https://git.io/JtMGR for more info.
[12/15/2021, 3:04:40 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Color Temperature': characteristic was supplied illegal value: number 549 exceeded maximum of 500. See https://git.io/JtMGR for more info.
[12/15/2021, 3:04:45 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Color Temperature': characteristic was supplied illegal value: number 549 exceeded maximum of 500. See https://git.io/JtMGR for more info.
[12/15/2021, 3:04:50 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Color Temperature': characteristic was supplied illegal value: number 549 exceeded maximum of 500. See https://git.io/JtMGR for more info.
[12/15/2021, 3:04:55 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Color Temperature': characteristic was supplied illegal value: number 549 exceeded maximum of 500. See https://git.io/JtMGR for more info.
.... Until plugin crashes Homebridge.

Plugin Config:

 {
        "name": "Lifx Plugin",
        "duration": 0,
        "brightnessDuration": 300,
        "colorDuration": 300,
        "broadcast": "255.255.255.255",
        "lightOfflineTolerance": 3,
        "messageHandlerTimeout": 45000,
        "resendPacketDelay": 150,
        "resendMaxTimes": 3,
        "debug": false,
        "autoDiscover": false,
        "bulbs": [
            {
                "name": "Bulb 1",
                "address": "192.168.x.9"
            },
            {
                "name": "Bulb 2",
                "address": "192.168.x.162"
            }
        ],
        "platform": "LifxPlugin"
    }

Environment:
Ubuntu 20.04

  • Plugin Version:
    v0.1.11

  • Homebridge Version:
    1.3.8

  • Node.js Version:
    v16.13.1

  • NPM Version:
    8.1.2

  • Operating System:
    Ubuntu 20.04

Auto discover and manual not working

Describe The Bug:
Auto discover AND manual IP of bulbs doesn’t work for me. I could be missing something. My two Lifx A19 (night vision) lights are on the network, they’re connected well (I have a Unifi network) with fixed IP addresses.

To Reproduce:

  1. Ensure your Lifx A19 are connected to the network. They are, but they are not accessible via Lifx App OR HomeKit... and that's the main reason why I'm using this app.
  2. Install the plugin.
  3. Wait for auto discover (nothing happens)
  4. Add the IP addresses of the two lights (nothing happens). I don't see anything in the accessories and the logs I get are
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255

Expected behavior:
I'd expect the lights to show up somewhere but tbh I'm not sure where/how -- improved documentation could help.

Some questions I have are?

  1. What is the broadcast address? If my router's subnet mask is 255.255.255.0, then should I change the broadcast address to that (I've tried that and nothing)?
  2. What is the bind address? Is it important? 0.0.0.0 to me sounds like "accept connections from all IPs" so I'm guessing that's fine.
  3. Are devices meant to show up automatically in the Accessories? That appears to be the case for the Unifi plugin that I have.
  4. Am I supposed to add devices found with this plugin manually to HomeKit or do I just add the bridge and then they show up automatically in HomeKit (sorry I'm a noob here so this might be a silly question.)

Logs:

[02/02/2022, 20:40:19] Homebridge v1.4.0 (HAP v0.10.0) (Homebridge FE6E) is running on port 51336.
[02/02/2022, 20:40:20] [homebridge-unifi-protect] Launched child bridge with PID 9832
[02/02/2022, 20:40:20] [Lifx Plugin] Launched child bridge with PID 9833
[02/02/2022, 20:40:20] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[02/02/2022, 20:40:20] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.1.20 child bridge successfully
[02/02/2022, 20:40:20] Loaded 0 cached accessories from cachedAccessories......
[02/02/2022, 20:40:20] Homebridge v1.4.0 (HAP v0.10.0) (Lifx Plugin) is running on port 41724.
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
[02/02/2022, 20:40:21] Registering platform 'homebridge-unifi-protect.UniFi Protect'
[02/02/2022, 20:40:21] [homebridge-unifi-protect] Loaded homebridge-unifi-protect v5.0.6 child bridge successfully
[02/02/2022, 20:40:21] Loaded 1 cached accessories from cachedAccessories......
[02/02/2022, 20:40:21] Homebridge v1.4.0 (HAP v0.10.0) (homebridge-unifi-protect) is running on port 53458.
[02/02/2022, 20:40:21] [homebridge-unifi-protect] UCK-G2-Plus [UCK-G2-PLUS]: Connected to the UniFi Protect controller API (address: 192.168.1.36 mac: ....).
[02/02/2022, 20:40:21] [homebridge-unifi-protect] UCK-G2-Plus [UCK-G2-PLUS]: Connected to the UniFi Protect realtime update events API.
[02/02/2022, 20:40:21] [homebridge-unifi-protect] UCK-G2-Plus [UCK-G2-PLUS]: Discovered camera: Entrance [UVC G4 Bullet] (address: 192.168.1.41 mac: ...).
[02/02/2022, 20:40:21] [homebridge-unifi-protect] UCK-G2-Plus [UCK-G2-PLUS]: Controller refresh interval set to 10 seconds.
[02/02/2022, 20:40:21] [homebridge-unifi-protect] UCK-G2-Plus [UCK-G2-PLUS] Entrance [UVC G4 Bullet]: Smart motion detection enabled: person, vehicle.
[02/02/2022, 20:40:21] [homebridge-unifi-protect] UCK-G2-Plus [UCK-G2-PLUS] Entrance [UVC G4 Bullet]: Smart motion contact sensors enabled: person, vehicle.
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 255.255.255.255
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.190
DEBUG - 24000034285761bb00000000000000000000000000000000000000000000000002000000 to 192.168.1.11

Plugin Config:

{
    "bridge": {
        "name": "Homebridge FE6E",
        "username": "β€”-",
        "port": 51336,
        "pin": "β€”-"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "controllers": [
                {
                    "address": "192.168.1.36",
                    "password": "β€”",
                    "username": "homebridge"
                }
            ],
            "platform": "UniFi Protect",
            "_bridge": {
                "username": "β€”-",
                "port": 53458
            },
            "options": [
                "Enable.Motion.SmartDetect",
                "Enable.Motion.SmartDetect.ObjectSensors"
            ]
        },
        {
            "name": "Lifx Plugin",
            "duration": 0,
            "brightnessDuration": 300,
            "colorDuration": 300,
            "default": "0.0.0.0",
            "broadcast": "255.255.255.255",
            "lightOfflineTolerance": 3,
            "messageHandlerTimeout": 45000,
            "resendPacketDelay": 150,
            "resendMaxTimes": 3,
            "debug": true,
            "autoDiscover": true,
            "bulbs": [
                {
                    "name": "light 1",
                    "address": "192.168.1.190"
                },
                {
                    "name": "light 2",
                    "address": "192.168.1.11"
                }
            ],
            "_bridge": {
                "username": "β€”-",
                "port": 41724
            },
            "platform": "LifxPlugin"
        }
    ],
    "disabledPlugins": []
}

Screenshots:

Environment:
I’ve got a RaspberryPi running Homebridge. I’ve got a mixed 5GHz 2.4GHz wifi (I sometimes have to disable the 5Ghz to get the Lifx bulbs to connect). FWIW I’ve struggled to get one of these Lifx bulbs to connect (though I did mange eventually) hence why I’m trying trying this plugin. Then idk HomeKit couldn’t find the lifx lights despite their being connected to the network (always verifiable through UniFi’s nice mobile app) … I did unplug my HomePod and move it around a bit. So that’s the other part fo this environment is the HomePod is the β€œbase station”.

I'm gonna try and reset these all again and see if I can get them to at least load on Lifx app. But got it's such a pain. The features of these lights are great but I think 50% of the time I struggle to connect them. And it doesn't help that the HomeKit code is so small on the light. Do I need to keep QR codes around for ever?

  • Plugin Version: 0.1.20
  • Homebridge Version: 1.4.0
  • Node.js Version: 16.13.2
  • NPM Version: 8.3.1
  • Operating System: Raspbian GNU/Linux Bullseye (11)

Adaptive Lightning always the same color (cold white)

Describe The Bug:
When using the Adaptive Lightning on any of the bulbs it turns always the same color (cold white), even if the light icon in the home app shows a warmer color temperature

To Reproduce:
turn on a light and enable adaptive lightning

Expected behavior:
a warmer color, especially on evening

Logs:

no error shown

Plugin Config:

        {
            "name": "Lifx Plugin",
            "duration": 0,
            "brightnessDuration": 300,
            "colorDuration": 300,
            "default": "0.0.0.0",
            "broadcast": "255.255.255.255",
            "lightOfflineTolerance": 3,
            "messageHandlerTimeout": 45000,
            "resendPacketDelay": 150,
            "resendMaxTimes": 3,
            "updates": true,
            "debug": false,
            "autoDiscover": true,
            "excludes": [
                {
                    "name": "XXXX",
                    "address": "XXXX",
                    "id": "XXXX"
                }
            ],
            "platform": "LifxPlugin"
        }

Environment:

  • Plugin Version: 0.2.0
  • Homebridge Version: 1.4.0
  • Node.js Version: 16.14.0
  • NPM Version: 8.5.0
  • Operating System: Ubuntu Groovy Gorilla (20.10)

Plugin fails repeatedly in Bulb.hasKelvin

Describe The Bug:
Plugin fails here:

Instead of:

    return this.HardwareInfo?.productFeatures.temperature_range?.reduce((a, b) => b - a) || 0 > 0;

it should most likely read:

    return this.HardwareInfo?.productFeatures?.temperature_range?.reduce((a, b) => b - a) || 0 > 0;
                                             ^

To Reproduce:

  1. Install homebridge
  2. Install homebridge-lifx-plugin
  3. View logs

Expected behavior:
homebridge-lifx-plugin operates without error

Logs:

[2/4/2023, 7:56:38 PM] [HB Supervisor] Restarting Homebridge...
[2/4/2023, 7:56:38 PM] [HB Supervisor] Starting Homebridge with extra flags: -I
[2/4/2023, 7:56:39 PM] [HB Supervisor] Started Homebridge v1.6.0 with PID: 47670
[2/4/2023, 7:56:39 PM] Loaded config.json with 0 accessories and 2 platforms.
[2/4/2023, 7:56:39 PM] Loaded 7 cached accessories from cachedAccessories.
[2/4/2023, 7:56:39 PM] ---
[2/4/2023, 7:56:39 PM] Loaded plugin: [email protected]
[2/4/2023, 7:56:39 PM] Registering platform 'homebridge-config-ui-x.config'
[2/4/2023, 7:56:39 PM] ---
[2/4/2023, 7:56:39 PM] Loaded plugin: [email protected]
[2/4/2023, 7:56:39 PM] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[2/4/2023, 7:56:39 PM] ---
[2/4/2023, 7:56:39 PM] Loading 2 platforms...
[2/4/2023, 7:56:39 PM] [Lifx] Initializing LifxPlugin platform...
[2/4/2023, 7:56:39 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:39 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:39 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:39 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:39 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:39 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:39 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
Setup Payload:
...
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     
     β”‚ ...                                             β”‚     
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     
                       
[2/4/2023, 7:56:39 PM] Homebridge v1.6.0 (HAP v0.11.0) (Homebridge 17E7) is running on port 51438.
[2/4/2023, 7:56:40 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:40 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:40 PM] TypeError: Cannot read properties of undefined (reading 'temperature_range')
    at Bulb.hasKelvin (.../.nvm/versions/node/v16.18.1/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:64:47)
    at LifxPlatformAccessory.bindFunctions (.../.nvm/versions/node/v16.18.1/lib/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:56:19)
    at .../.nvm/versions/node/v16.18.1/lib/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:25:12
    at .../.nvm/versions/node/v16.18.1/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:29:11
    at .../.nvm/versions/node/v16.18.1/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:90:7
    at .../.nvm/versions/node/v16.18.1/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:125:7
    at Client.<anonymous> (.../.nvm/versions/node/v16.18.1/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:236:5)
    at Client.<anonymous> (.../.nvm/versions/node/v16.18.1/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:451:26)
    at Array.forEach (<anonymous>)
    at Client.processMessageHandlers (.../.nvm/versions/node/v16.18.1/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:438:24)
[2/4/2023, 7:56:40 PM] Got SIGTERM, shutting down Homebridge...
[2/4/2023, 7:56:45 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[2/4/2023, 7:56:50 PM] [HB Supervisor] Restarting Homebridge...
[2/4/2023, 7:56:50 PM] [HB Supervisor] Starting Homebridge with extra flags: -I
[2/4/2023, 7:56:50 PM] [HB Supervisor] Started Homebridge v1.6.0 with PID: 47782
[2/4/2023, 7:56:50 PM] Loaded config.json with 0 accessories and 2 platforms.
[2/4/2023, 7:56:50 PM] Loaded 7 cached accessories from cachedAccessories.
[2/4/2023, 7:56:50 PM] ---
[2/4/2023, 7:56:50 PM] Loaded plugin: [email protected]
[2/4/2023, 7:56:50 PM] Registering platform 'homebridge-config-ui-x.config'
[2/4/2023, 7:56:50 PM] ---
[2/4/2023, 7:56:50 PM] Loaded plugin: [email protected]
[2/4/2023, 7:56:50 PM] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[2/4/2023, 7:56:50 PM] ---
[2/4/2023, 7:56:50 PM] Loading 2 platforms...
[2/4/2023, 7:56:50 PM] [Lifx] Initializing LifxPlugin platform...
[2/4/2023, 7:56:50 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:50 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:50 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:50 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:50 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:50 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:50 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
Setup Payload:
...
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     
     β”‚ ...                                             β”‚     
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     
                       
[2/4/2023, 7:56:50 PM] Homebridge v1.6.0 (HAP v0.11.0) (Homebridge 17E7) is running on port 51438.
[2/4/2023, 7:56:51 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:51 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[2/4/2023, 7:56:51 PM] TypeError: Cannot read properties of undefined (reading 'temperature_range')
    at Bulb.hasKelvin (.../.nvm/versions/node/v16.18.1/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:64:47)

   ... repeats continuously ...

Plugin Config:

{
   "name": "Lifx",
   "duration": 0,
   "brightnessDuration": 300,
   "colorDuration": 300,
   "broadcast": "255.255.255.255",
   "lightOfflineTolerance": 3,
   "messageHandlerTimeout": 45000,
   "resendPacketDelay": 150,
   "resendMaxTimes": 3,
   "debug": false,
   "autoDiscover": true,
   "platform": "LifxPlugin"
}

Screenshots:
N/A

Environment:

  • Plugin Version: v0.2.4
  • Homebridge Version: v1.6.0
  • Node.js Version: v16.18.1
  • NPM Version: 8.19.2
  • Operating System: macOS Ventura

LIFX bulbs randomly dim to 0% but remain on when using plugin

Describe The Bug:
After some time, my bulbs start to dim themselves one by one -- no reason to it but if I remove the homebridge-lifx plugin and add them manually to HomeKit -- no issues at all. I wanted to try out adaptive lighting with this plugin but the randomly dimming to 0% of the bulbs is maddening so I have to remove it.

To Reproduce:
Anything -- Adding bulbs via discovery -- same issue
Adding bulbs manually -- same issue.

I am a network administrator and have a full Cisco Meraki stack and I can help gather packet captures from anything on the network with the tools this gear comes with.

Expected behavior:
Bulb is turned on and then the bulb stays turned on and at that brightness until I change the brightness or turn it off. Bulbs should not be dimming themselves on their own.

Logs:

homebridge.log.txt

Plugin Config:

{
"name": "Lifx Plugin",
"duration": 0,
"brightnessDuration": 300,
"colorDuration": 300,
"default": "0.0.0.0",
"broadcast": "192.168.15.255",
"lightOfflineTolerance": 3,
"messageHandlerTimeout": 45000,
"resendPacketDelay": 150,
"resendMaxTimes": 3,
"updates": false,
"debug": false,
"autoDiscover": false,
"bulbs": [
{
"name": "Kitchen Table Lamp",
"address": "192.168.15.1"
},
{
"name": "Kitchen Can Bulb",
"address": "192.168.15.2"
},
{
"name": "Kitchen Can Bulb",
"address": "192.168.15.3"
},
{
"name": "Kitchen Can Bulb",
"address": "192.168.15.4"
},
{
"name": "Kitchen Can Bulb",
"address": "192.168.15.5"
},
{
"name": "Kitchen Sink Bulb",
"address": "192.168.15.6"
},
{
"name": "Living Room Lamp Bulb",
"address": "192.168.15.7"
},
{
"name": "Living Room Lamp Bulb",
"address": "192.168.15.8"
},
{
"name": "Living Room Lamp Bulb",
"address": "192.168.15.9"
},
{
"name": "Front Room Chair Lamp",
"address": "192.168.15.10"
},
{
"name": "Front Room Chandelier Bulb",
"address": "192.168.15.11"
},
{
"name": "Front Room Chandelier Bulb",
"address": "192.168.15.12"
},
{
"name": "Front Room Chandelier Bulb",
"address": "192.168.15.13"
},
{
"name": "Front Room Chandelier Bulb",
"address": "192.168.15.14"
},
{
"name": "Front Room Chandelier Bulb",
"address": "192.168.15.15"
},
{
"name": "Front Door Bulb",
"address": "192.168.15.16"
},
{
"name": "Front Door Bulb",
"address": "192.168.15.17"
},
{
"name": "Front Door Bulb",
"address": "192.168.15.18"
},
{
"name": "Living Room Ceiling Fan Bulb",
"address": "192.168.15.19"
},
{
"name": "Living Room Ceiling Fan Bulb",
"address": "192.168.15.20"
},
{
"name": "Living Room Ceiling Fan Bulb",
"address": "192.168.15.21"
},
{
"name": "Master Bedroom Ceiling Fan Bulb",
"address": "192.168.15.22"
},
{
"name": "Master Bedroom Ceiling Fan Bulb",
"address": "192.168.15.23"
},
{
"name": "Master Bedroom Ceiling Fan Bulb",
"address": "192.168.15.24"
},
{
"name": "Master Bedroom Lamp Bulb",
"address": "192.168.15.25"
},
{
"name": "Master Bedroom Lamp Bulb",
"address": "192.168.15.26"
},
{
"name": "Master Bath Bulb",
"address": "192.168.15.27"
},
{
"name": "Master Bath Bulb",
"address": "192.168.15.28"
},
{
"name": "Master Bath Bulb",
"address": "192.168.15.29"
},
{
"name": "Master Bath Bulb",
"address": "192.168.15.30"
},
{
"name": "Master Bath Bulb",
"address": "192.168.15.31"
},
{
"name": "Master Bath Bulb",
"address": "192.168.15.32"
},
{
"name": "Hallway Light",
"address": "192.168.15.33"
}
],
"_bridge": {
"username": "0E:A8:99:1C:9B:78",
"port": 30938
},
"platform": "LifxPlugin"
}

Screenshots:
Screen Shot 2022-03-20 at 10 23 20 AM

Environment:
MacOS Monterey 12.3 -- Homebridge.io runs on this.
Cisco Meraki -- MX, MS, MR Full stack
X2 MR36 -- not overwhelmed by all the bulbs at all, I use these with customers that have much higher density.

  • Plugin Version:
    homebridge-lifx-plugin v0.2.2

  • Homebridge Version:

  • Node.js Version:
    v16.4.0 ---> Updating to 1v6.4.2 NOW!
    I did not realize I was out of date, I installed this yesterday
    If this s a known issue the v16.4.0 please let me know and we can close this

  • NPM Version:
    8.3.1 --> Upgrading to v8.5.0 NOW!
    If this s a known issue the v16.4.0 please let me know and we can close this

  • Operating System:
    MacOS 12.3

Plugin enters crash loop when String light is auto discovered

Describe The Bug:
When a Lifx String Light is present on the network and auto discovery is turned on, the plugin (running in a child bridge) enters a crash loop.

When auto discovery is turned off, the crash loop stops.

Even once auto discovery is turned off, the plugin is now not able to control my existing bulbs that were working prior to adding the string lights. This happens even when removing the new lights from the accessory cache.

To Reproduce:
Set up one of the new string lights on the network

Expected behavior:
Even if not able to control the string light, it shouldn't crash

Logs:

[homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'color')
    at Bulb.hasColors (/usr/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:60:47)
    at LifxPlatformAccessory.bindFunctions (/usr/lib/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:70:19)
    at /usr/lib/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:25:12
    at /usr/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:29:11
    at /usr/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:90:7
    at /usr/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:125:7
    at Client.<anonymous> (/usr/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/src/lifx/light.js:218:5)
    at Client.<anonymous> (/usr/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/src/lifx/client.js:428:26)
    at Array.forEach (<anonymous>)
    at Client.processMessageHandlers (/usr/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/src/lifx/client.js:414:24)
[Lifx Plugin] Child bridge process ended
[Lifx Plugin] Process Ended. Code: 1, Signal: null

Plugin Config:

        {
            "name": "Lifx Plugin",
            "duration": 0,
            "brightnessDuration": 300,
            "colorDuration": 300,
            "default": "192.168.0.201",
            "broadcast": "192.168.0.255",
            "lightOfflineTolerance": 3,
            "messageHandlerTimeout": 45000,
            "resendPacketDelay": 150,
            "resendMaxTimes": 3,
            "updates": true,
            "debug": false,
            "autoDiscover": false,
            "_bridge": {
                "username": "...",
                "port": 37047
            },
            "platform": "LifxPlugin"
        },

Environment:

  • Plugin Version: v0.3.0
  • Homebridge Version: 1.7.0
  • Node.js Version: 18.6.0
  • NPM Version: 9.5.1
  • Operating System: Raspbian

Firmware Effects

Is your feature request related to a problem? Please describe:
No, It's a enhancement

Describe the solution you'd like:
I've got a number of LIFX Candle Color bulbs that are working great on your plugin. I'd like to be able to make them flicker like a flame, but the only way that I can see to do that via your plugin would be to enable Firmware Effects. Have you ever considered enabling the Firmware Effects for the LIFX bulbs/strips?
https://lan.developer.lifx.com/docs/firmware-effects

Describe alternatives you've considered:
Have not been able to find an alternative

Additional context:

LIFX Z Strip incorrectly says "An update is available" in Home app

When running this plugin with LIFX Z Strips that are not manufacturer HomeKit enabled incorrectly prompts a firmware update notification in the Home app.

To Reproduce
Add any non-HomeKit enabled Z Strip light to HomeKit using this plugin (0.2.3) and Homebridge (1.5.1), then go view your light in its room and you'll see a firmware icon on it's button:
IMG_92F854D96770-1

Entering the settings for this light shows the incorrect need for a firmware update:
IMG_07432F098582-1

Expected behavior
The firmware for old Z Strips cannot be updated. Homebridge shouldn't be prompting us for an update.

Note: This issue has occurred on other homebridge-lifx plugin projects and they seem to have workaround:

devbobo/homebridge-lifx-lan#37

TypeError: Cannot read properties of null (reading 'productName')

Describe The Bug:

Plugin frequently errors, closes child bridge with TypeError: Cannot read properties of null (reading 'productName')
This seems to occurs quite frequently with the most recent update to 0.2.3 and appears occur less frequently after a downgrade to a previous version (0.2.2 or older).

To Reproduce:

Update to the 0.2.3 and wait. Usually within less than 5 minutes of starting up, the error will occur, it crashes the child bridge this plugin is on, and the child bridge restarts. This can occur once, or multiple times depending on how much the plugin is being used by HomeKit

Expected behavior:

The Lifx Plugin will not error and restart.

Logs:

[6/20/2022, 10:28:22 AM] [Lifx] Bulb  throughs error setHardwareInformationError: No LIFX response in time

/usr/local/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:279
      return callback(err, null);
             ^
TypeError: Cannot read properties of null (reading 'productName')
    at /usr/local/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:32:64
    at /usr/local/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:104:7
    at /usr/local/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:122:7
    at Client.<anonymous> (/usr/local/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:279:14)
    at Client.<anonymous> (/usr/local/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:466:24)
    at Array.forEach (<anonymous>)
    at Client.processMessageHandlers (/usr/local/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:438:24)
    at Client.<anonymous> (/usr/local/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:238:12)
    at Socket.emit (node:events:527:28)
    at UDP.onMessage (node:dgram:922:8)

Plugin Config:

        {
            "name": "Lifx",
            "duration": 0,
            "brightnessDuration": 300,
            "colorDuration": 300,
            "default": "0.0.0.0",
            "broadcast": "10.0.1.255",
            "lightOfflineTolerance": 3,
            "messageHandlerTimeout": 45000,
            "resendPacketDelay": 150,
            "resendMaxTimes": 3,
            "updates": true,
            "debug": false,
            "autoDiscover": true,
            "platform": "LifxPlugin",
            "_bridge": {
                "username": "XX:XX:XX:XX:XX:XX",
                "port": XXXXX
            }

Screenshots:

None

Environment:

  • Plugin Version:
    • 0.2.3
  • Homebridge Version:
    • 1.4.1
  • Node.js Version:
    • 16.15.1
  • NPM Version:
    • 8.11.0
  • Operating System:
    • MacOS 10.13.6

LIFX Color Bulbs Do Not Adapt

Describe The Bug:

LIFX Color Bulbs on 3.70 firmware so not appear to adapt with adaptive lighting enabled on 0.2.2

To Reproduce:

Compare color of LIFX Color bulbs with adaptive lighting enabled in Home App with LIFX Mini White to Warm on 3.60 and note that the LIFX Mini White to Warm change to a warm color in the evening hours while the LIFX Color bulbs do not.
Expected behavior:

Both LIFX Mini White to Warm and LIFX Color bulbs adapt equally and to the same color tone at the same time of day.

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

  • Plugin Version: 0.2.2
  • Homebridge Version: 1.4.0
  • Node.js Version: 16.14.0
  • NPM Version: 8.3.1
  • Operating System: Debian

Support for Adaptive Lighting

Is your feature request related to a problem? Please describe:
While the LIFX app supports "Day-to-Dusk" I really prefer to keep all of my configuration/interaction in the Home app. I was very excited when Apple announced Adaptive Lighting but LIFX seems never to implement it. Can it be done through your bridge plugin? If so is there a way to support you to make that happen?

Mini White Bulbs appear as colored bulbs in Home App UI

Thank-you for creating this plugin!! Native LIFX HomeKit was driving me crazy...very flaky..... I've only had the plugin for a day, but it's already solved all of my issues!

Describe The Bug:

Low priority issue. The LIFX Mini White bulbs appear as colored bulbs within the Home app. All other bulbs and strips appear and operate as they should (color).

To Reproduce:

Not required

Expected behavior:

LIFZ Mini White bulbs should appear as a non-color dimmer, with no color selection options.

Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

Show your Homebridge config.json here, remove any sensitive information.

{
"name": "Lifx Plugin",
"duration": 0,
"brightnessDuration": 300,
"colorDuration": 300,
"broadcast": "255.255.255.255",
"lightOfflineTolerance": 3,
"messageHandlerTimeout": 45000,
"resendPacketDelay": 150,
"resendMaxTimes": 3,
"debug": false,
"autoDiscover": true,
"platform": "LifxPlugin"
}

Screenshots:

IMG_6162
IMG_6161

Environment:

  • Plugin Version: v0.1.9
  • Homebridge Version: v1.3.8
  • Node.js Version: v16.13.1
  • NPM Version: v8.3.0
  • Operating System: macOS Big Sur

New LIFX bulb update breaks Homebridge-lifx-plugin completely

Describe The Bug:

After updating LIFX Mini Color bulbs to firmware v3.90, they do not respond at all with this plugin.

To Reproduce:

Try controlling a bulb on the latest firmware

Expected behavior:

The bulb turning on or off, or changing color

Logs:

No logs appear in homebridge

Plugin Config:
{
"name": "Lifx Plugin",
"duration": 0,
"brightnessDuration": 300,
"colorDuration": 300,
"default": "0.0.0.0",
"broadcast": "255.255.255.255",
"lightOfflineTolerance": 3,
"messageHandlerTimeout": 45000,
"resendPacketDelay": 150,
"resendMaxTimes": 3,
"updates": true,
"debug": false,
"autoDiscover": false,
"bulbs": [
{
"name": "Kitchen Sink Light",
"address": "redacted"
},
{
"name": "Joe's Room Lamp",
"address": "redacted"
},
{
"name": "Joe's Room Ceiling",
"address": "redacted"
},
{
"name": "Porch Light Right",
"address": "redacted"
},
{
"name": "Porch Light Left",
"address": "redacted"
}
],
"platform": "LifxPlugin"
},

Environment:

  • Plugin Version: v0.2.3
  • Homebridge Version: v1.5.1
  • Node.js Version: v16.15.0
  • NPM Version: I don't know what that is
  • Operating System: macOS Ventura

Adding a specific Z strip causes a null pointer error that crashes the plugin

Describe The Bug:
When running the plugin in auto-discovery mode, I get a null pointer error that causes Homebridge to SIGTERM and restart. I isolated the issue to a specific Z strip (I have 3), and I’m not sure whyβ€”but the stacktrace leads me to believe it’s probably not loading the device config properly. It seems to load the strip into cachedAccessories, so it’s able to discover it fine, just not load it.

To Reproduce:
Run the plugin with auto-discovery set to true, without excludeing the specific Z strip in question.

Expected behavior:
I expect the plugin the load the Z strip correctly.

Logs:

[1/22/2022, 10:54:40 PM] [HB Supervisor] Starting Homebridge with extra flags: -I
[1/22/2022, 10:54:41 PM] [HB Supervisor] Started Homebridge v1.4.0 with PID: 1622
[1/22/2022, 10:54:49 PM] Loaded config.json with 0 accessories and 3 platforms.
[1/22/2022, 10:54:50 PM] Loaded 17 cached accessories from cachedAccessories.
[1/22/2022, 10:54:50 PM] ---
[1/22/2022, 10:54:59 PM] Loaded plugin: [email protected]
[1/22/2022, 10:54:59 PM] Registering platform 'homebridge-config-ui-x.config'
[1/22/2022, 10:54:59 PM] ---
[1/22/2022, 10:55:03 PM] Loaded plugin: [email protected]
[1/22/2022, 10:55:03 PM] Registering platform 'homebridge-dyson-pure-cool.DysonPureCoolPlatform'
[1/22/2022, 10:55:03 PM] ---
[1/22/2022, 10:55:04 PM] Loaded plugin: [email protected]
[1/22/2022, 10:55:04 PM] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[1/22/2022, 10:55:04 PM] ---
[1/22/2022, 10:55:04 PM] Loading 3 platforms...
[1/22/2022, 10:55:04 PM] [Config] Initializing config platform...
[1/22/2022, 10:55:04 PM] [Config] Running in Service Mode
[1/22/2022, 10:55:04 PM] [DysonPureCoolPlatform] Initializing DysonPureCoolPlatform platform...
[1/22/2022, 10:55:04 PM] [LIFX Plugin] Initializing LifxPlugin platform...
[1/22/2022, 10:55:05 PM] [DysonPureCoolPlatform] Accessories initialized.
Setup Payload:
X-HM://XXXXXXXXXXXXXX
Enter this code with your HomeKit app on your iOS device to pair with Homebridge:
                       
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     
    β”‚ XXX-XX-XXX β”‚     
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     
                       
[1/22/2022, 10:55:06 PM] Homebridge v1.4.0 (HAP v0.10.0) (Homebridge EAE7) is running on port XXXXX.
[1/22/2022, 10:55:09 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://git.io/JtMGR for more info.
[1/22/2022, 10:55:09 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://git.io/JtMGR for more info.
[1/22/2022, 10:55:10 PM] TypeError: Cannot read properties of undefined (reading 'color')
    at Bulb.hasColors (/usr/local/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:62:46)
    at LifxPlatformAccessory.bindFunctions (/usr/local/lib/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:57:19)
    at /usr/local/lib/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:27:12
    at /usr/local/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:33:9
    at /usr/local/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:79:7
    at /usr/local/lib/node_modules/homebridge-lifx-plugin/src/bulb.ts:112:7
    at Client.<anonymous> (/usr/local/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:236:5)
    at Client.<anonymous> (/usr/local/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:451:26)
    at Array.forEach (<anonymous>)
    at Client.processMessageHandlers (/usr/local/lib/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:438:24)
[1/22/2022, 10:55:10 PM] Got SIGTERM, shutting down Homebridge...

It seems as if it is incorrectly loading an accessory’s config as null, which causes the other two warnings about missing Manufacturer and Model.

Plugin Config:

{
    "bridge": {
        "name": "Homebridge EAE7",
        "username": "XX:XX:XX:XX:XX:XX",
        "port": 0,
        "pin": "XXX-XX-XXX"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 80,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "c",
            "lang": "auto",
            "platform": "config"
        },
        {
            "devices": [
                {
                    "ipAddress": "XXXXXX",
                    "serialNumber": "XXXXXX",
                    "credentials": "XXXXXX",
                    "enableAutoModeWhenActivating": true,
                    "enableOscillationWhenActivating": true,
                    "isNightModeEnabled": false,
                    "isJetFocusEnabled": false,
                    "isContinuousMonitoringEnabled": false,
                    "isTemperatureSensorEnabled": false,
                    "isHumiditySensorEnabled": true,
                    "isAirQualitySensorEnabled": true,
                    "isSingleSensorAccessoryModeEnabled": false,
                    "isSingleAccessoryModeEnabled": true,
                    "isFullRangeHumidity": false,
                    "isHeatingDisabled": false
                }
            ],
            "platform": "DysonPureCoolPlatform"
        },
        {
            "name": "LIFX Plugin",
            "duration": 300,
            "brightnessDuration": 300,
            "colorDuration": 300,
            "default": "0.0.0.0",
            "broadcast": "255.255.255.255",
            "lightOfflineTolerance": 3,
            "messageHandlerTimeout": 45000,
            "resendPacketDelay": 150,
            "resendMaxTimes": 3,
            "debug": false,
            "autoDiscover": true,
            "platform": "LifxPlugin",
            "exclude": [
              {}
            ]
        }
    ]
}

Environment:

  • Plugin Version: v0.1.20
  • Homebridge Version: 1.4.0
  • Node.js Version: 16.3.2
  • NPM Version: 8.3.2
  • Operating System: Raspbian running on Raspberry Pi Zero W 1.1
  • LIFX Version: 4.11.0 (2/ff85dc8) (v2.80) (v3.70-BULB)
  • LIFX Lights:
    • 10x Downlight (Latest Genβ€”I think that’s Gen 3?)
    • 3x A19 (1x Gen 4, 2x Gen 3)
    • 1x Mini Colour (Gen 3)
    • 3x Z Strip (2x 1500K, 1x 2500K)β€”1 of the 1500Ks isn’t working, but the other is. The 2500K works.

LIFX Mini Day & Dusk bulbs appear as coloured bulbs

I want to say thank you for the plugin you created. It saves me from having headaches with the official HomeKit version. I'm currently facing this minor nuisance with LIFX Mini Day & Dusk bulbs. Also, I have LIFX Smart Switch 4 Button and I don't think this switch should appear in the Homekit since none of the buttons are connected to dumb bulbs.

Describe The Bug:

Displaying RGB colour options in the accessory menu of LIFX Mini Day & Dusk bulb. This bulb has a huge warm-cool white range (1,500K-6,500K).

To Reproduce:

Open accessory menu normally

Expected behavior:

Should only display dimmer control and temperature colours, instead of RGB colours. As shown in the attached screenshot of the official HomeKit UI below.

Logs:

N/A

Plugin Config:

        {
            "name": "LIFX Plugin",
            "duration": 0,
            "brightnessDuration": 300,
            "colorDuration": 300,
            "broadcast": "255.255.255.255",
            "lightOfflineTolerance": 3,
            "messageHandlerTimeout": 45000,
            "resendPacketDelay": 150,
            "resendMaxTimes": 3,
            "debug": false,
            "autoDiscover": true,
            "platform": "LifxPlugin"
        },

Screenshots:

officialhomekitdd


homebridgedd

Environment:

  • Plugin Version: 0.1.14
  • Homebridge Version: 1.3.8
  • Node.js Version: 16.13.1
  • NPM Version: 8.1.2
  • Operating System: macOS Mojave

How do I install a fork of this plugin so I can fix bugs?

I'm trying to fix #27, but I'm stuck on installing my fork.

Current approach is to run this in the Homebridge console:

npm install github:lox/homebridge-lifx-plugin
cd node_modules/homebridge-lifx-plugin/ && npm install && npm run build

But strangely there is no src in node_modules/homebridge-lifx-plugin/. Any ideas what I am doing wrong here?

AutoDiscovery only gets a subset of bulbs on the network

Describe The Bug:
Similar to #9, however, it seems to only discover some of the bulbs, and fails to discover others. It doesn't seem to specifically be an issue with any type of bulb, but none of my GU10s are discovered.

  • These lights are confirmed to be connected to the network
  • They were addressable with Homekit using the LIFX official connection (I have removed them as I'm trying to use homebridge instead)
  • The lights can be manually added by IP (but I'd really prefer to avoid that)
  • I have set the broadcasting address as referenced in #9 (in my case it was 192.168.2.255)

To Reproduce:
Install the plug-in, configure it with AutoDiscovery.

Expected behavior:
It detects all bulbs.

Logs:

DEBUG - 2400003429986e560000000000000000000000000000007b000000000000000002000000 to 192.168.2.255
DEBUG - 2400003429986e560000000000000000000000000000007b000000000000000002000000 to 192.168.2.43
DEBUG - 2900001429986e56d073d514c5aa00004c4946585632007b38a47ea8069ba71703000000017cdd0000 from 192.168.2.26
DEBUG - 2900001429986e56d073d53a74e700004c4946585632007b6896f6b5d821000003000000017cdd0000 from 192.168.2.30
DEBUG - 2900001429986e56d073d538321d00004c4946585632007bc80ee93e0bb8290003000000017cdd0000 from 192.168.2.11
DEBUG - 2900001429986e56d073d55aa56400004c4946585632007b986283ade1a22c0003000000017cdd0000 from 192.168.2.42
DEBUG - 2900001429986e56d073d5655f5500004c4946585632007b4008467c1102000003000000017cdd0000 from 192.168.2.51
DEBUG - 2900001429986e56d073d53aeb1200004c4946585632007b18c7cc14e5a7200003000000017cdd0000 from 192.168.2.44
DEBUG - 2900001429986e56d073d538321d00004c4946585632007b70577f3f0bb8290003000000057cdd0000 from 192.168.2.11
DEBUG - 2900001429986e56d073d5655f5500004c4946585632007be09eeb7c1102000003000000057cdd0000 from 192.168.2.51
DEBUG - 2900001429986e56d073d53aeb1200004c4946585632007b78986315e5a7200003000000057cdd0000 from 192.168.2.44
DEBUG - 2900001429986e56d073d55aa56400004c4946585632007b68ce19aee1a22c0003000000057cdd0000 from 192.168.2.42
DEBUG - 2900001429986e56d073d53a74e700004c4946585632007b40d78cb6d821000003000000057cdd0000 from 192.168.2.30
DEBUG - 2900001429986e56d073d514c5aa00004c4946585632007b38ec66aa069ba71703000000057cdd0000 from 192.168.2.26
DEBUG - 2900001429986e56d073d556037600004c4946585632007ba88503891102000003000000017cdd0000 from 192.168.2.43
DEBUG - 2900001429986e56d073d556037600004c4946585632007b78f798891102000003000000057cdd0000 from 192.168.2.43
DEBUG - 2400001429986e56d073d55603760000000000000000007c000000000000000065000000 to 192.168.2.43
DEBUG - 2400001429986e56d073d538321d0000000000000000007d000000000000000065000000 to 192.168.2.11
DEBUG - 2400001429986e56d073d514c5aa0000000000000000007e000000000000000065000000 to 192.168.2.26
DEBUG - 2400001429986e56d073d53aeb120000000000000000007f000000000000000065000000 to 192.168.2.44
DEBUG - 2400001429986e56d073d53a74e700000000000000000080000000000000000065000000 to 192.168.2.30
DEBUG - 2400001429986e56d073d5655f5500000000000000000081000000000000000065000000 to 192.168.2.51
DEBUG - 5800001429986e56d073d514c5aa00004c4946585632007e38cef3bd069ba7176b0000007cb2cd0cffffac0d00000000556e6465726465736b00000000000000000000000000000000000000000000000000000000000000 from 192.168.2.26
DEBUG - 5800001429986e56d073d538321d00004c4946585632007d685a49570bb829006b000000c0d60000ffffac0d0000ffff4465736b204c616d7000000000000000000000000000000000000000000000000000000000000000 from 192.168.2.11
DEBUG - 5800001429986e56d073d53aeb1200004c4946585632007ff8d13c2de5a720006b00000000000000ffff8c0a000000004d61726be2809973204c616d70000000000000000000000000000000000000000000000000000000 from 192.168.2.44
DEBUG - 5800001429986e56d073d53a74e700004c4946585632008008eb93ced82100006b00000000000000ffff8c0a00000000426c616972e2809973204c616d700000000000000000000000000000000000000000000000000000 from 192.168.2.30
DEBUG - 5800001429986e56d073d5655f5500004c4946585632008168d91095110200006b000000551551b8ffffd90c0000ffff50656e64616e742049736c616e640000000000000000000000000000000000000000000000000000 from 192.168.2.51
DEBUG - 2400001429986e56d073d55aa56400000000000000000082000000000000000065000000 to 192.168.2.42
DEBUG - 5800001429986e56d073d55aa56400004c49465856320082a017f8cbe1a22c006b0000005ad0ffff0080ac0d0000ffff4c616d70000000000000000000000000000000000000000000000000000000000000000000000000 from 192.168.2.42
DEBUG - 5800001429986e56d073d556037600004c4946585632007c58aa70a1110200006b0000002d18ead15c0fac0d0000ffff4365696c696e67203500000000000000000000000000000000000000000000000000000000000000 from 192.168.2.43

Plugin Config:

{
            "name": "Lifx Plugin",
            "duration": 200,
            "brightnessDuration": 200,
            "colorDuration": 200,
            "default": "0.0.0.0",
            "broadcast": "192.168.2.255",
            "lightOfflineTolerance": 3,
            "messageHandlerTimeout": 45000,
            "resendPacketDelay": 150,
            "resendMaxTimes": 3,
            "updates": true,
            "debug": true,
            "autoDiscover": true,
            "bulbs": [
                {
                    "name": "Ceiling",
                    "address": "192.168.2.43"
                }
            ],
            "platform": "LifxPlugin"
        }

Environment:

  • Plugin Version: v0.3.0
  • Homebridge Version: v1.7.0
  • Node.js Version: v20.10.0
  • NPM Version: 10.2.3
  • Operating System: Docker

Lifx Beam Issues

Describe The Bug:
Lifx Beam is not working with Homebridge. I think This could be one of two things 1: the beam sends out non-standard manufacture and model info and this is normal or two there is an issue with my specific model. If I use the app "controller" I have, it shows as a manufacturer as Default-Manufacturer and Model as Default-Model I oddly see it listed twice in the app, the second time I see it as Lifx and Lifx Lightstrip

I did try to completely remove the light and then reset it via the button, but I'm still having issues. I am wondering if you were to just add those manufacturers and models to support it will just work. I don't code very much so idk if something that simple would work.

To Reproduce:
Try to add Lifx Beam to homebridge.

Expected behavior:
Normal operation

Logs:

[8/19/2023, 6:46:13 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:13 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:13 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:13 PM] Homebridge v1.6.1 (HAP v0.11.1) (Lifx Plugin) is running on port 53015.
[8/19/2023, 6:46:13 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:13 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'temperature_range')
at Bulb.hasKelvin (/homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:64:47)
at LifxPlatformAccessory.bindFunctions (/homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:56:19)
at /homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:25:12
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:29:11
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:90:7
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:125:7
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:236:5)
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:451:26)
at Array.forEach ()
at Client.processMessageHandlers (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:438:24)
[8/19/2023, 6:46:13 PM] [Lifx Plugin] Child bridge process ended
[8/19/2023, 6:46:13 PM] [Lifx Plugin] Process Ended. Code: 1, Signal: null
[8/19/2023, 6:46:20 PM] [Lifx Plugin] Restarting Process...
[8/19/2023, 6:46:20 PM] [Lifx Plugin] Launched child bridge with PID 5491
[8/19/2023, 6:46:20 PM] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[8/19/2023, 6:46:20 PM] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.2.4 child bridge successfully
[8/19/2023, 6:46:20 PM] Loaded 8 cached accessories from cachedAccessories.0EFBA205xxxx.
[8/19/2023, 6:46:20 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:20 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:20 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:20 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:20 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:20 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:20 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:20 PM] Homebridge v1.6.1 (HAP v0.11.1) (Lifx Plugin) is running on port 53015.
[8/19/2023, 6:46:21 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:21 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'temperature_range')
at Bulb.hasKelvin (/homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:64:47)
at LifxPlatformAccessory.bindFunctions (/homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:56:19)
at /homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:25:12
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:29:11
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:90:7
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:125:7
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:236:5)
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:451:26)
at Array.forEach ()
at Client.processMessageHandlers (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:438:24)
[8/19/2023, 6:46:21 PM] [Lifx Plugin] Child bridge process ended
[8/19/2023, 6:46:21 PM] [Lifx Plugin] Process Ended. Code: 1, Signal: null
[8/19/2023, 6:46:28 PM] [Lifx Plugin] Restarting Process...
[8/19/2023, 6:46:28 PM] [Lifx Plugin] Launched child bridge with PID 5503
[8/19/2023, 6:46:28 PM] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[8/19/2023, 6:46:28 PM] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.2.4 child bridge successfully
[8/19/2023, 6:46:28 PM] Loaded 8 cached accessories from cachedAccessories.0EFBA205xxxx.
[8/19/2023, 6:46:28 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:28 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:28 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:28 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:28 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:28 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:28 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:28 PM] Homebridge v1.6.1 (HAP v0.11.1) (Lifx Plugin) is running on port 53015.
[8/19/2023, 6:46:29 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:29 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'temperature_range')
at Bulb.hasKelvin (/homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:64:47)
at LifxPlatformAccessory.bindFunctions (/homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:56:19)
at /homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:25:12
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:29:11
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:90:7
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:125:7
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:236:5)
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:451:26)
at Array.forEach ()
at Client.processMessageHandlers (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:438:24)
[8/19/2023, 6:46:29 PM] [Lifx Plugin] Child bridge process ended
[8/19/2023, 6:46:29 PM] [Lifx Plugin] Process Ended. Code: 1, Signal: null
[8/19/2023, 6:46:36 PM] [Lifx Plugin] Restarting Process...
[8/19/2023, 6:46:36 PM] [Lifx Plugin] Launched child bridge with PID 5517
[8/19/2023, 6:46:36 PM] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[8/19/2023, 6:46:36 PM] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.2.4 child bridge successfully
[8/19/2023, 6:46:36 PM] Loaded 8 cached accessories from cachedAccessories.0EFBA205xxxx.
[8/19/2023, 6:46:36 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:36 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:36 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:36 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:36 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:36 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:36 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:36 PM] Homebridge v1.6.1 (HAP v0.11.1) (Lifx Plugin) is running on port 53015.
[8/19/2023, 6:46:36 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:36 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'temperature_range')
at Bulb.hasKelvin (/homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:64:47)
at LifxPlatformAccessory.bindFunctions (/homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:56:19)
at /homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:25:12
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:29:11
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:90:7
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:125:7
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:236:5)
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:451:26)
at Array.forEach ()
at Client.processMessageHandlers (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:438:24)
[8/19/2023, 6:46:36 PM] [Lifx Plugin] Child bridge process ended
[8/19/2023, 6:46:36 PM] [Lifx Plugin] Process Ended. Code: 1, Signal: null
[8/19/2023, 6:46:43 PM] [Lifx Plugin] Restarting Process...
[8/19/2023, 6:46:43 PM] [Lifx Plugin] Launched child bridge with PID 5529
[8/19/2023, 6:46:43 PM] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[8/19/2023, 6:46:43 PM] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.2.4 child bridge successfully
[8/19/2023, 6:46:43 PM] Loaded 8 cached accessories from cachedAccessories.0EFBA205xxxx.
[8/19/2023, 6:46:44 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:44 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:44 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:44 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:44 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:44 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:44 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:44 PM] Homebridge v1.6.1 (HAP v0.11.1) (Lifx Plugin) is running on port 53015.
[8/19/2023, 6:46:44 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:44 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'temperature_range')
at Bulb.hasKelvin (/homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:64:47)
at LifxPlatformAccessory.bindFunctions (/homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:56:19)
at /homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:25:12
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:29:11
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:90:7
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:125:7
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:236:5)
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:451:26)
at Array.forEach ()
at Client.processMessageHandlers (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:438:24)
[8/19/2023, 6:46:44 PM] [Lifx Plugin] Child bridge process ended
[8/19/2023, 6:46:44 PM] [Lifx Plugin] Process Ended. Code: 1, Signal: null
[8/19/2023, 6:46:51 PM] [Lifx Plugin] Restarting Process...
[8/19/2023, 6:46:51 PM] [Lifx Plugin] Launched child bridge with PID 5543
[8/19/2023, 6:46:51 PM] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[8/19/2023, 6:46:51 PM] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.2.4 child bridge successfully
[8/19/2023, 6:46:51 PM] Loaded 8 cached accessories from cachedAccessories.0EFBA205xxxx.
[8/19/2023, 6:46:51 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:51 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:51 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:51 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:51 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:51 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:51 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:51 PM] Homebridge v1.6.1 (HAP v0.11.1) (Lifx Plugin) is running on port 53015.
[8/19/2023, 6:46:52 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:52 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'temperature_range')
at Bulb.hasKelvin (/homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:64:47)
at LifxPlatformAccessory.bindFunctions (/homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:56:19)
at /homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:25:12
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:29:11
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:90:7
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:125:7
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:236:5)
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:451:26)
at Array.forEach ()
at Client.processMessageHandlers (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:438:24)
[8/19/2023, 6:46:52 PM] [Lifx Plugin] Child bridge process ended
[8/19/2023, 6:46:52 PM] [Lifx Plugin] Process Ended. Code: 1, Signal: null
[8/19/2023, 6:46:59 PM] [Lifx Plugin] Restarting Process...
[8/19/2023, 6:46:59 PM] [Lifx Plugin] Launched child bridge with PID 5555
[8/19/2023, 6:46:59 PM] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[8/19/2023, 6:46:59 PM] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.2.4 child bridge successfully
[8/19/2023, 6:46:59 PM] Loaded 8 cached accessories from cachedAccessories.0EFBA205xxxx.
[8/19/2023, 6:46:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:46:59 PM] Homebridge v1.6.1 (HAP v0.11.1) (Lifx Plugin) is running on port 53015.
[8/19/2023, 6:47:44 PM] [Lifx Plugin] Bulb throughs error setFirmwareVersionError: No LIFX response in time
Error: A Controller with the type/id 'characteristic-transition-00000043-0000-1000-8000-0026BB765291' was already added to the accessory xxx
at Accessory.configureController (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:847:13)
at PlatformAccessory.configureController (/homebridge/node_modules/homebridge/src/platformAccessory.ts:148:34)
at LifxPlatformAccessory.bindFunctions (/homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:63:24)
at /homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:25:12
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:29:11
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:90:7
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:125:7
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:226:14)
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:466:24)
at Array.forEach ()
[8/19/2023, 6:47:44 PM] [Lifx Plugin] Child bridge process ended
[8/19/2023, 6:47:44 PM] [Lifx Plugin] Process Ended. Code: 1, Signal: null
[8/19/2023, 6:47:51 PM] [Lifx Plugin] Restarting Process...
[8/19/2023, 6:47:52 PM] [Lifx Plugin] Launched child bridge with PID 5578
[8/19/2023, 6:47:52 PM] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[8/19/2023, 6:47:52 PM] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.2.4 child bridge successfully
[8/19/2023, 6:47:52 PM] Loaded 8 cached accessories from cachedAccessories.0EFBA2051xxxx.
[8/19/2023, 6:47:52 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:52 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:52 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:52 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:52 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:52 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:52 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:52 PM] Homebridge v1.6.1 (HAP v0.11.1) (Lifx Plugin) is running on port 53015.
[8/19/2023, 6:47:52 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:52 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'temperature_range')
at Bulb.hasKelvin (/homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:64:47)
at LifxPlatformAccessory.bindFunctions (/homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:56:19)
at /homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:25:12
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:29:11
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:90:7
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:125:7
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:236:5)
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:451:26)
at Array.forEach ()
at Client.processMessageHandlers (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:438:24)
[8/19/2023, 6:47:52 PM] [Lifx Plugin] Child bridge process ended
[8/19/2023, 6:47:52 PM] [Lifx Plugin] Process Ended. Code: 1, Signal: null
[8/19/2023, 6:47:59 PM] [Lifx Plugin] Restarting Process...
[8/19/2023, 6:47:59 PM] [Lifx Plugin] Launched child bridge with PID 5590
[8/19/2023, 6:47:59 PM] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[8/19/2023, 6:47:59 PM] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.2.4 child bridge successfully
[8/19/2023, 6:47:59 PM] Loaded 8 cached accessories from cachedAccessories.0EFBA205xxxx.
[8/19/2023, 6:47:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:59 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:47:59 PM] Homebridge v1.6.1 (HAP v0.11.1) (Lifx Plugin) is running on port 53015.
[8/19/2023, 6:48:00 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:48:00 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
TypeError: Cannot read properties of undefined (reading 'temperature_range')
at Bulb.hasKelvin (/homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:64:47)
at LifxPlatformAccessory.bindFunctions (/homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:56:19)
at /homebridge/node_modules/homebridge-lifx-plugin/src/platformAccessory.ts:25:12
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:29:11
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:90:7
at /homebridge/node_modules/homebridge-lifx-plugin/src/bulb.ts:125:7
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/light.js:236:5)
at Client. (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:451:26)
at Array.forEach ()
at Client.processMessageHandlers (/homebridge/node_modules/homebridge-lifx-plugin/node_modules/lifx-lan-client/lib/lifx/client.js:438:24)
[8/19/2023, 6:48:00 PM] [Lifx Plugin] Child bridge process ended
[8/19/2023, 6:48:00 PM] [Lifx Plugin] Process Ended. Code: 1, Signal: null
[8/19/2023, 6:48:07 PM] [Lifx Plugin] Restarting Process...
[8/19/2023, 6:48:07 PM] [Lifx Plugin] Launched child bridge with PID 5604
[8/19/2023, 6:48:07 PM] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[8/19/2023, 6:48:07 PM] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.2.4 child bridge successfully
[8/19/2023, 6:48:07 PM] Loaded 8 cached accessories from cachedAccessories.0EFBA205xxxx.
[8/19/2023, 6:48:07 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:48:07 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:48:07 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:48:07 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:48:07 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:48:07 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:48:07 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Firmware Revision': Characteristic not in required or optional characteristic section for service AccessoryInformation. Adding anyway.. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:48:07 PM] Homebridge v1.6.1 (HAP v0.11.1) (Lifx Plugin) is running on port 53015.
[8/19/2023, 6:48:52 PM] [Lifx Plugin] Bulb throughs error setHardwareInformationError: No LIFX response in time
[8/19/2023, 6:48:52 PM] [Lifx Plugin] Bulb throughs error setHardwareInformationError: No LIFX response in time
[8/19/2023, 6:48:53 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Manufacturer': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.
[8/19/2023, 6:48:53 PM] [homebridge-lifx-plugin] This plugin generated a warning from the characteristic 'Model': characteristic value expected string and received undefined. See https://homebridge.io/w/JtMGR for more info.

Show the Homebridge logs here, remove any sensitive information.

Plugin Config:

{
    "bridge": {
        "name": "Homebridge 3CxXD",
        "username": "0E:XX:81:CX:3C:XX",
        "port": 51037,
        "pin": "xxx-xxx-xxx",
        "advertiser": "ciao"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "dark-mode-cyan",
            "tempUnits": "c",
            "lang": "auto",
            "platform": "config"
        },
        {
            "name": "Govee",
            "username": "xxx",
            "password": "XXX",
            "platform": "Govee",
            "_bridge": {
                "username": "XXX",
                "port": 53062
            }
        },
        {
            "name": "IFTTT",
            "platform": "IFTTT"
        },
        {
            "name": "Lifx Plugin",
            "duration": 0,
            "brightnessDuration": 300,
            "colorDuration": 300,
            "default": "0.0.0.0",
            "broadcast": "255.255.255.255",
            "lightOfflineTolerance": 3,
            "messageHandlerTimeout": 45000,
            "resendPacketDelay": 150,
            "resendMaxTimes": 3,
            "updates": true,
            "debug": false,
            "autoDiscover": true,
            "platform": "LifxPlugin",
            "_bridge": {
                "username": "0E:FB:A2:XX:1C:XX",
                "port": 53015
            }
        }
    ],
    "disabledPlugins": [
        "homebridge-lg-thinq",
        "homebridge-messenger",
        "homebridge-webos-tv",
        "homebridge-alexa",
        "homebridge-ifttt",
        "homebridge-linak"
    ]
}```

**Screenshots:**
<!-- If applicable, add screenshots to help explain your problem. -->

**Environment:**

All Up to date running on windows vm.

I can not remove a bulb from homekit

Describe Your Problem:
Trying to remove a lifx bulb from homekit
I removed it from LIFX cloud and app
I listed the bulb in the exclusion list
Yet it still shows up in homekit

Logs:

[11/04/2024, 15:36:26] Homebridge v1.7.0 (HAP v0.11.1) (Lifx Plugin) is running on port 50154.
[11/04/2024, 15:37:13] [Lifx Plugin] Bulb  throughs error setHardwareInformationError: No LIFX response in time
[11/04/2024, 15:37:16] [Lifx Plugin] Bulb  throughs error setFirmwareVersionError: No LIFX response in time
[11/04/2024, 15:45:46] [Lifx Plugin] Restarting child bridge...
[11/04/2024, 15:45:46] Got SIGTERM, shutting down child bridge process...
[11/04/2024, 15:45:51] [Lifx Plugin] Child bridge process ended
[11/04/2024, 15:45:51] [Lifx Plugin] Process Ended. Code: 143, Signal: null
[11/04/2024, 15:45:58] [Lifx Plugin] Restarting Process...
[11/04/2024, 15:45:58] [Lifx Plugin] Launched child bridge with PID 602512
[11/04/2024, 15:45:58] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[11/04/2024, 15:45:59] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.3.0 child bridge successfully
[11/04/2024, 15:45:59] Loaded 6 cached accessories from cachedAccessories.0EA73BA32426.
[11/04/2024, 15:47:16] [Lifx Plugin] Restarting child bridge...
[11/04/2024, 15:47:16] Got SIGTERM, shutting down child bridge process...
[11/04/2024, 15:47:21] [Lifx Plugin] Child bridge process ended
[11/04/2024, 15:47:21] [Lifx Plugin] Process Ended. Code: 143, Signal: null
[11/04/2024, 15:47:28] [Lifx Plugin] Restarting Process...
[11/04/2024, 15:47:28] [Lifx Plugin] Launched child bridge with PID 602681
[11/04/2024, 15:47:29] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[11/04/2024, 15:47:29] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.3.0 child bridge successfully
[11/04/2024, 15:47:29] Loaded 6 cached accessories from cachedAccessories.0EA73BA32426.
[11/04/2024, 15:49:01] [Lifx Plugin] Bulb  throughs error setFirmwareVersionError: No LIFX response in time
[11/04/2024, 15:49:20] [Lifx Plugin] Bulb  throughs error setHardwareInformationError: No LIFX response in time
[11/04/2024, 15:49:31] [Lifx Plugin] Restarting child bridge...
[11/04/2024, 15:49:31] Got SIGTERM, shutting down child bridge process...
[11/04/2024, 15:49:36] [Lifx Plugin] Child bridge process ended
[11/04/2024, 15:49:36] [Lifx Plugin] Process Ended. Code: 143, Signal: null
[11/04/2024, 15:49:43] [Lifx Plugin] Restarting Process...
[11/04/2024, 15:49:43] [Lifx Plugin] Launched child bridge with PID 602863
[11/04/2024, 15:49:43] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[11/04/2024, 15:49:43] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.3.0 child bridge successfully
[11/04/2024, 15:49:43] Loaded 6 cached accessories from cachedAccessories.0EA73BA32426.
[11/04/2024, 15:52:07] [Lifx Plugin] Restarting child bridge...
[11/04/2024, 15:52:07] Got SIGTERM, shutting down child bridge process...
[11/04/2024, 15:52:12] [Lifx Plugin] Child bridge process ended
[11/04/2024, 15:52:12] [Lifx Plugin] Process Ended. Code: 143, Signal: null
[11/04/2024, 15:52:19] [Lifx Plugin] Restarting Process...
[11/04/2024, 15:52:19] [Lifx Plugin] Launched child bridge with PID 602955
[11/04/2024, 15:52:19] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[11/04/2024, 15:52:19] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.3.0 child bridge successfully
[11/04/2024, 15:52:19] Loaded 6 cached accessories from cachedAccessories.0EA73BA32426.
[11/04/2024, 15:54:37] [Lifx Plugin] Restarting child bridge...
[11/04/2024, 15:54:38] Got SIGTERM, shutting down child bridge process...
[11/04/2024, 15:54:43] [Lifx Plugin] Child bridge process ended
[11/04/2024, 15:54:43] [Lifx Plugin] Process Ended. Code: 143, Signal: null
[11/04/2024, 15:54:50] [Lifx Plugin] Restarting Process...
[11/04/2024, 15:54:50] [Lifx Plugin] Launched child bridge with PID 603046
[11/04/2024, 15:54:50] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[11/04/2024, 15:54:50] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.3.0 child bridge successfully
[11/04/2024, 15:54:50] Loaded 6 cached accessories from cachedAccessories.0EA73BA32426.
[11/04/2024, 15:59:48] [Lifx Plugin] Initializing LifxPlugin platform...
[11/04/2024, 15:59:48] [Lifx Plugin] Initializing child bridge 0E:A7:3B:A3:24:26
[11/04/2024, 15:59:49] [Lifx Plugin] Launched child bridge with PID 603215
[11/04/2024, 15:59:49] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.3.0 child bridge successfully
[11/04/2024, 15:59:49] Loaded 6 cached accessories from cachedAccessories.0EA73BA32426.
[11/04/2024, 16:00:39] [Lifx Plugin] Bulb  throughs error setFirmwareVersionError: No LIFX response in time
[11/04/2024, 16:00:44] [Lifx Plugin] Bulb  throughs error setHardwareInformationError: No LIFX response in time
[11/04/2024, 16:01:58] [Lifx Plugin] Restarting child bridge...
[11/04/2024, 16:01:58] Got SIGTERM, shutting down child bridge process...
[11/04/2024, 16:02:03] [Lifx Plugin] Child bridge process ended
[11/04/2024, 16:02:03] [Lifx Plugin] Process Ended. Code: 143, Signal: null
[11/04/2024, 16:02:10] [Lifx Plugin] Restarting Process...
[11/04/2024, 16:02:10] [Lifx Plugin] Launched child bridge with PID 603345
[11/04/2024, 16:02:10] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[11/04/2024, 16:02:10] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.3.0 child bridge successfully
[11/04/2024, 16:02:10] Loaded 6 cached accessories from cachedAccessories.0EA73BA32426.
[11/04/2024, 16:02:51] [Lifx Plugin] Restarting child bridge...
[11/04/2024, 16:02:51] Got SIGTERM, shutting down child bridge process...
[11/04/2024, 16:02:56] [Lifx Plugin] Child bridge process ended
[11/04/2024, 16:02:56] [Lifx Plugin] Process Ended. Code: 143, Signal: null
[11/04/2024, 16:03:03] [Lifx Plugin] Restarting Process...
[11/04/2024, 16:03:04] [Lifx Plugin] Launched child bridge with PID 603380
[11/04/2024, 16:03:04] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[11/04/2024, 16:03:04] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.3.0 child bridge successfully
[11/04/2024, 16:03:04] Loaded 6 cached accessories from cachedAccessories.0EA73BA32426.
[11/04/2024, 16:12:10] [Lifx Plugin] Initializing LifxPlugin platform...
[11/04/2024, 16:12:10] [Lifx Plugin] Initializing child bridge 0E:A7:3B:A3:24:26
[11/04/2024, 16:12:11] [Lifx Plugin] Launched child bridge with PID 604080
[11/04/2024, 16:12:11] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[11/04/2024, 16:12:11] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.3.0 child bridge successfully
[11/04/2024, 16:12:11] Loaded 6 cached accessories from cachedAccessories.0EA73BA32426.
[11/04/2024, 16:13:01] [Lifx Plugin] Bulb  throughs error setHardwareInformationError: No LIFX response in time
[11/04/2024, 16:13:08] [Lifx Plugin] Bulb  throughs error setFirmwareVersionError: No LIFX response in time
[11/04/2024, 16:13:21] [Lifx Plugin] Initializing LifxPlugin platform...
[11/04/2024, 16:13:21] [Lifx Plugin] Initializing child bridge 0E:A7:3B:A3:24:26
[11/04/2024, 16:13:22] [Lifx Plugin] Launched child bridge with PID 604692
[11/04/2024, 16:13:22] Registering platform 'homebridge-lifx-plugin.LifxPlugin'
[11/04/2024, 16:13:22] [Lifx Plugin] Loaded homebridge-lifx-plugin v0.3.0 child bridge successfully
[11/04/2024, 16:13:22] Loaded 6 cached accessories from cachedAccessories.0EA73BA32426.
[11/04/2024, 16:14:08] [Lifx Plugin] Bulb  throughs error setHardwareInformationError: No LIFX response in time

Plugin Config:

    "name": "Lifx Plugin",
    "duration": 0,
    "brightnessDuration": 300,
    "colorDuration": 300,
    "default": "0.0.0.0",
    "broadcast": "255.255.255.255",
    "lightOfflineTolerance": 3,
    "messageHandlerTimeout": 45000,
    "resendPacketDelay": 150,
    "resendMaxTimes": 3,
    "updates": true,
    "debug": false,
    "autoDiscover": false,
    "bulbs": [
        {
            "name": "Bench 2",
            "address": "192.168.1.161"
        },
        {
            "name": "Bench 1",
            "address": "192.168.1.165"
        },
        {
            "name": "TV Strip",
            "address": "192.168.1.166"
        },
        {
            "name": "Door R",
            "address": "192.168.1.167"
        },
        {
            "name": "Door L",
            "address": "192.168.1.163"
        }
    ],
    "excludes": [
        {
            "name": "Gate Light",
            "address": "192.168.1.160",
            "id": "d073d566bf6d"
        }
    ],
    "_bridge": {
        "username": "0E:A7:3B:A3:24:26",
        "port": 50154
    },
    "platform": "LifxPlugin"
}

Screenshots:

Environment:

  • Plugin Version: 0.3.0
  • Homebridge Version: v1.7.0
  • Node.js Version: v20.12.2
  • NPM Version: 9.2.0
  • Operating System: Debian

Prevent Duplicates when Lights are already in HomeKit

Is your feature request related to a problem? Please describe:
When lights are already added to HomeKit, using this plug in creates duplicates of the lights. While deleting the existing lights is possible, it also means it creates a lot more work should I decide to stop using HomeBridge

Describe the solution you'd like:
The ability to merge/modify the setting for lights already on the network

Describe alternatives you've considered:
The alternative is to delete all the lights and rely solely on the HomeBridge plugin, which would create a lot of work should I decide not to use HomeBridge in future

Additional context:
I guess as a new HomeBridge user, this might be a niche case. However, its quite a risk if this plug in dies and I have to scan all the codes again.

Adaptive lighting stuck on

Describe The Bug:

When I set up the plugin, my phone prompted me to enable Adaptive Lighting. Because the colour during the daytime is not to my taste, and does not match the colour that some nearby Philips Hue bulbs select with Adaptive Lighting enabled, I want to disable adaptive lighting on my LIFX bulbs.

I am able temporarily to do this by selecting a fixed colour for the lights in the Home app on my phone, but after a short period the lights revert to an adaptive colour, and when I open their details in the Home app I can see the adaptive colour has been re-selected automatically.

To Reproduce:

  1. Enable Adaptive Lighting on a LIFX Color 1000 bulb.
  2. Set the light to a fixed colour (a warm white) in the Home app.
  3. Leave the light on for an hour.
  4. Open the bulb in the Home app. Notice colour is set to Adaptive Lighting again.

Expected behavior:
After choosing a fixed colour for the bulb, that colour should remain selected.

Logs:
With debug off, there is no apparent log output from the plugin.
With debug on, there is a ton of log output that I can't make sense of, so it's hard to know what to provide to help diagnose this.

Plugin Config:

{
    "bridge": {
        "name": "Home",
        "username": "17:01:17:01:17:01",
        "pin": "XXX-XX-XXX",
        "port": 51498,
        "advertiser": "avahi"
    },
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "Lifx Plugin",
            "duration": 0,
            "brightnessDuration": 300,
            "colorDuration": 300,
            "default": "0.0.0.0",
            "broadcast": "192.168.0.255",
            "lightOfflineTolerance": 3,
            "messageHandlerTimeout": 45000,
            "resendPacketDelay": 150,
            "resendMaxTimes": 3,
            "updates": true,
            "debug": false,
            "autoDiscover": true,
            "platform": "LifxPlugin"
        }
    ],
    "accessories": [],
    "disabledPlugins": []
}

Screenshots:
n/a

Environment:

  • Plugin Version: v0.2.3
  • Homebridge Version: v1.5.0
  • Node.js Version: v16.17.1
  • NPM Version: 8.15.0
  • Operating System: Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l

Multi NIC Discovery Broadcast

I have separate IoT VLAN and User Device VLANs. My Homebridge VM has a NIC in each. Would it be possible to have your plugin broadcast from all network cards or to define in the settings of the plugin which NICs should be used for broadcast and discovery?

If I define each IP then the correct NIC is used of course and all is fine, but broadcast and Discovery is only used on one NIC not all. I ran a Wireshark on both vlans and can only see broadcasts to 255.255.255.255 on the first NIC which is not where my bulbs reside.

I have given up with LIFX Native HomeKit support. Even on a flat network its a coin toss as if these bulbs will speak hap/mdns.
I have 12 Colour Minis and 2 Z Strips (Though the Z Strips are rock solid on HAP/MDNS and behave very differently than the minis).

Hope your well!

LIFXZ Strip not working correctly on adaptive lighting

Describe The Bug:
LifxZ strips with 1 extension are going into 9000k when adaptive lighting is selected inside homekit. All other lifx lights are working just fine, which include LIFX bulbs.

To Reproduce:
Each time I turn on adaptive lighting.

Expected behavior:
Ideally the bulbs would match the same lighting temperature as the room they are in, but at least be close to the same kelvin value.

Logs:

which part of the logs are you needing?

Plugin Config:

 "name": "Lifx Plugin",
        "duration": 4000,
        "brightnessDuration": 900,
        "colorDuration": 900,
        "default": "0.0.0.0",
        "broadcast": "255.255.255.255",
        "lightOfflineTolerance": 3,
        "messageHandlerTimeout": 45000,
        "resendPacketDelay": 150,
        "resendMaxTimes": 3,
        "updates": true,
        "debug": false,
        "autoDiscover": true,
        "platform": "LifxPlugin"

Screenshots:

Environment:

  • Plugin Version:
  • Homebridge Version: 1.4.1
  • Node.js Version: 18.2.0
  • NPM Version: not sure where to find this
  • Operating System: macOS

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.