Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erreur Homebridge 2.0.0 beta 11 #156

Open
Quitsoon opened this issue Aug 10, 2024 · 1 comment
Open

Erreur Homebridge 2.0.0 beta 11 #156

Quitsoon opened this issue Aug 10, 2024 · 1 comment

Comments

@Quitsoon
Copy link

Describe the bug

Bonjour,

je rencontre l'erreur "TypeError: d.getCharacteristic(...).on(...).getValue is not a function" suite à l'essai la version v2.0.0 beta 11 d'homebridge.

Homebridge redémarre en boucle le child bridge.
L'initialisation se passe bien, jusqu'à la ligne "Properly loaded XX-accessories"

Le passage à la version 1.8.4 résous le problème

Related hardware

Raspberry pi 4

Logs

[10/08/2024, 21:13:15] [homebridge-tydom] Properly loaded 11-accessories

/var/lib/homebridge/node_modules/homebridge-tydom/src/accessories/windowCovering.ts:94
    .getValue();
     ^
TypeError: d.getCharacteristic(...).on(...).getValue is not a function
    at A6 (/var/lib/homebridge/node_modules/homebridge-tydom/src/accessories/windowCovering.ts:94:6)
    at iu.updateAccessory (/var/lib/homebridge/node_modules/homebridge-tydom/src/platform.ts:160:74)
    at iu.handleControllerDevice (/var/lib/homebridge/node_modules/homebridge-tydom/src/platform.ts:93:20)
    at Zc.emit (node:events:519:28)
    at /var/lib/homebridge/node_modules/homebridge-tydom/src/controller.ts:202:14
    at Array.forEach (<anonymous>)
    at Zc.scan (/var/lib/homebridge/node_modules/homebridge-tydom/src/controller.ts:138:15)
    at iu.didFinishLaunching (/var/lib/homebridge/node_modules/homebridge-tydom/src/platform.ts:65:5)
[10/08/2024, 21:13:15] [homebridge-tydom] Child bridge process ended

Versions
homebridge-tydom: v0.25.0

@Quitsoon
Copy link
Author

Quitsoon commented Aug 10, 2024

J'ai trouvé l'info suivantes :
https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

Common long-deprecated code patterns that may need updating:
Use of enums off the Characteristic class is no longer supported:
    Instead of const Units = Characteristic.Units; you will need to use const Units = api.hap.Units;
    Instead of const Formats = Characteristic.Formats; you will need to use const Formats = api.hap.Formats;
    Instead of const Perms = Characteristic.Perms; you will need to use const Perms = api.hap.Perms;
Characteristic.getValue() has been removed in favour of Characteristic.value 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant