thkl / hap-homematic

a AddOn for HomeMatic CCU3 (Raspberrymatic) that will bring HomeKit to your CCU
MIT License
220 stars 24 forks source link

crash when try to add HmIP-SWDM-B2 Window contact #669

Open dieter-l-git opened 6 months ago

dieter-l-git commented 6 months ago

Which Homematic actor/sensor you want to control ? HmIP-SWDM-B2

Which settings y've choosen for this actor/sensor in hap-homematic ? Try to add the HmIP-SWDM-B2 as Window Accessory, Door Accessory or Contact Accessory, doesn't matter, alway same issue

What happends Did not shown, log shows:

[Thu Jan 04 2024 21:27:23 GMT+0100 (CET)] info - [HAP Server] [Server] service used for HmIP-SWDM-B2 00155993963ECD:1 is HomeMaticWindowAccessory
[Thu Jan 04 2024 21:27:23 GMT+0100 (CET)] error - [HAP Server] Unable to initialize HmIP-SWDM-B2 00155993963ECD:1 Error is /usr/local/addons/hap-homematic/node_modules/https-proxy-agent/dist/index.js:54
        this.proxyHeaders = opts?.headers ?? {};
                                 ^
SyntaxError: Unexpected token .
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:616:28)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/addons/hap-homematic/node_modules/gaxios/build/src/gaxios.js:27:29)

What should be happend should be shown as Homekit Window

Steps to reproduce this issue (while you are perfoming these steps please run hap-homematic in debug mode ( https://github.com/thkl/hap-homematic/wiki/Troubleshooting#running-in-debug-mode ) and add the log here