Skip to content

Update for Homebridge v2.0.0-beta.29 #352

Description

@LutzRFrank

Describe the bug
The plugin doesn't load in v2.0.0-beta.29

[7/3/2025, 9:26:08 AM] [FritzPlatform] Fritz-Box 6660 Cable (repeater): Adding Switch service
[7/3/2025, 9:26:08 AM] TypeError: Class constructor Service cannot be invoked without 'new'
at new Service.Switch (/homebridge/node_modules/homebridge-fritz-platform/src/types/custom.types.js:310:13)
at Accessory.addService (/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:517:9)
at PlatformAccessory.addService (file:///homebridge/node_modules/homebridge/src/platformAccessory.ts:93:41)
at Accessory.getService (/homebridge/node_modules/homebridge-fritz-platform/src/accessories/router/router.accessory.js:28:32)
at new Accessory (/homebridge/node_modules/homebridge-fritz-platform/src/accessories/router/router.accessory.js:15:10)
at FritzPlatform.setupAccessory (/homebridge/node_modules/homebridge-fritz-platform/src/platform.js:191:9)
at /homebridge/node_modules/homebridge-fritz-platform/src/platform.js:163:14
at Array.forEach ()
at FritzPlatform.didFinishLaunching (/homebridge/node_modules/homebridge-fritz-platform/src/platform.js:158:22)
[7/3/2025, 9:26:08 AM] Got SIGTERM, shutting down Homebridge...
[7/3/2025, 9:26:09 AM] [FritzPlatform] An error occurred during polling router/characteristics!
[7/3/2025, 9:26:09 AM] [FritzPlatform] TypeError: Cannot read properties of undefined (reading 'getCharacteristic')
at Handler.get (/homebridge/node_modules/homebridge-fritz-platform/src/accessories/router/router.handler.js:96:66)
at Handler.poll (/homebridge/node_modules/homebridge-fritz-platform/src/accessories/router/router.handler.js:979:22)
at Timeout._onTimeout (/homebridge/node_modules/homebridge-fritz-platform/src/accessories/router/router.handler.js:25:27)
at listOnTimeout (node:internal/timers:588:17)
at processTimers (node:internal/timers:523:7)

To Reproduce
Steps to reproduce the behavior:
activate a master device, like FritzBox 6660

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser : Safari
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

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