iklein99 / homebridge-smartthings

This is a plugin to Homebridge to connect your Smartthings network into Apple Home Kit.
Apache License 2.0
150 stars 52 forks source link

Not reporting temperature on Z-wave devices #161

Closed sipuncher closed 1 year ago

sipuncher commented 1 year ago

Describe The Bug: Temperature readings from Z-wave devices using the temperaturesensor capability are showing as 0°C

To Reproduce: Add Z-Wave device to SmartThings that supports the temperature sensor capability. I’m using motion and contact sensors with the default handlers for temperature in the driver.

Expected behavior: Correct temperature showed against devices in homebridge

Logs: Not sure if related

Error getting devices from SmartThings: TypeError: device.label.replaceall is not a function.

Plugin Config:


"name": "Smartthings Plug (IK)",
            "BaseURL": "https://api.smartthings.com/v1/",
            "AccessToken": ,
            "GarageDoorMaxPoll": 40,
            "PollLocksSeconds": 10,
            "PollDoorsSeconds": 10,
            "PollSensorsSeconds": 5,
            "IgnoreDevices": [
                "Z-Wave Extender",
                "Shed Outdoor Light Relay",
                "iPhone",
                "Beas Side Light",
                "Hatties Side Light",
                "Christmas lights 2"
            ],
            "platform": "HomeBridgeSmartThings"
        }

Screenshots:

Environment:

iklein99 commented 1 year ago

Follow these instructions and capture a detailed log for me. Send directly to me at iklein99@comcast.net. Instructions for Producing a Detailed Log.pdf

sipuncher commented 1 year ago

I removed all accessories from the cache and restarted, but no accessories have been added now. I think the lack of temperature sensor readings could be a red herring therefore and the devices are just not loading correctly due to the fatal errors in the log above.

I’ve been through every device in the IDE (and CLI) and two were missing a label - the automatically generated presence devices of the two phones on my account. I added labels and restarted but get the same errors still.

sipuncher commented 1 year ago

I’ve rolled back to 1.5.1 before the handling of single quotes was added with the ReplaceAll function and it’s all working again now. Clearly something about one of my labels it doesn’t like…

iklein99 commented 1 year ago

Ok. Thanks for that info. I'll take a look. What can help me is if you use the instructions for sending me a detailed log from startup, I can see what the labels look like. My guess is that one of them is coming over as a number instead of a string. Can you do that?

In the meantime, I will patch this and ask you to try again once I get a new version out.

iklein99 commented 1 year ago

Ok. please try 1.5.7 and let me know how that goes.

sipuncher commented 1 year ago

Just tried and it errors as before, but the .ToString().ReplaceAll this time… not sure what the label is that won’t ToString? A null value?

I followed the steps to enable debug logging and restarted several times but that’s all the logging I get. I set the Debug argument to * and got more logging from Homebridge itself but not from your plugin.

The labels all look normal on my devices… I removed special characters from all of them but it didn’t make a difference. Is there a maximum length? Hard to know what else to suggest without the debug logging.

On Sat, 1 Apr 2023 at 13:28, iklein99 @.***> wrote:

Ok. please try 1.5.7 and let me know how that goes.

— Reply to this email directly, view it on GitHub https://github.com/iklein99/homebridge-smartthings/issues/161#issuecomment-1492957270, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYTNGYKICLHB7QI54V7D7DW7ANNTANCNFSM6AAAAAAWONHS2Q . You are receiving this because you authored the thread.Message ID: @.***>

iklein99 commented 1 year ago

Ok. I will make one more change that I'm sure will fix it, but I'm baffled as to what you are getting.

iklein99 commented 1 year ago

Upgrade to 1.5.8. Fingers crossed!

sipuncher commented 1 year ago

No joy… but the additional logging has helped:

I can’t see what’s wrong with the name “shed motion sensor”?!

On Sat, 1 Apr 2023 at 14:45, iklein99 @.***> wrote:

Upgrade to 1.5.8. Fingers crossed!

— Reply to this email directly, view it on GitHub https://github.com/iklein99/homebridge-smartthings/issues/161#issuecomment-1492974104, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYTNG3CKKJIADX4LOTBQIDW7AWNZANCNFSM6AAAAAAWONHS2Q . You are receiving this because you authored the thread.Message ID: @.***>

iklein99 commented 1 year ago

Are you saying it crashes? It should continue on even though the error occurred. You should see it as a warning now and the plugin will continue.

sipuncher commented 1 year ago

Yeah it crashes… those two red error messages are the last in the log, and my devices aren’t updating status again.

On Sat, 1 Apr 2023 at 15:09, iklein99 @.***> wrote:

Are you saying it crashes? It should continue on even though the error occurred. You should see it as a warning now and the plugin will continue.

— Reply to this email directly, view it on GitHub https://github.com/iklein99/homebridge-smartthings/issues/161#issuecomment-1492981841, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYTNG7S5CYEZ3AXLT7CGOLW7AZLHANCNFSM6AAAAAAWONHS2Q . You are receiving this because you authored the thread.Message ID: @.***>

iklein99 commented 1 year ago

Can you send me that part of the log?

On Apr 1, 2023, at 10:12 AM, Simon @.***> wrote:

Yeah it crashes… those two red error messages are the last in the log, and my devices aren’t updating status again.

On Sat, 1 Apr 2023 at 15:09, iklein99 @.***> wrote:

Are you saying it crashes? It should continue on even though the error occurred. You should see it as a warning now and the plugin will continue.

— Reply to this email directly, view it on GitHub https://github.com/iklein99/homebridge-smartthings/issues/161#issuecomment-1492981841, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYTNG7S5CYEZ3AXLT7CGOLW7AZLHANCNFSM6AAAAAAWONHS2Q . You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/iklein99/homebridge-smartthings/issues/161#issuecomment-1492982610, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABG55EWB664K4CNC5BLGTATW7AZWVANCNFSM6AAAAAAWONHS2Q. You are receiving this because you commented.

sipuncher commented 1 year ago

Ah I looked at your code and saw that error was from the exclusion list. I’ve removed all entries from there and it’s working now. I couldn’t see any issues in the config file or UI but must have been something there.

Thanks for your help diagnosing this!

On Sat, 1 Apr 2023 at 15:56, Simon Puncher @.***> wrote:

[01/04/2023, 15:53:00] [Homebridge UI] Homebridge log truncated by admin. [01/04/2023, 15:53:15] [Homebridge UI] Homebridge restart request received [01/04/2023, 15:53:15] [Homebridge UI] Sending SIGTERM to process... [01/04/2023, 15:53:16] [HB Supervisor] OS: Windows_NT 10.0.22621 x64 [01/04/2023, 15:53:16] [HB Supervisor] Node.js v14.18.1 C:\Program Files\nodejs\node.exe [01/04/2023, 15:53:16] [HB Supervisor] Homebridge Path: C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge\bin\homebridge [01/04/2023, 15:53:16] [HB Supervisor] UI Path: C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge-config-ui-x\dist\bin\standalone.js [01/04/2023, 15:53:17] [Homebridge UI] Homebridge Config UI X v4.50.2 is listening on :: port 8581 [01/04/2023, 15:53:18] [HB Supervisor] Starting Homebridge with extra flags: -I -D [01/04/2023, 15:53:18] [HB Supervisor] Starting Homebridge with custom env: {"DEBUG":"*"} [01/04/2023, 15:53:18] [HB Supervisor] Started Homebridge v1.6.0 with PID: 6988 2023-04-01T14:53:18.311Z ciao:init Loading ciao v1.1.5... 2023-04-01T14:53:18.420Z HAP-NodeJS:Advertiser Initializing HAP-NodeJS v0.11.0 ... [01/04/2023, 15:53:18] Loaded config.json with 2 accessories and 2 platforms. [01/04/2023, 15:53:18] Loaded 25 cached accessories from cachedAccessories. [01/04/2023, 15:53:18] --- [01/04/2023, 15:53:18] Loaded plugin: @. [01/04/2023, 15:53:18] Registering platform 'homebridge-config-ui-x.config' [01/04/2023, 15:53:18] --- [01/04/2023, 15:53:18] Disabled plugin: @. [01/04/2023, 15:53:18] --- [01/04/2023, 15:53:18] Disabled plugin: @. [01/04/2023, 15:53:18] --- [01/04/2023, 15:53:18] Loaded plugin: @. [01/04/2023, 15:53:18] Registering platform 'homebridge-smartthings-ik.HomeBridgeSmartThings' [01/04/2023, 15:53:18] --- [01/04/2023, 15:53:18] Loading 2 platforms... [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Initializing HomeBridgeSmartThings platform... [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Finished initializing platform: Smartthings Plug (IK) [01/04/2023, 15:53:18] Loading 2 accessories... [01/04/2023, 15:53:18] Ignoring config for the accessory "Jaguar Land Rover InControl" in your config.json as the plugin "homebridge-jlr-incontrol" has been disabled. [01/04/2023, 15:53:18] Ignoring config for the accessory "MagicOccupancy" in your config.json as the plugin "homebridge-magic-occupancy" has been disabled. [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Shed Motion Sensor [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Shed Contact Sensor [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Front Lounge Motion Sensor [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Front Garden Uplighter [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Front Door Contact Sensor [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Pergola light relay [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Fence Uplighters [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Side Passage Lights [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Garden Irrigation [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Hallway Lamp [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Landing Motion Sensor [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Bathroom towel rail [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Toilet Extractor Fan [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Downstairs WC [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Hallway Motion Sensor [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Boundary Siren [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Rear Sofit Lights [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Front Lounge Lamp [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Bifold Doors Contact Sensor [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Loft Eaves Fan [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: En-suite towel rail [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Master Bedroom Motion Sensor [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Shed outside light [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Kitchen Motion Sensor [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Loading accessory from cache: Front Door Light [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Executed didFinishLaunching callback [01/04/2023, 15:53:18] [Smartthings Plug (IK)] Discovering devices... Sat, 01 Apr 2023 14:53:18 GMT follow-redirects options { maxRedirects: 21, maxBodyLength: 10485760, protocol: 'https:', path: '/v1/devices', method: 'GET', headers: { Accept: 'application/json, text/plain, /', Authorization: 'Bearer: d5d7ebf5-8eca-4b14-8a9b-ea40ad52c782', 'User-Agent': 'axios/0.27.2' }, agent: undefined, agents: { http: undefined, https: undefined }, auth: undefined, hostname: 'api.smartthings.com', port: null, nativeProtocols: { 'http:': { _connectionListener: [Function: connectionListener], METHODS: [Array], STATUS_CODES: [Object], Agent: [Function], ClientRequest: [Function: ClientRequest], IncomingMessage: [Function: IncomingMessage], OutgoingMessage: [Function: OutgoingMessage], Server: [Function: Server], ServerResponse: [Function: ServerResponse], createServer: [Function: createServer], validateHeaderName: [Function: nodeinternal], validateHeaderValue: [Function: nodeinternal], get: [Function: get], request: [Function: request], maxHeaderSize: [Getter], globalAgent: [Getter/Setter] }, 'https:': { Agent: [Function: Agent], globalAgent: [Agent], Server: [Function: Server], createServer: [Function: createServer], get: [Function: get], request: [Function: request] } } } [01/04/2023, 15:53:18] Publishing bridge accessory (name: Homebridge 9AD8, publishInfo: { username: '0E:A5:61:46:9A:D8', port: 51749, pincode: '*-*-', category: 2, bind: [ 'Ethernet', [length]: 1 ], mdns: undefined, addIdentifyingMaterial: true, advertiser: undefined }). 2023-04-01T14:53:18.922Z HAP-NodeJS:Advertiser Preparing Advertiser for 'Homebridge 9AD8 8F31' using bonjour-hap backend! Setup Payload: X-HM://00249Q7Z1ILEG Enter this code with your HomeKit app on your iOS device to pair with Homebridge:

┌────────────┐
│ 483-66-557 │
└────────────┘

2023-04-01T14:53:18.929Z HAP-NodeJS:EventedHTTPServer Server listening on

2023-04-01T14:53:18.929Z HAP-NodeJS:Advertiser Starting to advertise 'Homebridge 9AD8 8F31' using bonjour-hap backend! [01/04/2023, 15:53:18] Homebridge v1.6.0 (HAP v0.11.0) (Homebridge 9AD8) is running on port 51749. [01/04/2023, 15:53:19] [Smartthings Plug (IK)] Error getting device name for Shed Motion Sensor: TypeError: device.label.toString(...).replaceAll is not a function [01/04/2023, 15:53:19] [Smartthings Plug (IK)] Error getting devices from Smartthings: TypeError: d.replaceAll is not a function [01/04/2023, 15:53:19] [Smartthings Plug (IK)] Could not load devices from Smartthings: undefined. Check your configuration 2023-04-01T14:53:19.884Z HAP-NodeJS:EventEmitter [fe80::4c9:1be2:45ea:3055%10] Registered event 'REQUEST' (total: 1) at EventedHTTPServer.onConnection (C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\src\lib\util\eventedhttp.ts:231:16) 2023-04-01T14:53:19.884Z HAP-NodeJS:EventEmitter [fe80::4c9:1be2:45ea:3055%10] Registered event 'AUTHENTICATED' (total: 1) at EventedHTTPServer.onConnection (C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\src\lib\util\eventedhttp.ts:234:16) 2023-04-01T14:53:19.884Z HAP-NodeJS:EventEmitter [fe80::4c9:1be2:45ea:3055%10] Registered event 'CLOSED' (total: 1) at EventedHTTPServer.onConnection (C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\src\lib\util\eventedhttp.ts:235:16) 2023-04-01T14:53:19.884Z HAP-NodeJS:EventedHTTPServer [fe80::4c9:1be2:45ea:3055%10] New connection from client on interface Ethernet (fe80::814f:d394:cba6:38ee%10) 2023-04-01T14:53:19.885Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] Internal HTTP server listening on 127.0.0.1:52576 2023-04-01T14:53:19.889Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] Internal HTTP socket connected. HAPConnection now fully set up! 2023-04-01T14:53:19.891Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] HTTP request: /pair-verify 2023-04-01T14:53:19.891Z HAP-NodeJS:HAPServer [0E:A5:61:46:9A:D8] HAP Request: POST /pair-verify 2023-04-01T14:53:19.891Z HAP-NodeJS:HAPServer [0E:A5:61:46:9A:D8] Pair verify step 1/2 2023-04-01T14:53:19.920Z HAP-NodeJS:EventEmitter [::ffff:10.0.0.12] Registered event 'REQUEST' (total: 1) at EventedHTTPServer.onConnection (C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\src\lib\util\eventedhttp.ts:231:16) 2023-04-01T14:53:19.920Z HAP-NodeJS:EventEmitter [::ffff:10.0.0.12] Registered event 'AUTHENTICATED' (total: 1) at EventedHTTPServer.onConnection (C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\src\lib\util\eventedhttp.ts:234:16) 2023-04-01T14:53:19.920Z HAP-NodeJS:EventEmitter [::ffff:10.0.0.12] Registered event 'CLOSED' (total: 1) at EventedHTTPServer.onConnection (C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\src\lib\util\eventedhttp.ts:235:16) 2023-04-01T14:53:19.920Z HAP-NodeJS:EventedHTTPServer [::ffff:10.0.0.12] New connection from client on interface Ethernet (::ffff:10.0.0.12) 2023-04-01T14:53:19.921Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] Internal HTTP server listening on 127.0.0.1:52579 2023-04-01T14:53:19.922Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] HTTP Response is finished 2023-04-01T14:53:19.922Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] Internal HTTP socket connected. HAPConnection now fully set up! 2023-04-01T14:53:19.923Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] HTTP request: /accessories 2023-04-01T14:53:19.923Z HAP-NodeJS:HAPServer [0E:A5:61:46:9A:D8] HAP Request: GET /accessories 2023-04-01T14:53:19.931Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] HTTP Response is finished 2023-04-01T14:53:19.932Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] HTTP connection was closed 2023-04-01T14:53:19.933Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] HTTP server was closed 2023-04-01T14:53:19.933Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] Client connection closed 2023-04-01T14:53:19.933Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] HTTP server was closed 2023-04-01T14:53:19.936Z HAP-NodeJS:EventEmitter [::ffff:10.0.0.12] Registered event 'REQUEST' (total: 1) at EventedHTTPServer.onConnection (C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\src\lib\util\eventedhttp.ts:231:16) 2023-04-01T14:53:19.936Z HAP-NodeJS:EventEmitter [::ffff:10.0.0.12] Registered event 'AUTHENTICATED' (total: 1) at EventedHTTPServer.onConnection (C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\src\lib\util\eventedhttp.ts:234:16) 2023-04-01T14:53:19.936Z HAP-NodeJS:EventEmitter [::ffff:10.0.0.12] Registered event 'CLOSED' (total: 1) at EventedHTTPServer.onConnection (C:\Users\Administrator\AppData\Roaming\npm\node_modules\homebridge\node_modules\hap-nodejs\src\lib\util\eventedhttp.ts:235:16) 2023-04-01T14:53:19.936Z HAP-NodeJS:EventedHTTPServer [::ffff:10.0.0.12] New connection from client on interface Ethernet (::ffff:10.0.0.12) 2023-04-01T14:53:19.937Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] Internal HTTP server listening on 127.0.0.1:52582 2023-04-01T14:53:19.937Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] Internal HTTP socket connected. HAPConnection now fully set up! 2023-04-01T14:53:19.938Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] HTTP request: /characteristics 2023-04-01T14:53:19.938Z HAP-NodeJS:HAPServer [0E:A5:61:46:9A:D8] HAP Request: PUT /characteristics 2023-04-01T14:53:19.938Z HAP-NodeJS:Accessory [Homebridge 9AD8 8F31] Processing characteristic set: {"characteristics":[{"aid":-1,"iid":-1}]} 2023-04-01T14:53:19.938Z HAP-NodeJS:Accessory [Homebridge 9AD8 8F31] Could not find a Characteristic with aid of -1 and iid of -1 2023-04-01T14:53:19.939Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] HTTP Response is finished 2023-04-01T14:53:19.939Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] HTTP connection was closed 2023-04-01T14:53:19.939Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] HTTP server was closed 2023-04-01T14:53:19.940Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] Client connection closed 2023-04-01T14:53:19.940Z HAP-NodeJS:EventedHTTPServer:Connection [::ffff:10.0.0.12] HTTP server was closed 2023-04-01T14:53:20.031Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] HTTP request: /pair-verify 2023-04-01T14:53:20.032Z HAP-NodeJS:HAPServer [0E:A5:61:46:9A:D8] HAP Request: POST /pair-verify 2023-04-01T14:53:20.033Z HAP-NodeJS:HAPServer [0E:A5:61:46:9A:D8] Pair verify step 2/2 2023-04-01T14:53:20.067Z HAP-NodeJS:HAPServer [0E:A5:61:46:9A:D8] Client C4C34FCA-4A0B-4077-92CE-6829C66AA0EB verification complete 2023-04-01T14:53:20.068Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] HTTP Response is finished 2023-04-01T14:53:20.076Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] HTTP request: /accessories 2023-04-01T14:53:20.076Z HAP-NodeJS:HAPServer [0E:A5:61:46:9A:D8] HAP Request: GET /accessories 2023-04-01T14:53:20.082Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] HTTP Response is finished 2023-04-01T14:53:20.114Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] HTTP request: /characteristics?id=1.7 2023-04-01T14:53:20.114Z HAP-NodeJS:HAPServer [0E:A5:61:46:9A:D8] HAP Request: GET /characteristics?id=1.7 2023-04-01T14:53:20.115Z HAP-NodeJS:Accessory [Homebridge 9AD8 8F31] Got Characteristic "Firmware Revision" value: "1.6.0" 2023-04-01T14:53:20.115Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] HTTP Response is finished 2023-04-01T14:53:42.471Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] HTTP request: /characteristics?id=1.7 2023-04-01T14:53:42.471Z HAP-NodeJS:HAPServer [0E:A5:61:46:9A:D8] HAP Request: GET /characteristics?id=1.7 2023-04-01T14:53:42.473Z HAP-NodeJS:Accessory [Homebridge 9AD8 8F31] Got Characteristic "Firmware Revision" value: "1.6.0" 2023-04-01T14:53:42.474Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] HTTP Response is finished 2023-04-01T14:54:18.944Z HAP-NodeJS:EventedHTTPServer Currently 1 hap connections open: fe80::4c9:1be2:45ea:3055%10:51900 2023-04-01T14:54:48.356Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] HTTP request: /characteristics?id=1.7 2023-04-01T14:54:48.357Z HAP-NodeJS:HAPServer [0E:A5:61:46:9A:D8] HAP Request: GET /characteristics?id=1.7 2023-04-01T14:54:48.357Z HAP-NodeJS:Accessory [Homebridge 9AD8 8F31] Got Characteristic "Firmware Revision" value: "1.6.0" 2023-04-01T14:54:48.357Z HAP-NodeJS:EventedHTTPServer:Connection [fe80::4c9:1be2:45ea:3055%10] HTTP Response is finished 2023-04-01T14:55:18.960Z HAP-NodeJS:EventedHTTPServer Currently 1 hap connections open: fe80::4c9:1be2:45ea:3055%10:51900

On Sat, 1 Apr 2023 at 15:15, iklein99 @.***> wrote:

Can you send me that part of the log?

On Apr 1, 2023, at 10:12 AM, Simon @.***> wrote:

Yeah it crashes… those two red error messages are the last in the log, and my devices aren’t updating status again.

On Sat, 1 Apr 2023 at 15:09, iklein99 @.***> wrote:

Are you saying it crashes? It should continue on even though the error occurred. You should see it as a warning now and the plugin will continue.

— Reply to this email directly, view it on GitHub < https://github.com/iklein99/homebridge-smartthings/issues/161#issuecomment-1492981841 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABYTNG7S5CYEZ3AXLT7CGOLW7AZLHANCNFSM6AAAAAAWONHS2Q

. You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/iklein99/homebridge-smartthings/issues/161#issuecomment-1492982610>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABG55EWB664K4CNC5BLGTATW7AZWVANCNFSM6AAAAAAWONHS2Q . You are receiving this because you commented.

— Reply to this email directly, view it on GitHub https://github.com/iklein99/homebridge-smartthings/issues/161#issuecomment-1492983081, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYTNG5X45PUTFQZW5A6XCTW7AZ6NANCNFSM6AAAAAAWONHS2Q . You are receiving this because you authored the thread.Message ID: @.***>

sipuncher commented 1 year ago

Found the real issue… String.replaceAll wasn’t supported in Node 14.8.1. I upgraded to the latest version and it’s fixed now.