Skip to content

Homebridge v2.0.0 beta 21 - TypeError: Class constructor Characteristic #12

@fubu2k

Description

@fubu2k

Homebride v2.0.0 beta 21
Plugin v0.2.2

Runs without error on Homebridge v1.8.4

Error:

[9/18/2024, 3:17:06 PM] [Sonne] Child bridge starting (pid 550)...
[9/18/2024, 3:17:06 PM] Registering platform 'homebridge-seasons.Seasons'
[9/18/2024, 3:17:06 PM] [Sonne] Child bridge started successfully (plugin v0.2.2).
[9/18/2024, 3:17:06 PM] Loaded 0 cached accessories from cachedAccessories.0E59D532C9DE.
/homebridge/node_modules/homebridge-sun-position/index.js:17
Characteristic.call(this, 'Altitude', ALTITUDE_UUID);
^
TypeError: Class constructor Characteristic cannot be invoked without 'new'
at new AltitudeCharacteristic (/homebridge/node_modules/homebridge-sun-position/index.js:17:18)
at LightSensor.addCharacteristic (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Service.ts:518:57)
at SunPositionAccessory.getServices (/homebridge/node_modules/homebridge-sun-position/index.js:72:18)
at BridgeService.createHAPAccessory (file:///homebridge/node_modules/homebridge/src/bridgeService.ts:439:41)
at ChildBridgeFork.startBridge (file:///homebridge/node_modules/homebridge/src/childBridgeFork.ts:179:46)
[9/18/2024, 3:17:06 PM] [Sonne] Child bridge ended (code 1, signal null). The child bridge ended unexpectedly, which is normally due to the plugin not catching its errors properly. Please report this to the plugin developer by clicking on the 'Report An Issue' option in the plugin menu dropdown from the Homebridge UI. If there are related logs shown above, please include them in your report.
[9/18/2024, 3:17:06 PM] [Sonne] Child bridge will automatically restart in 40 seconds (restart attempt 4 of 4).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions