Getting this error with homebridge-http-lightbulb@v1.2.2 running on homebridge@v1.2.5 when light is configured with both brightness and colorTemperature:
TypeError: api.hap.AdaptiveLightingController is not a constructor
at new HTTP_LIGHTBULB (/usr/lib/node_modules/homebridge-http-lightbulb/index.js:141:43)
at /usr/lib/node_modules/homebridge/src/server.ts:355:50
at Array.forEach (<anonymous>)
at Server._loadAccessories (/usr/lib/node_modules/homebridge/src/server.ts:328:29)
at Server.start (/usr/lib/node_modules/homebridge/src/server.ts:154:12)
at cli (/usr/lib/node_modules/homebridge/src/cli.ts:80:10)
at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
at Module.load (internal/modules/cjs/loader.js:985:32)
Expected behavior
Should not throw an error.
To Reproduce
Configure homebridge-http-lightbulb with a lightbulb that uses both brightness and colorTemperature configurations
Restart homebridge
homebridge will not start due to homebridge-http-lightbulb throwing an error
Version (output of npm list -g homebridge homebridge-http-lightbulb)
There was indeed an issue where it wasn't properly checked if AdaptiveLighting is supported by the currently running version of homebridge.
This was fixed with v1.2.3
Describe the bug
Getting this error with
homebridge-http-lightbulb@v1.2.2
running onhomebridge@v1.2.5
when light is configured with bothbrightness
andcolorTemperature
:Expected behavior
Should not throw an error.
To Reproduce
homebridge-http-lightbulb
with a lightbulb that uses bothbrightness
andcolorTemperature
configurationshomebridge
homebridge
will not start due tohomebridge-http-lightbulb
throwing an errorVersion (output of
npm list -g homebridge homebridge-http-lightbulb
)v1.2.5
v1.2.2
Configuration
Additional context I believe this started happening since
v1.2.0
with this change: https://github.com/Supereg/homebridge-http-lightbulb/commit/639b63aae7e36cc89e9dfbafcfbd91c869ca2436