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

Undefined properties #116

Open
harveyslash opened this issue Nov 19, 2023 · 1 comment
Open

Undefined properties #116

harveyslash opened this issue Nov 19, 2023 · 1 comment
Labels
question Further information is requested

Comments

@harveyslash
Copy link

Current Situation

Running node like this:

DEBUG=-express*,-send*,-body-parser*,* ./node-red-pi

My Flow for testing looks like this:

image

In the debug log I see:

hapNodeRed hbStatus received: "Porch light - Outlet" = {"characteristics":[{"aid":106,"iid":11,"status":-70410},{"aid":106,"iid":12,"status":-70410}]} +34ms
Which indicates to me that the connection between node red and Homebridge are working.

However, the statuses in the event are undefined:

image

I just recently moved to a new version of Homebridge & node red on a new raspberry pi. Earlier this used to work.

Logs

Welcome to Node-RED
===================

19 Nov 21:29:31 - [info] Node-RED version: v3.1.0
19 Nov 21:29:31 - [info] Node.js  version: v18.13.0
19 Nov 21:29:31 - [info] Linux 6.1.0-rpi4-rpi-v8 arm64 LE
19 Nov 21:29:33 - [info] Loading palette nodes
19 Nov 21:29:35 - [info] Settings file  : /home/harsh/.node-red/settings.js
19 Nov 21:29:35 - [info] Context store  : 'default' [module=memory]
19 Nov 21:29:35 - [info] User directory : /home/harsh/.node-red
19 Nov 21:29:35 - [warn] Projects disabled : editorTheme.projects.enabled=false
19 Nov 21:29:35 - [info] Flows file     : /home/harsh/.node-red/flows.json
19 Nov 21:29:35 - [warn]

---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.

You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------

19 Nov 21:29:35 - [warn] Encrypted credentials not found
19 Nov 21:29:35 - [info] Server now running at http://127.0.0.1:1880/
19 Nov 21:29:35 - [info] Starting flows
  hapNodeJSClient Registered/updated PIN for `default`: 647-97-685 +0ms
  hapNodeJSClient Starting Homebridge instance discovery +2ms
  hapNodeRed hbConf.register 59_1 - Stateless Programmable Switch +0ms
  hapNodeRed Register hb-event -> 59_1 - Stateless Programmable Switch +1ms
  hapNodeRed hbConf.register 59_1 - Stateless Programmable Switch +6ms
  hapNodeRed Register hb-event -> 59_1 - Stateless Programmable Switch +0ms
  hapNodeRed hbConf.register 48_1 - Stateless Programmable Switch +1ms
  hapNodeRed Register hb-event -> 48_1 - Stateless Programmable Switch +0ms
  hapNodeRed hbConf.register Tv lamp - Outlet +3ms
  hapNodeRed Register hb-control -> Tv lamp - Outlet +0ms
  hapNodeRed hbConf.register Porch light - Outlet +3ms
  hapNodeRed Register hb-status -> Porch light - Outlet +0ms
19 Nov 21:29:35 - [info] Started flows
  hapNodeJSClient HAP Device discovered Hubspace 8E6E [
  '192.168.1.252',
  'fd51:5e41:dd07:bdff:b770:7245:96f1:f4b5',
  'fdf0:444f:2560:4513:ce0e:1bf3:8c24:bb3b',
  'fe80::2986:531:8876:a52d'
] +54ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/accessories',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.252',
  port: '40626',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +5s
  hapNodeJSClient HAP Device discovered Homebridge A91A 8E83 [
  '192.168.1.252',
  'fd51:5e41:dd07:bdff:b770:7245:96f1:f4b5',
  'fdf0:444f:2560:4513:ce0e:1bf3:8c24:bb3b',
  'fe80::2986:531:8876:a52d'
] +49ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/accessories',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.252',
  port: '51974',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +33ms
  hapNodeJSClient HAP Device discovered Hubitat Cerebro [ '192.168.1.38' ] +44ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/accessories',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.38',
  port: '21063',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +43ms
19 Nov 21:29:35 - [error] [hb-status:Porch light] Homebridge not initialized
  hapNodeJSClient Homebridge instance discovered Homebridge A91A 8E83 @ http://192.168.1.252:51974 with 20 accessories +83ms
  hapNodeJSClient Homebridge instance discovered Hubitat Cerebro @ http://192.168.1.38:21063 with 3 accessories +15ms
  hapNodeJSClient HAP Device discovered Den TV [ '192.168.1.19', 'fe80::be01:e144:943d:c344' ] +6ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/accessories',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.19',
  port: '40271',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +104ms
  hapNodeJSClient HAP Device discovered HomePodSensor 610997 [
  'fe80::187a:7725:b915:b8ca',
  'fd51:5e41:dd07:bdff:846:d40d:60f7:3be6',
  '192.168.1.12',
  'fdf0:444f:2560:4513:2:fdd3:8a3:d413'
] +13ms
  hapNodeJSClient Invalid address found HomePodSensor 610997 fe80::187a:7725:b915:b8ca [
  'fe80::187a:7725:b915:b8ca',
  'fd51:5e41:dd07:bdff:846:d40d:60f7:3be6',
  '192.168.1.12',
  'fdf0:444f:2560:4513:2:fdd3:8a3:d413'
] +3ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/accessories',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.12',
  port: '61204',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +22ms
  hapNodeJSClient HAP Device discovered Thermostat AAFF (2) [
  '192.168.1.25',
  'fe80::9a11:d181:636c:3ef3',
  'fdf0:444f:2560:4513:56fe:5e7c:b1c8:c790'
] +27ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/accessories',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.25',
  port: '55594',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +21ms
  hapNodeJSClient HAP Device discovered Cherry's TV [
  '192.168.1.24',
  'fd51:5e41:dd07:bdff:c0d6:93c6:c627:f7c7',
  'fdf0:444f:2560:4513:b541:9cba:e05d:a756',
  'fe80::99a0:440c:1ac9:79a7',
  'fd51:5e41:dd07:bdff:5994:6a35:faef:70e9',
  'fdf0:444f:2560:4513:c0d6:93c6:c627:f7c7'
] +12ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/accessories',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.24',
  port: '41903',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +11ms
  hapNodeJSClient HAP Discover failed XBR-65X900H -> http://192.168.1.24:41903 invalid PIN or homebridge is not running in insecure mode with -I +16ms
  hapNodeJSClient HAP Discover failed XR-65A80K -> http://192.168.1.19:40271 invalid PIN or homebridge is not running in insecure mode with -I +6ms
  hapNodeJSClient Homebridge instance discovered Thermostat AAFF (2) @ http://192.168.1.25:55594 with 2 accessories +4ms
  hapNodeJSClient HAP Device discovered Homebridge A91A 8E83 (2) [
  '192.168.1.25',
  'fe80::9a11:d181:636c:3ef3',
  'fdf0:444f:2560:4513:56fe:5e7c:b1c8:c790'
] +2ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/accessories',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.25',
  port: '51373',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +28ms
  hapNodeJSClient HAP Device discovered TPLINK Smart Plug 8F63 [ '192.168.1.69', 'fe80::b2a7:b9ff:fe08:8f63' ] +10ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/accessories',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.69',
  port: '52435',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +10ms
  hapNodeJSClient HAP Discover failed HomePod -> http://192.168.1.12:61204 invalid PIN or homebridge is not running in insecure mode with -I +26ms
  hapNodeJSClient HAP Discover failed KP125 -> http://192.168.1.69:52435 invalid PIN or homebridge is not running in insecure mode with -I +2ms
  hapNodeJSClient Homebridge instance discovered Homebridge A91A 8E83 (2) @ http://192.168.1.25:51373 with 21 accessories +61ms
  hapNodeJSClient Homebridge instance discovered Hubspace 8E6E @ http://192.168.1.252:40626 with 3 accessories +290ms
19 Nov 21:29:40 - [error] [hb-status:Porch light] Homebridge not initialized
19 Nov 21:29:45 - [error] [hb-status:Porch light] Homebridge not initialized
19 Nov 21:29:50 - [error] [hb-status:Porch light] Homebridge not initialized
  hapNodeJSClient Ready +19s
  hapNodeRed Discovered 66 new evDevices +20s
WARNING: Duplicate device name 48_1 - Stateless Programmable Switch
WARNING: Duplicate device name 48_2 - Stateless Programmable Switch
WARNING: Duplicate device name 48_3 - Battery Service
WARNING: Duplicate device name 48_3 - Occupancy Sensor
WARNING: Duplicate device name 48_3 - Stateless Programmable Switch
WARNING: Duplicate device name 59_1 - Stateless Programmable Switch
WARNING: Duplicate device name 59_2 - Stateless Programmable Switch
WARNING: Duplicate device name 59_3 - Stateless Programmable Switch
WARNING: Duplicate device name 59_4 - Stateless Programmable Switch
WARNING: Duplicate device name Anyone - Occupancy Sensor
WARNING: Duplicate device name Basement stairwell light - Lightbulb
WARNING: Duplicate device name Ceiling lamp 2 - Lightbulb
WARNING: Duplicate device name Ceiling light - Lightbulb
WARNING: Duplicate device name Cherry - Occupancy Sensor
WARNING: Duplicate device name Den Bulb 1 - Lightbulb
WARNING: Duplicate device name Den Bulb 2 - Lightbulb
WARNING: Duplicate device name Den Bulb 3 - Lightbulb
WARNING: Duplicate device name Dining room vent - Fan
WARNING: Duplicate device name Ender Switch - Outlet
WARNING: Duplicate device name Harsh - Occupancy Sensor
WARNING: Duplicate device name Hubitat Safety Monitor - Security System
WARNING: Duplicate device name Living Room Vent - Fan
WARNING: Duplicate device name Porch light - Outlet
WARNING: Duplicate device name Side lamp - Lightbulb
WARNING: Duplicate device name Staircase lights - Outlet
WARNING: Duplicate device name Standing lamp - Lightbulb
WARNING: Duplicate device name Tv lamp - Outlet
WARNING: Duplicate device name Tv lamp - Outlet
WARNING: Duplicate device name Tv lamp - Outlet
ERROR: Parsing failed, duplicate uniqueID. 48_1 - Stateless Programmable Switch
ERROR: Parsing failed, duplicate uniqueID. 48_2 - Stateless Programmable Switch
ERROR: Parsing failed, duplicate uniqueID. 48_3 - Battery Service
ERROR: Parsing failed, duplicate uniqueID. 48_3 - Occupancy Sensor
ERROR: Parsing failed, duplicate uniqueID. 48_3 - Stateless Programmable Switch
ERROR: Parsing failed, duplicate uniqueID. 59_1 - Stateless Programmable Switch
ERROR: Parsing failed, duplicate uniqueID. 59_2 - Stateless Programmable Switch
ERROR: Parsing failed, duplicate uniqueID. 59_3 - Stateless Programmable Switch
ERROR: Parsing failed, duplicate uniqueID. 59_4 - Stateless Programmable Switch
ERROR: Parsing failed, duplicate uniqueID. Anyone - Occupancy Sensor
ERROR: Parsing failed, duplicate uniqueID. Basement stairwell light - Lightbulb
ERROR: Parsing failed, duplicate uniqueID. Ceiling lamp 2 - Lightbulb
ERROR: Parsing failed, duplicate uniqueID. Ceiling light - Lightbulb
ERROR: Parsing failed, duplicate uniqueID. Cherry - Occupancy Sensor
ERROR: Parsing failed, duplicate uniqueID. Den Bulb 1 - Lightbulb
ERROR: Parsing failed, duplicate uniqueID. Den Bulb 2 - Lightbulb
ERROR: Parsing failed, duplicate uniqueID. Den Bulb 3 - Lightbulb
ERROR: Parsing failed, duplicate uniqueID. Dining room vent - Fan
ERROR: Parsing failed, duplicate uniqueID. Ender Switch - Outlet
ERROR: Parsing failed, duplicate uniqueID. Harsh - Occupancy Sensor
ERROR: Parsing failed, duplicate uniqueID. Hubitat Safety Monitor - Security System
ERROR: Parsing failed, duplicate uniqueID. Living Room Vent - Fan
ERROR: Parsing failed, duplicate uniqueID. Porch light - Outlet
ERROR: Parsing failed, duplicate uniqueID. Side lamp - Lightbulb
ERROR: Parsing failed, duplicate uniqueID. Staircase lights - Outlet
ERROR: Parsing failed, duplicate uniqueID. Standing lamp - Lightbulb
ERROR: Parsing failed, duplicate uniqueID. Tv lamp - Outlet
ERROR: Parsing failed, duplicate uniqueID. Tv lamp - Outlet
ERROR: Parsing failed, duplicate uniqueID. Tv lamp - Outlet
  hapNodeRed Discovered 39 new ctDevices +14ms
  hapNodeRed _register homebridge0F:F0:76:98:A9:1DHubitat-v259_100000089 +6ms
  hapNodeRed _register 59_1 - Stateless Programmable Switch 0F:F0:76:98:A9:1D { characteristics: [ { aid: 113, iid: 11, ev: true } ] } +3ms
  hapNodeRed hb-event registered: 59_1 - Stateless Programmable Switch -> 0F:F0:76:98:A9:1D {"characteristics":[{"aid":113,"iid":11,"status":-70410}]} +28ms
  hapNodeRed hbEvent.register 59_1 - Stateless Programmable Switch +2ms
  hapNodeRed _status request: 59_1 - Stateless Programmable Switch -> 0F:F0:76:98:A9:1D:?id=113.11 -> +5ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/characteristics?id=113.11',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.25',
  port: '51373',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +20s
  hapNodeRed _register homebridge0F:F0:76:98:A9:1DHubitat-v259_100000089 +17ms
  hapNodeRed _register 59_1 - Stateless Programmable Switch 0F:F0:76:98:A9:1D { characteristics: [ { aid: 113, iid: 11, ev: true } ] } +3ms
  hapNodeRed hb-event registered: 59_1 - Stateless Programmable Switch -> 0F:F0:76:98:A9:1D {"characteristics":[{"aid":113,"iid":11,"status":-70410}]} +17ms
  hapNodeRed hbEvent.register 59_1 - Stateless Programmable Switch +0ms
  hapNodeRed _status request: 59_1 - Stateless Programmable Switch -> 0F:F0:76:98:A9:1D:?id=113.11 -> +5ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/characteristics?id=113.11',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.25',
  port: '51373',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +41ms
  hapNodeRed hbEvent received: 59_1 - Stateless Programmable Switch = [{"aid":113,"iid":11,"status":-70410}] { ProgrammableSwitchEvent: undefined } +22ms
  hapNodeRed _register homebridge0F:F0:76:98:A9:1DHubitat-v248_100000089 +1ms
  hapNodeRed _register 48_1 - Stateless Programmable Switch 0F:F0:76:98:A9:1D { characteristics: [ { aid: 109, iid: 11, ev: true } ] } +3ms
  hapNodeRed _status request: Porch light - Outlet -> 0F:F0:76:98:A9:1D:?id=106.11,106.12 -> +7ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/characteristics?id=106.11,106.12',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.25',
  port: '51373',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +31ms
  hapNodeRed hbEvent received: 59_1 - Stateless Programmable Switch = [{"aid":113,"iid":11,"status":-70410}] { ProgrammableSwitchEvent: undefined } +11ms
  hapNodeRed hb-event registered: 48_1 - Stateless Programmable Switch -> 0F:F0:76:98:A9:1D {"characteristics":[{"aid":109,"iid":11,"status":-70410}]} +1ms
  hapNodeRed hbEvent.register 48_1 - Stateless Programmable Switch +1ms
  hapNodeRed _status request: 48_1 - Stateless Programmable Switch -> 0F:F0:76:98:A9:1D:?id=109.11 -> +3ms
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/characteristics?id=109.11',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.25',
  port: '51373',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +15ms
  hapNodeRed _register homebridge0F:F0:76:98:A9:1DTP-LinkTv lamp00000047 +11ms
  hapNodeRed _register homebridge0F:F0:76:98:A9:1DTP-LinkPorch light00000047 +3ms
  hapNodeRed hbStatus Registered: Porch light - Outlet +3ms
  hapNodeRed hbStatus received: "Porch light - Outlet" = {"characteristics":[{"aid":106,"iid":11,"status":-70410},{"aid":106,"iid":12,"status":-70410}]} +11ms
  hapNodeRed hbEvent received: 48_1 - Stateless Programmable Switch = [{"aid":109,"iid":11,"status":-70410}] { ProgrammableSwitchEvent: undefined } +10ms
  hapNodeRed _status request: Porch light - Outlet -> 0F:F0:76:98:A9:1D:?id=106.11,106.12 -> +5s
  follow-redirects options {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/characteristics?id=106.11,106.12',
  method: 'GET',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'Application/json',
    authorization: '647-97-685',
    connection: 'keep-alive',
    'User-Agent': 'axios/1.6.2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: '192.168.1.25',
  port: '51373',
  agent: undefined,
  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: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: [Agent],
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  }
} +5s
  hapNodeRed hbStatus received: "Porch light - Outlet" = {"characteristics":[{"aid":106,"iid":11,"status":-70410},{"aid":106,"iid":12,"status":-70410}]} +41ms

Configuration

N/A

Environment

  • OS: Raspbian
  • Software:
  • Node: v18.13.0
  • npm: 9.2.0

Process Supervisor

other (Explain in Additional Context)

Additional Context

Running locally right now like this:

DEBUG=-express*,-send*,-body-parser*,* ./node-red-pi

@harveyslash harveyslash added the question Further information is requested label Nov 19, 2023
@NorthernMan54
Copy link
Owner

Your issue is this message {"characteristics":[{"aid":106,"iid":11,"status":-70410},{"aid":106,"iid":12,"status":-70410}]} which indicates that the plumbing exists, but home bridge is giving an error.

Error -70410 is https://github.com/homebridge/HAP-NodeJS/blob/5af0b4c088620c7a0cd0b76523f0d6d87489b191/src/lib/HAPServer.ts#L96

When you moved things over, did you select the item in the UI again ? I find that once in a while after a change you need to reselect the item in the UI as the internal mapping was lost.

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

No branches or pull requests

2 participants