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

[Bug]: TypeError: Cannot read properties of undefined (reading 'log') #524

Closed
liudger opened this issue Mar 12, 2024 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@liudger
Copy link

liudger commented Mar 12, 2024

What happened?

Updating to the latest hksv 2.3.11 version. The camera Doorbell 2k wired stopped working.
Tried clean install and everything in the wiki.
2.3.10 is working

Device Type

Doorbell (Supported)

Plugin Version

beta (Best Effort)

HomeBridge Version

v1.6.x (Supported)

NodeJS Version

v18 (Supported)

Operating System

Ubuntu 18.04+ (Supported)

Relevant log output

[3/12/2024, 12:25:24 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[3/12/2024, 12:25:29 PM] [HB Supervisor] Restarting Homebridge...
[3/12/2024, 12:25:29 PM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[3/12/2024, 12:25:29 PM] [HB Supervisor] Started Homebridge v1.7.0 with PID: 1317557
[3/12/2024, 12:25:30 PM] Loaded config.json with 0 accessories and 2 platforms.
[3/12/2024, 12:25:30 PM] Loaded 1 cached accessories from cachedAccessories.
[3/12/2024, 12:25:30 PM] ---
[3/12/2024, 12:25:31 PM] Loaded plugin: [email protected]
[3/12/2024, 12:25:31 PM] Registering platform 'homebridge-eufy-security.EufySecurity'
[3/12/2024, 12:25:31 PM] ---
[3/12/2024, 12:25:31 PM] Loading 2 platforms...
[3/12/2024, 12:25:31 PM] [EufySecurity] Initializing EufySecurity platform...
[03/12/2024 12:25:31]   [EufySecurity-2.3.11]   WARN    [platform.ts:257]       warning: planned changes, see https://github.com/homebridge-eufy-security/plugin/issues/1
[03/12/2024 12:25:31]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:259]       plugin data store: /var/lib/homebridge/eufysecurity
[03/12/2024 12:25:31]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:260]       OS is generic
[03/12/2024 12:25:31]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:261]       Using bropats @homebridge-eufy-security/eufy-security-client library in version 3.0.0
[03/12/2024 12:25:31]   [EufySecurity-2.3.11]   INFO    [platform.ts:264]       ffmpegPath set: /homebridge/node_modules/homebridge-eufy-security/node_modules/ffmpeg-for-homebridge/ffmpeg
[03/12/2024 12:25:31]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:268]       The config is: {
  enableDetailedLogging: true,
  CameraMaxLivestreamDuration: 50,
  pollingIntervalMinutes: 10,
  hkHome: 1,
  hkAway: 0,
  hkNight: 3,
  hkOff: 63,
  ignoreStations: '[***]',
  ignoreDevices: '[***]',
  country: 'NL',
  cameras: [
    {
      serialNumber: '[***]',
      rtsp: false,
      enableCamera: true,
      videoConfig: {
        audio: true,
        audioSampleRate: 0
      },
      talkback: true,
      snapshotHandlingMethod: 2,
      enable: true,
      motion: true,
      indoorchime: true
    }
  ],
  cleanCache: true,
  unbridge: true,
  ignoreMultipleDevicesWarning: true,
  syncStationModes: true,
  username: '[***]',
  password: '[***]',
  deviceName: 'Voordeur',
  hsv: true,
  platform: 'EufySecurity'
}
[03/12/2024 12:25:31]   [EufySecurity-2.3.11]   INFO    [platform.ts:289]       Country set: NL
[03/12/2024 12:25:31]   [EufySecurity-2.3.11]   INFO    [platform.ts:313]       Finished initializing!
[03/12/2024 12:25:31]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:591]       Loading accessory from cache: Voordeur
Setup Payload:
  
[3/12/2024, 12:25:31 PM] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 514E) is running on port 51974.
[03/12/2024 12:25:31]   [EufySecurity-2.3.11]   DEBUG   [ffmpeg-codecs.ts:105]  Using FFmpeg version: 6.0-homebridge-alpine-aarch64-static
[03/12/2024 12:25:33]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:387]       EufyClient connected true
[03/12/2024 12:25:33]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:411]       CameraMaxLivestreamDuration: 50
[03/12/2024 12:25:34]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:339]       Connected!
[03/12/2024 12:25:35]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:333]       Push Connected!
[03/12/2024 12:25:38]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:509]       Voordeur pre-caching complete
[03/12/2024 12:25:38]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:625]       Voordeur UUID:
[03/12/2024 12:25:38]   [EufySecurity-2.3.11]   WARN    [platform.ts:641]       Voordeur looks station but it's not could imply some errors! Type: 5
[03/12/2024 12:25:38]   [EufySecurity-2.3.11]   INFO    [platform.ts:448]       Updating existing accessory: Voordeur
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:534]       Voordeur pre-caching complete
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:654]       Voordeur UUID:
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [platform.ts:673]       Voordeur isCamera!
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:150]  Voordeur REGISTER CHARACTERISTIC AccessoryInformation / Manufacturer
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:156]  Voordeur REGISTER CHARACTERISTIC (0000003E-0000-1000-8000-0026BB765291) / (00000020-0000-1000-8000-0026BB765291)
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:150]  Voordeur REGISTER CHARACTERISTIC AccessoryInformation / Name
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:156]  Voordeur REGISTER CHARACTERISTIC (0000003E-0000-1000-8000-0026BB765291) / (00000023-0000-1000-8000-0026BB765291)
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:150]  Voordeur REGISTER CHARACTERISTIC AccessoryInformation / Model
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:156]  Voordeur REGISTER CHARACTERISTIC (0000003E-0000-1000-8000-0026BB765291) / (00000021-0000-1000-8000-0026BB765291)
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:150]  Voordeur REGISTER CHARACTERISTIC AccessoryInformation / SerialNumber
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:156]  Voordeur REGISTER CHARACTERISTIC (0000003E-0000-1000-8000-0026BB765291) / (00000030-0000-1000-8000-0026BB765291)
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:150]  Voordeur REGISTER CHARACTERISTIC AccessoryInformation / FirmwareRevision
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:156]  Voordeur REGISTER CHARACTERISTIC (0000003E-0000-1000-8000-0026BB765291) / (00000052-0000-1000-8000-0026BB765291)
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:150]  Voordeur REGISTER CHARACTERISTIC AccessoryInformation / HardwareRevision
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:156]  Voordeur REGISTER CHARACTERISTIC (0000003E-0000-1000-8000-0026BB765291) / (00000053-0000-1000-8000-0026BB765291)
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:100]  Voordeur Property Keys: {
  motionDetected: false,
  personDetected: false,
  personName: '',
  ringing: false,
  name: 'Voordeur',
  model: 'T8200',
  serialNumber: '[***]',
  type: 5,
  hardwareVersion: 'P2',
  softwareVersion: '2.354',
  stationSerialNumber: '[***]',
  enabled: true,
  picture: {
    data: '[***]',
    type: {
      ext: 'jpg',
      mime: 'image/jpeg'
    }
  },
  snoozeTime: 0,
  snoozeStartTime: 1645185390,
  videoDistortionCorrection: false,
  motionDetection: true,
  videoRingRecord: 1,
  ringtoneVolume: 95,
  chimeIndoor: true,
  statusLed: true,
  videoRecordingQuality: 3,
  autoNightvision: true,
  notificationRing: true,
  notificationMotion: true,
  videoStreamingQuality: 0,
  speakerVolume: 102,
  watermark: 0,
  videoHdr: true,
  snooze: false,
  motionDetectionSensitivity: 4,
  audioRecording: true,
  notificationType: 3
}
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:126]        Voordeur Constructed Camera
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:350]        Voordeur config is {
  name: 'Voordeur',
  manufacturer: '',
  model: '',
  serialNumber: '[***]',
  firmwareRevision: '',
  enableButton: true,
  motionButton: true,
  lightButton: true,
  talkback: true,
  talkbackChannels: 1,
  hsv: true,
  hsvRecordingDuration: 90,
  rtsp: false,
  enableCamera: true,
  forcerefreshsnap: false,
  refreshSnapshotIntervalMinutes: 0,
  snapshotHandlingMethod: 2,
  immediateRingNotificationWithoutSnapshot: false,
  delayCameraSnapshot: false,
  indoorChimeButton: false,
  videoConfig: {
    audio: true,
    audioSampleRate: 0,
    debug: false
  },
  enable: true,
  motion: true,
  indoorchime: true
}
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:131]        Voordeur has a camera
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:150]  Voordeur REGISTER CHARACTERISTIC MotionSensor / MotionDetected
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:156]  Voordeur REGISTER CHARACTERISTIC (00000085-0000-1000-8000-0026BB765291) / (00000022-0000-1000-8000-0026BB765291)
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:197]  Voordeur ON 'MotionSensor / MotionDetected'
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:150]  Voordeur REGISTER CHARACTERISTIC Doorbell / ProgrammableSwitchEvent
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:156]  Voordeur REGISTER CHARACTERISTIC (00000121-0000-1000-8000-0026BB765291) / (00000073-0000-1000-8000-0026BB765291)
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:197]  Voordeur ON 'Doorbell / ProgrammableSwitchEvent'
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:603]        Voordeur StreamingDelegate
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   ERROR   [CameraAccessory.ts:160]        Voordeur while happending Delegate TypeError: Cannot read properties of undefined (reading 'log')
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:255]        Voordeur IndoorChime config: false
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:262]        Voordeur Looks like not compatible with chimeIndoor or this has been disabled within configuration
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:255]        Voordeur Enabled config: true
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:258]        Voordeur has a enabled, so append switchEnabled characteristic to it.
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:150]  Voordeur REGISTER CHARACTERISTIC Switch / On
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:156]  Voordeur REGISTER CHARACTERISTIC (00000049-0000-1000-8000-0026BB765291) / (00000025-0000-1000-8000-0026BB765291)
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:255]        Voordeur Motion config: true
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:258]        Voordeur has a motionDetection, so append switchMotion characteristic to it.
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:150]  Voordeur REGISTER CHARACTERISTIC Switch / On
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:156]  Voordeur REGISTER CHARACTERISTIC (00000049-0000-1000-8000-0026BB765291) / (00000025-0000-1000-8000-0026BB765291)
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:255]        Voordeur Light config: true
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:262]        Voordeur Looks like not compatible with light or this has been disabled within configuration
[03/12/2024 12:25:41]   [EufySecurity-2.3.11]   INFO    [platform.ts:463]       Publishing unbridged accessory externally: Voordeur
[3/12/2024, 12:25:41 PM] Voordeur 60BA is running on port 35995.
[3/12/2024, 12:25:41 PM] Please add [Voordeur 60BA] manually in Home app. 
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / Manufacturer': Eufy
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / Model': DOORBELL
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / Name': Voordeur
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / SerialNumber':
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / HardwareRevision': P2
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'MotionSensor / MotionDetected': false
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:516]        Voordeur GET 'On' enabled: true
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'Switch / On': true
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [CameraAccessory.ts:516]        Voordeur GET 'On' motionDetection: true
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'Switch / On': true
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:25:42]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:26:18]   [EufySecurity-2.3.11]   INFO    [platform.ts:599]       Looking for old cached accessories that seem to be outdated...
[03/12/2024 12:26:18]   [EufySecurity-2.3.11]   INFO    [platform.ts:615]       No outdated cached accessories found.
[03/12/2024 12:26:45]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354
[03/12/2024 12:27:45]   [EufySecurity-2.3.11]   DEBUG   [BaseAccessory.ts:161]  Voordeur GET 'AccessoryInformation / FirmwareRevision': 2.354

config

{
    "enableDetailedLogging": true,
    "CameraMaxLivestreamDuration": 50,
    "pollingIntervalMinutes": 10,
    "hkHome": 1,
    "hkAway": 0,
    "hkNight": 3,
    "hkOff": 63,
    "ignoreStations": [],
    "ignoreDevices": [],
    "country": "NL",
    "cameras": [
        {
            "serialNumber": "",
            "rtsp": false,
            "enableCamera": true,
            "videoConfig": {
                "audio": true,
                "audioSampleRate": 0
            },
            "talkback": true,
            "snapshotHandlingMethod": 2,
            "enable": true,
            "motion": true,
            "indoorchime": true
        }
    ],
    "cleanCache": true,
    "unbridge": true,
    "ignoreMultipleDevicesWarning": true,
    "syncStationModes": false,
    "username": "",
    "password": "",
    "deviceName": "Voordeur",
    "hsv": true,
    "platform": "EufySecurity"
}
@liudger liudger added the bug Something isn't working label Mar 12, 2024
Copy link

Did you check this Common Issues pages ?

@BorisKofman
Copy link

same for me E330 cam

@lenoxys
Copy link
Contributor

lenoxys commented Mar 14, 2024

hello streaming is broken, the new patches was to check if new devices were bringing up, stay tune!

@liudger
Copy link
Author

liudger commented Mar 20, 2024

Thanks it works in release v2.3.14

@liudger liudger closed this as completed Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants