Skip to content

"TypeError: Class constructor Characteristic cannot be invoked without 'new'" after update to Homebridge v2 #205

Description

@alanbowman

I've just updated to Homebridge v2 on a Docker container, and have v0.11.2 of this plugin running (via a child bridge). I've started seeing this error message and the plugin failing to get any further:

[5/5/2026, 1:41:40 PM] [Evohome] Logging into Evohome...
[5/5/2026, 1:41:41 PM] [Evohome] Logged into Evohome!
[5/5/2026, 1:41:41 PM] [Evohome] You have 1 location(s). This instance will be using Index No 0
[5/5/2026, 1:41:41 PM] [Evohome] You have 1 device(s).
[5/5/2026, 1:41:41 PM] [Evohome] 0: Kitchen (18.5°)
[5/5/2026, 1:41:41 PM] Initializing platform accessory 'Kitchen Thermostat'...
[5/5/2026, 1:41:41 PM] [Evohome] Error getting system mode status:
 TypeError: Class constructor Characteristic cannot be invoked without 'new'
    at new CustomCharacteristic.ValvePosition (/homebridge/node_modules/homebridge-evohome/index.js:31:20)
    at Thermostat.addCharacteristic (/homebridge/node_modules/homebridge/node_modules/@homebridge/hap-nodejs/src/lib/Service.ts:528:57)
    at EvohomeThermostatAccessory.getServices (/homebridge/node_modules/homebridge-evohome/index.js:1114:28)
    at BridgeService.createHAPAccessory (file:///homebridge/node_modules/homebridge/src/bridgeService.ts:508:41)
    at file:///homebridge/node_modules/homebridge/src/bridgeService.ts:578:34
    at Array.forEach (<anonymous>)
    at file:///homebridge/node_modules/homebridge/src/bridgeService.ts:569:21
    at /homebridge/node_modules/homebridge/node_modules/@homebridge/hap-nodejs/src/lib/util/once.ts:15:14
    at EvohomePlatform.<anonymous> (/homebridge/node_modules/homebridge-evohome/index.js:320:29)
    at _fulfilled (/homebridge/node_modules/homebridge-evohome/node_modules/q/q.js:854:54)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedtestingA possible solution has been found. Testing.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions