Closed kongo09 closed 1 year ago
same here, also stuck in 'preparing'.
Same issue here. On 2 identical camera models (Eufycam 2 Pro) one works and the other one is stuck on PREPARING, using P2P (because I want to store my videos on the HomeBase).
can you try to disable RTSP security?
@fuatakgun how exactly?
Do you mean removing the password?
why don't you just try? Don't you think it is much more faster and less time consuming...
I've disabled it as you suggested. I then had to restart the add-on and remove the integration, reboot HA and then re-add the integration for the new RTSP link to be picked up (without the username and password now).
When the camera is enabled, it streams, even though the integration shows the status IDLE. When I click the button to enable RTSP, the status again moves to PREPARING and is stuck there. For the cam itself, this doesn't seem to make any difference.
Add-on log:
2023-01-09 18:59:13.065 INFO Eufy Security server listening on host 0.0.0.0, port 3000
2023-01-09 18:59:23.254 INFO Connected to station T8410P312209519C on host 31.19.69.146 and port 17065
2023-01-09 18:59:23.329 INFO Push notification connection successfully established
2023-01-09 19:06:21.329 INFO Client disconnected with ip: 172.30.32.1 port: 46364 code: 1000 reason: Normal Closure
HA log:
2023-01-09 20:06:21.288 DEBUG (MainThread) [custom_components.eufy_security.config_flow] eufy_security async_step_user - {'host': '127.0.0.1', 'port': 3000} - {'_errors': {}, 'init_step': 'user', 'hass': <homeassistant.core.HomeAssistant object at 0x7f83077dc0>, 'handler': 'eufy_security', 'flow_id': '4894485c7e255c7167e6a158b91084e3', 'context': {'source': 'user', 'show_advanced_options': True}, 'init_data': None, 'cur_step': {'type': <FlowResultType.FORM: 'form'>, 'flow_id': '4894485c7e255c7167e6a158b91084e3', 'handler': 'eufy_security', 'step_id': 'user', 'data_schema': <Schema({'host': <class 'str'>, 'port': <class 'int'>}, extra=PREVENT_EXTRA, required=False) object at 0x7f541f7610>, 'errors': {}, 'description_placeholders': None, 'last_step': None}}
2023-01-09 20:06:21.307 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] on_open - executed
2023-01-09 20:06:21.310 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] on_close - executed
2023-01-09 20:06:21.340 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] on_open - executed
2023-01-09 20:06:21.341 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'set_api_schema', 'schemaVersion': 15, 'messageId': 'set_api_schema.6e9976d606a94dc9843b632f836af11f'}
2023-01-09 20:06:21.343 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'version', 'driverVersion': '2.4.0', 'serverVersion': '1.3.0', 'minSchemaVersion': 0, 'maxSchemaVersion': 16}
2023-01-09 20:06:21.349 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'set_api_schema.6e9976d606a94dc9843b632f836af11f', 'result': {}}
2023-01-09 20:06:21.349 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _start_listening 1
2023-01-09 20:06:21.349 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'start_listening', 'messageId': 'start_listening.dcc59174e2bf4c55b7f26a36be9d31dc'}
2023-01-09 20:06:21.360 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'start_listening.dcc59174e2bf4c55b7f26a36be9d31dc', 'result': {'state': {'driver': {'version': '2.4.0', 'connected': True, 'pushConnected': True, 'mqttConnected': False}, 'stations': ['T8410P312209519C'], 'devices': ['T8410P312209519C']}}}
2023-01-09 20:06:21.361 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'device.get_properties', 'serialNumber': 'T8410P312209519C', 'messageId': 'device.get_properties.3a865bc51b4f4aea8a854aed0d15b5f8'}
2023-01-09 20:06:21.372 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.get_properties.3a865bc51b4f4aea8a854aed0d15b5f8', 'result': {'serialNumber': 'T8410P312209519C', 'properties': {'name': 'Wohnzimmer', 'model': 'T8410', 'serialNumber': 'T8410P312209519C', 'hardwareVersion': 'P3', 'softwareVersion': '2.1.5.1', 'type': 31, 'stationSerialNumber': 'T8410P312209519C', 'enabled': True, 'autoNightvision': True, 'statusLed': False, 'motionDetection': False, 'motionDetectionType': 1, 'motionDetectionSensitivity': 3, 'motionDetected': False, 'motionTracking': False, 'personDetected': False, 'personName': '', 'rtspStream': True, 'rtspStreamUrl': 'rtsp://192.168.179.12/live0', 'watermark': 0, 'pictureUrl': 'T8410P312209519C~/media/mmcblk0p1/Camera00/20230107224158n.jpg', 'petDetection': False, 'petDetected': False, 'soundDetection': False, 'soundDetectionType': 1, 'soundDetectionSensitivity': 3, 'soundDetected': False, 'cryingDetected': False, 'microphone': True, 'speaker': True, 'speakerVolume': 100, 'audioRecording': True, 'videoStreamingQuality': 3, 'videoRecordingQuality': 3, 'notificationType': 3, 'rotationSpeed': 3, 'imageMirrored': False, 'notificationPerson': True, 'notificationPet': False, 'notificationAllOtherMotion': True, 'notificationCrying': False, 'notificationAllSound': False, 'continuousRecording': True, 'continuousRecordingType': 0, 'videoTypeStoreToNAS': 1, 'snoozeTime': 0, 'snoozeStartTime': 0}}}
2023-01-09 20:06:21.373 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'device.get_properties_metadata', 'serialNumber': 'T8410P312209519C', 'messageId': 'device.get_properties_metadata.bac6e9de6e3a4758a9ffb81461a43340'}
2023-01-09 20:06:21.380 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.get_properties_metadata.bac6e9de6e3a4758a9ffb81461a43340', 'result': {'serialNumber': 'T8410P312209519C', 'properties': {'name': {'key': 'device_name', 'name': 'name', 'label': 'Name', 'readable': True, 'writeable': False, 'type': 'string'}, 'model': {'key': 'device_model', 'name': 'model', 'label': 'Model', 'readable': True, 'writeable': False, 'type': 'string'}, 'serialNumber': {'key': 'device_sn', 'name': 'serialNumber', 'label': 'Serial number', 'readable': True, 'writeable': False, 'type': 'string'}, 'type': {'key': 'device_type', 'name': 'type', 'label': 'Type', 'readable': True, 'writeable': False, 'type': 'number', 'states': {'0': 'Station', '1': 'Camera', '2': 'Sensor', '3': 'Floodlight', '4': 'Camera E', '5': 'Doorbell', '7': 'Battery Doorbell', '8': 'Camera 2', '9': 'Camera 2c', '10': 'Motion Sensor', '11': 'Keypad', '14': 'Camera 2 Pro', '15': 'Camera 2c Pro', '16': 'Battery Doorbell 2', '30': 'Indoor Camera', '31': 'Indoor Camera PT', '32': 'Solo Camera', '33': 'Solo Camera Pro', '34': 'Indoor Camera 1080', '35': 'Indoor Camera PT 1080', '37': 'Floodlight 8422', '38': 'Floodlight 8423', '39': 'Floodlight 2', '44': 'Outdoor Camera 1080P No Light', '45': 'Outdoor Camera 2k', '46': 'Outdoor Camera 1080P', '50': 'Lock Basic', '51': 'Lock Advanced', '52': 'Lock Basic No Finger', '53': 'Lock Basic Advanced No Finger', '54': 'Lock 8503', '55': 'Lock 8530', '56': 'Lock 85A3', '57': 'Lock 8592', '58': 'Lock 8504', '60': 'Solo Camera Spotlight 1080p', '61': 'Solo Camera Spotlight 2k', '62': 'Solo Camera Spotlight Solar', '90': 'SmartDrop, Smart Delivery Box', '91': 'Video Doorbell Dual', '93': 'Video Doorbell Dual (Wired)'}}, 'hardwareVersion': {'key': 'main_hw_version', 'name': 'hardwareVersion', 'label': 'Hardware version', 'readable': True, 'writeable': False, 'type': 'string'}, 'softwareVersion': {'key': 'main_sw_version', 'name': 'softwareVersion', 'label': 'Software version', 'readable': True, 'writeable': False, 'type': 'string'}, 'stationSerialNumber': {'key': 'station_sn', 'name': 'stationSerialNumber', 'label': 'Station serial number', 'readable': True, 'writeable': False, 'type': 'string'}, 'enabled': {'key': 2001, 'name': 'enabled', 'label': 'Camera enabled', 'readable': True, 'writeable': True, 'type': 'boolean', 'commandId': 1035}, 'autoNightvision': {'key': 1013, 'name': 'autoNightvision', 'label': 'Auto Nightvision', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'motionDetection': {'key': 6040, 'name': 'motionDetection', 'label': 'Motion Detection', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'soundDetection': {'key': 6043, 'name': 'soundDetection', 'label': 'Sound Detection', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'petDetection': {'key': 6047, 'name': 'petDetection', 'label': 'Pet Detection', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'rtspStream': {'key': 1145, 'name': 'rtspStream', 'label': 'RTSP Stream', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'rtspStreamUrl': {'key': 'custom_rtspStreamUrl', 'name': 'rtspStreamUrl', 'label': 'RTSP Stream URL', 'readable': True, 'writeable': False, 'type': 'string', 'default': ''}, 'watermark': {'key': 1214, 'name': 'watermark', 'label': 'Watermark', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'0': 'Timestamp', '1': 'Timestamp and Logo', '2': 'Off'}}, 'motionDetected': {'key': 'custom_motionDetected', 'name': 'motionDetected', 'label': 'Motion detected', 'readable': True, 'writeable': False, 'type': 'boolean', 'default': False}, 'personDetected': {'key': 'custom_personDetected', 'name': 'personDetected', 'label': 'Person detected', 'readable': True, 'writeable': False, 'type': 'boolean', 'default': False}, 'petDetected': {'key': 'custom_petDetected', 'name': 'petDetected', 'label': 'Pet detected', 'readable': True, 'writeable': False, 'type': 'boolean', 'default': False}, 'soundDetected': {'key': 'custom_soundDetected', 'name': 'soundDetected', 'label': 'Sound detected', 'readable': True, 'writeable': False, 'type': 'boolean', 'default': False}, 'soundDetectionType': {'key': 6046, 'name': 'soundDetectionType', 'label': 'Sound Detection Type', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'1': 'Crying', '2': 'All Sounds'}}, 'soundDetectionSensitivity': {'key': 6044, 'name': 'soundDetectionSensitivity', 'label': 'Sound Detection Sensitivity', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'1': 'Min', '2': 'Low', '3': 'Medium', '4': 'High', '5': 'Max'}}, 'cryingDetected': {'key': 'custom_cryingDetected', 'name': 'cryingDetected', 'label': 'Crying detected', 'readable': True, 'writeable': False, 'type': 'boolean', 'default': False}, 'statusLed': {'key': 6014, 'name': 'statusLed', 'label': 'Status LED', 'readable': True, 'writeable': True, 'type': 'boolean', 'commandId': 6014}, 'pictureUrl': {'key': 'cover_path', 'name': 'pictureUrl', 'label': 'Last Camera Picture URL', 'readable': True, 'writeable': False, 'type': 'string'}, 'motionDetectionSensitivity': {'key': 6041, 'name': 'motionDetectionSensitivity', 'label': 'Motion Detection Sensitivity', 'readable': True, 'writeable': True, 'type': 'number', 'min': 1, 'max': 5}, 'microphone': {'key': 1240, 'name': 'microphone', 'label': 'Microphone', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'speaker': {'key': 1241, 'name': 'speaker', 'label': 'Speaker', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'speakerVolume': {'key': 1230, 'name': 'speakerVolume', 'label': 'Speaker Volume', 'readable': True, 'writeable': True, 'type': 'number', 'min': 0, 'max': 100}, 'audioRecording': {'key': 6012, 'name': 'audioRecording', 'label': 'Audio Recording', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'motionDetectionType': {'key': 6045, 'name': 'motionDetectionType', 'label': 'Motion Detection Type', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'1': 'Person', '2': 'Pet', '3': 'Person and Pet', '4': 'All other motions', '5': 'Person and all other motions', '6': 'Pet and all other motions', '7': 'Person, Pet and all other motions'}}, 'motionTracking': {'key': 6016, 'name': 'motionTracking', 'label': 'Motion Tracking', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'videoStreamingQuality': {'key': 2031, 'name': 'videoStreamingQuality', 'label': 'Video Streaming Quality', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'0': 'Auto', '1': 'Low', '2': 'Medium', '3': 'High'}, 'commandId': 1020}, 'videoRecordingQuality': {'key': 2034, 'name': 'videoRecordingQuality', 'label': 'Video Recording Quality', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'2': 'Full HD (1080P)', '3': '2K HD'}, 'commandId': 1023}, 'notificationType': {'key': 6020, 'name': 'notificationType', 'label': 'Notification Type', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'1': 'Most Efficient', '2': 'Include Thumbnail', '3': 'Full Effect'}, 'commandId': 6020}, 'rotationSpeed': {'key': 6015, 'name': 'rotationSpeed', 'label': 'Rotation Speed', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'1': 'Min', '2': 'Low', '3': 'Medium', '4': 'High', '5': 'Max'}, 'default': 3}, 'notificationPerson': {'key': 6022, 'name': 'notificationPerson', 'label': 'Notification Person detected', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'notificationPet': {'key': 6026, 'name': 'notificationPet', 'label': 'Notification Pet detected', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'notificationAllOtherMotion': {'key': 6023, 'name': 'notificationAllOtherMotion', 'label': 'Notification All Other Motion', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'notificationAllSound': {'key': 6025, 'name': 'notificationAllSound', 'label': 'Notification Sound detected', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'notificationCrying': {'key': 6024, 'name': 'notificationCrying', 'label': 'Notification Crying detected', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'continuousRecording': {'key': 6010, 'name': 'continuousRecording', 'label': 'Continuos Recording', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'continuousRecordingType': {'key': 6011, 'name': 'continuousRecordingType', 'label': 'Continuos Recording Mode', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'0': 'Always', '1': 'Schedule'}}, 'motionZone': {'key': 6042, 'name': 'motionZone', 'label': 'Motion Detection Zone', 'readable': True, 'writeable': True, 'type': 'string'}, 'imageMirrored': {'key': 1207, 'name': 'imageMirrored', 'label': 'Image vertically mirrored', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'videoTypeStoreToNAS': {'key': 6050, 'name': 'videoTypeStoreToNAS', 'label': 'Video Type Store To NAS', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'0': 'Events', '1': 'Continuous Recording'}}, 'snooze': {'key': 1271, 'name': 'snooze', 'label': 'Snooze', 'readable': True, 'writeable': False, 'type': 'boolean'}, 'snoozeTime': {'key': 1271, 'name': 'snoozeTime', 'label': 'Snooze Time', 'readable': True, 'writeable': False, 'type': 'number', 'default': 0, 'unit': 'sec'}, 'snoozeStartTime': {'key': 1271, 'name': 'snoozeStartTime', 'label': 'Snooze Start Time', 'readable': True, 'writeable': False, 'type': 'number', 'default': 0}, 'personName': {'key': 'custom_personName', 'name': 'personName', 'label': 'Person Name', 'readable': True, 'writeable': False, 'type': 'string', 'default': ''}}}}
2023-01-09 20:06:21.381 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'device.get_commands', 'serialNumber': 'T8410P312209519C', 'messageId': 'device.get_commands.9a9f7e5f900448d683e886c693245846'}
2023-01-09 20:06:21.387 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.get_commands.9a9f7e5f900448d683e886c693245846', 'result': {'serialNumber': 'T8410P312209519C', 'commands': ['start_livestream', 'stop_livestream', 'pan_and_tilt', 'start_download', 'cancel_download', 'calibrate', 'start_talkback', 'stop_talkback', 'snooze']}}
2023-01-09 20:06:21.387 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'device.is_rtsp_livestreaming', 'serialNumber': 'T8410P312209519C', 'messageId': 'device.is_rtsp_livestreaming.3d062a59a2684fcba060c9a98fdb3044'}
2023-01-09 20:06:21.391 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.is_rtsp_livestreaming.3d062a59a2684fcba060c9a98fdb3044', 'result': {'serialNumber': 'T8410P312209519C', 'livestreaming': False}}
2023-01-09 20:06:21.392 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'device.is_livestreaming', 'serialNumber': 'T8410P312209519C', 'messageId': 'device.is_livestreaming.8da16007c3ce48a68453d372d32e5154'}
2023-01-09 20:06:21.398 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.is_livestreaming.8da16007c3ce48a68453d372d32e5154', 'result': {'serialNumber': 'T8410P312209519C', 'livestreaming': False}}
2023-01-09 20:06:21.399 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'device.get_voices', 'serialNumber': 'T8410P312209519C', 'messageId': 'device.get_voices.b8cf4d0dfb9f4066a8d93afb6854a67f'}
2023-01-09 20:06:21.576 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.get_voices.b8cf4d0dfb9f4066a8d93afb6854a67f', 'result': {'serialNumber': 'T8410P312209519C', 'voices': {'1765': {'voice_id': 1765, 'user_id': 'c45aae16971fa55709146edc9275f2433f2c8e9d', 'desc': 'Hey, was machen Sie dort?', 'device_sn': '', 'voice_link': 'https://cdn-eu.eufylife.com/voice/2019/06/27/mobile/T9001A0218260014/HeyWhatAreYouDoingThere_DE.aac?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJYLV2KOLW6PU4FSA%2F20230109%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20230109T190621Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=2fc4302f2335aad4299ad75c2fe5c22f27eb71f3f5d711cec3a1eb1061a4a459', 'voice_type': 0, 'key_prefix': '/voice/2019/06/27/mobile/T9001A0218260014/HeyWhatAreYouDoingThere_DE.aac'}}}}
2023-01-09 20:06:21.579 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] url - StreamProvider.RTSP - rtsp://192.168.179.12/live0
2023-01-09 20:06:21.581 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'station.get_properties', 'serialNumber': 'T8410P312209519C', 'messageId': 'station.get_properties.e23a0d9431ff4cf096f3e0cb5023c401'}
2023-01-09 20:06:21.588 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'station.get_properties.e23a0d9431ff4cf096f3e0cb5023c401', 'result': {'serialNumber': 'T8410P312209519C', 'properties': {'name': 'Wohnzimmer', 'model': 'T8410', 'serialNumber': 'T8410P312209519C', 'type': 31, 'hardwareVersion': 'P3', 'softwareVersion': '2.1.5.1', 'lanIpAddress': '192.168.179.12', 'macAddress': '0417B60AAD89', 'timeFormat': 1, 'alarm': False, 'alarmType': 0, 'guardMode': 63, 'currentMode': 63}}}
2023-01-09 20:06:21.589 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'station.get_properties_metadata', 'serialNumber': 'T8410P312209519C', 'messageId': 'station.get_properties_metadata.be9bfa0b631c49c9a16143b1ce9e3b8b'}
2023-01-09 20:06:21.594 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'station.get_properties_metadata.be9bfa0b631c49c9a16143b1ce9e3b8b', 'result': {'serialNumber': 'T8410P312209519C', 'properties': {'name': {'key': 'station_name', 'name': 'name', 'label': 'Name', 'readable': True, 'writeable': False, 'type': 'string'}, 'model': {'key': 'station_model', 'name': 'model', 'label': 'Model', 'readable': True, 'writeable': False, 'type': 'string'}, 'serialNumber': {'key': 'station_sn', 'name': 'serialNumber', 'label': 'Serial number', 'readable': True, 'writeable': False, 'type': 'string'}, 'type': {'key': 'device_type', 'name': 'type', 'label': 'Type', 'readable': True, 'writeable': False, 'type': 'number', 'states': {'0': 'Station', '1': 'Camera', '2': 'Sensor', '3': 'Floodlight', '4': 'Camera E', '5': 'Doorbell', '7': 'Battery Doorbell', '8': 'Camera 2', '9': 'Camera 2c', '10': 'Motion Sensor', '11': 'Keypad', '14': 'Camera 2 Pro', '15': 'Camera 2c Pro', '16': 'Battery Doorbell 2', '30': 'Indoor Camera', '31': 'Indoor Camera PT', '32': 'Solo Camera', '33': 'Solo Camera Pro', '34': 'Indoor Camera 1080', '35': 'Indoor Camera PT 1080', '37': 'Floodlight 8422', '38': 'Floodlight 8423', '39': 'Floodlight 2', '44': 'Outdoor Camera 1080P No Light', '45': 'Outdoor Camera 2k', '46': 'Outdoor Camera 1080P', '50': 'Lock Basic', '51': 'Lock Advanced', '52': 'Lock Basic No Finger', '53': 'Lock Basic Advanced No Finger', '54': 'Lock 8503', '55': 'Lock 8530', '56': 'Lock 85A3', '57': 'Lock 8592', '58': 'Lock 8504', '60': 'Solo Camera Spotlight 1080p', '61': 'Solo Camera Spotlight 2k', '62': 'Solo Camera Spotlight Solar', '90': 'SmartDrop, Smart Delivery Box', '91': 'Video Doorbell Dual', '93': 'Video Doorbell Dual (Wired)'}}, 'hardwareVersion': {'key': 'main_hw_version', 'name': 'hardwareVersion', 'label': 'Hardware version', 'readable': True, 'writeable': False, 'type': 'string'}, 'softwareVersion': {'key': 'main_sw_version', 'name': 'softwareVersion', 'label': 'Software version', 'readable': True, 'writeable': False, 'type': 'string'}, 'lanIpAddress': {'key': 'ip_addr', 'name': 'lanIpAddress', 'label': 'LAN IP Address', 'readable': True, 'writeable': False, 'type': 'string'}, 'macAddress': {'key': 'wifi_mac', 'name': 'macAddress', 'label': 'MAC Address', 'readable': True, 'writeable': False, 'type': 'string'}, 'guardMode': {'key': 1224, 'name': 'guardMode', 'label': 'Guard Mode', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'0': 'Away', '1': 'Home', '2': 'Schedule', '3': 'Custom 1', '4': 'Custom 2', '5': 'Custom 3', '47': 'Geofencing', '63': 'Disarmed'}}, 'currentMode': {'key': 1151, 'name': 'currentMode', 'label': 'Current Mode', 'readable': True, 'writeable': False, 'type': 'number', 'states': {'0': 'Away', '1': 'Home', '3': 'Custom 1', '4': 'Custom 2', '5': 'Custom 3', '63': 'Disarmed'}}, 'timeFormat': {'key': 1253, 'name': 'timeFormat', 'label': 'Time Format', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'0': '12h', '1': '24h'}, 'default': 0}, 'alarm': {'key': 'custom_alarm', 'name': 'alarm', 'label': 'Alarm', 'readable': True, 'writeable': False, 'type': 'boolean', 'default': False}, 'alarmType': {'key': 'custom_alarmType', 'name': 'alarmType', 'label': 'Alarm Type', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'0': 'None', '2': 'Theft', '3': 'Motion', '4': 'Manual', '5': 'Overheating', '6': 'Door', '7': 'Camera Motion', '8': 'Motion Sensor', '9': 'Camera Theft', '10': 'Camera Manual', '11': 'Camera Linkage', '13': 'Keypad'}, 'default': 0}}}}
2023-01-09 20:06:21.594 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'station.get_commands', 'serialNumber': 'T8410P312209519C', 'messageId': 'station.get_commands.46a2efbd260e4fb7bad27db41033054f'}
2023-01-09 20:06:21.599 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'station.get_commands.46a2efbd260e4fb7bad27db41033054f', 'result': {'serialNumber': 'T8410P312209519C', 'commands': ['stationReboot', 'stationTriggerAlarmSound']}}
2023-01-09 20:06:28.628 DEBUG (MainThread) [custom_components.eufy_security] image 1 - False - None
2023-01-09 20:06:28.629 DEBUG (MainThread) [custom_components.eufy_security] async_camera_image 5 - is_empty True
2023-01-09 20:06:39.380 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] url - StreamProvider.RTSP - rtsp://192.168.179.12/live0
2023-01-09 20:06:39.381 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'device.start_rtsp_livestream', 'serialNumber': 'T8410P312209519C', 'messageId': 'device.start_rtsp_livestream.0b5260c5b5614c8d95f135049ae6cb5a'}
2023-01-09 20:06:39.428 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.start_rtsp_livestream.0b5260c5b5614c8d95f135049ae6cb5a', 'result': {}}
2023-01-09 20:06:39.428 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'rtsp livestream started', 'serialNumber': 'T8410P312209519C'}}
2023-01-09 20:06:39.428 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _handle_rtsp_livestream_started - Event(type='rtsp livestream started', data={'source': 'device', 'event': 'rtsp livestream started', 'serialNumber': 'T8410P312209519C'})
2023-01-09 20:06:39.462 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 1
2023-01-09 20:06:39.467 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-01-09 20:06:39.478 INFO (MainThread) [aiortsp.rtsp.reader] try loading stream rtspt://192.168.179.12/live0
2023-01-09 20:06:39.653 INFO (MainThread) [aiortsp.rtsp.reader] connected!
2023-01-09 20:06:39.654 INFO (MainThread) [aiortsp.rtsp.reader] receiving interleaved RTP (0) and RTCP (1)
2023-01-09 20:06:39.711 INFO (MainThread) [aiortsp.rtsp.reader] session options: {'SETUP', 'PLAY', 'OPTIONS', 'DESCRIBE', 'GET_PARAMETER', 'TEARDOWN'}
2023-01-09 20:06:39.738 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'command result', 'serialNumber': 'T8410P312209519C', 'command': 'set_property', 'returnCode': 0, 'returnCodeName': 'ERROR_PPCS_SUCCESSFUL', 'customData': {'property': {'name': 'rtspStream', 'value': True}}}}
2023-01-09 20:06:39.742 INFO (MainThread) [aiortsp.rtsp.reader] connection to RTSP server 192.168.179.12:554 closed (error: None)
2023-01-09 20:06:39.744 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-01-09 20:06:40.249 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-01-09 20:06:40.250 INFO (MainThread) [aiortsp.rtsp.reader] try loading stream rtspt://192.168.179.12/live0
2023-01-09 20:06:40.255 INFO (MainThread) [aiortsp.rtsp.reader] connected!
2023-01-09 20:06:40.255 INFO (MainThread) [aiortsp.rtsp.reader] receiving interleaved RTP (0) and RTCP (1)
2023-01-09 20:06:40.260 INFO (MainThread) [aiortsp.rtsp.reader] session options: {'SETUP', 'PLAY', 'OPTIONS', 'DESCRIBE', 'GET_PARAMETER', 'TEARDOWN'}
2023-01-09 20:06:40.264 INFO (MainThread) [aiortsp.rtsp.reader] connection to RTSP server 192.168.179.12:554 closed (error: None)
2023-01-09 20:06:40.266 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-01-09 20:06:40.769 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-01-09 20:06:40.769 INFO (MainThread) [aiortsp.rtsp.reader] try loading stream rtspt://192.168.179.12/live0
2023-01-09 20:06:40.773 INFO (MainThread) [aiortsp.rtsp.reader] connected!
2023-01-09 20:06:40.773 INFO (MainThread) [aiortsp.rtsp.reader] receiving interleaved RTP (0) and RTCP (1)
2023-01-09 20:06:40.777 INFO (MainThread) [aiortsp.rtsp.reader] session options: {'SETUP', 'PLAY', 'OPTIONS', 'DESCRIBE', 'GET_PARAMETER', 'TEARDOWN'}
2023-01-09 20:06:40.780 INFO (MainThread) [aiortsp.rtsp.reader] connection to RTSP server 192.168.179.12:554 closed (error: None)
2023-01-09 20:06:40.781 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-01-09 20:06:41.284 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-01-09 20:06:41.284 INFO (MainThread) [aiortsp.rtsp.reader] try loading stream rtspt://192.168.179.12/live0
2023-01-09 20:06:41.289 INFO (MainThread) [aiortsp.rtsp.reader] connected!
2023-01-09 20:06:41.289 INFO (MainThread) [aiortsp.rtsp.reader] receiving interleaved RTP (0) and RTCP (1)
2023-01-09 20:06:41.296 INFO (MainThread) [aiortsp.rtsp.reader] session options: {'SETUP', 'PLAY', 'OPTIONS', 'DESCRIBE', 'GET_PARAMETER', 'TEARDOWN'}
2023-01-09 20:06:41.299 INFO (MainThread) [aiortsp.rtsp.reader] connection to RTSP server 192.168.179.12:554 closed (error: None)
2023-01-09 20:06:41.301 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-01-09 20:06:41.803 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-01-09 20:06:41.804 INFO (MainThread) [aiortsp.rtsp.reader] try loading stream rtspt://192.168.179.12/live0
2023-01-09 20:06:41.808 INFO (MainThread) [aiortsp.rtsp.reader] connected!
2023-01-09 20:06:41.809 INFO (MainThread) [aiortsp.rtsp.reader] receiving interleaved RTP (0) and RTCP (1)
2023-01-09 20:06:41.812 INFO (MainThread) [aiortsp.rtsp.reader] session options: {'SETUP', 'PLAY', 'OPTIONS', 'DESCRIBE', 'GET_PARAMETER', 'TEARDOWN'}
2023-01-09 20:06:41.815 INFO (MainThread) [aiortsp.rtsp.reader] connection to RTSP server 192.168.179.12:554 closed (error: None)
2023-01-09 20:06:41.816 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-01-09 20:06:42.319 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-01-09 20:06:42.320 INFO (MainThread) [aiortsp.rtsp.reader] try loading stream rtspt://192.168.179.12/live0
2023-01-09 20:06:42.324 INFO (MainThread) [aiortsp.rtsp.reader] connected!
2023-01-09 20:06:42.324 INFO (MainThread) [aiortsp.rtsp.reader] receiving interleaved RTP (0) and RTCP (1)
2023-01-09 20:06:42.328 INFO (MainThread) [aiortsp.rtsp.reader] session options: {'SETUP', 'PLAY', 'OPTIONS', 'DESCRIBE', 'GET_PARAMETER', 'TEARDOWN'}
2023-01-09 20:06:42.331 INFO (MainThread) [aiortsp.rtsp.reader] connection to RTSP server 192.168.179.12:554 closed (error: None)
2023-01-09 20:06:42.332 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-01-09 20:06:42.836 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-01-09 20:06:42.836 INFO (MainThread) [aiortsp.rtsp.reader] try loading stream rtspt://192.168.179.12/live0
2023-01-09 20:06:42.840 INFO (MainThread) [aiortsp.rtsp.reader] connected!
2023-01-09 20:06:42.840 INFO (MainThread) [aiortsp.rtsp.reader] receiving interleaved RTP (0) and RTCP (1)
2023-01-09 20:06:42.843 INFO (MainThread) [aiortsp.rtsp.reader] session options: {'SETUP', 'PLAY', 'OPTIONS', 'DESCRIBE', 'GET_PARAMETER', 'TEARDOWN'}
2023-01-09 20:06:42.846 INFO (MainThread) [aiortsp.rtsp.reader] connection to RTSP server 192.168.179.12:554 closed (error: None)
2023-01-09 20:06:42.848 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-01-09 20:06:43.350 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-01-09 20:06:43.350 INFO (MainThread) [aiortsp.rtsp.reader] try loading stream rtspt://192.168.179.12/live0
2023-01-09 20:06:43.358 INFO (MainThread) [aiortsp.rtsp.reader] connected!
2023-01-09 20:06:43.359 INFO (MainThread) [aiortsp.rtsp.reader] receiving interleaved RTP (0) and RTCP (1)
2023-01-09 20:06:43.363 INFO (MainThread) [aiortsp.rtsp.reader] session options: {'SETUP', 'PLAY', 'OPTIONS', 'DESCRIBE', 'GET_PARAMETER', 'TEARDOWN'}
2023-01-09 20:06:43.366 INFO (MainThread) [aiortsp.rtsp.reader] connection to RTSP server 192.168.179.12:554 closed (error: None)
2023-01-09 20:06:43.367 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-01-09 20:06:43.870 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-01-09 20:06:43.870 INFO (MainThread) [aiortsp.rtsp.reader] try loading stream rtspt://192.168.179.12/live0
2023-01-09 20:06:43.874 INFO (MainThread) [aiortsp.rtsp.reader] connected!
2023-01-09 20:06:43.875 INFO (MainThread) [aiortsp.rtsp.reader] receiving interleaved RTP (0) and RTCP (1)
2023-01-09 20:06:43.880 INFO (MainThread) [aiortsp.rtsp.reader] session options: {'SETUP', 'PLAY', 'OPTIONS', 'DESCRIBE', 'GET_PARAMETER', 'TEARDOWN'}
2023-01-09 20:06:43.884 INFO (MainThread) [aiortsp.rtsp.reader] connection to RTSP server 192.168.179.12:554 closed (error: None)
2023-01-09 20:06:43.885 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-01-09 20:06:44.389 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-01-09 20:06:44.390 INFO (MainThread) [aiortsp.rtsp.reader] try loading stream rtspt://192.168.179.12/live0
2023-01-09 20:06:44.402 INFO (MainThread) [aiortsp.rtsp.reader] connected!
2023-01-09 20:06:44.403 INFO (MainThread) [aiortsp.rtsp.reader] receiving interleaved RTP (0) and RTCP (1)
2023-01-09 20:06:44.427 INFO (MainThread) [aiortsp.rtsp.reader] session options: {'SETUP', 'PLAY', 'OPTIONS', 'DESCRIBE', 'GET_PARAMETER', 'TEARDOWN'}
2023-01-09 20:06:44.443 INFO (MainThread) [aiortsp.rtsp.reader] connection to RTSP server 192.168.179.12:554 closed (error: None)
2023-01-09 20:06:44.449 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-01-09 20:06:47.600 ERROR (MainThread) [pysqueezebox.server] Failed communicating with LMS: <class 'aiohttp.client_exceptions.ClientConnectorError'>
2023-01-09 20:06:47.731 DEBUG (MainThread) [custom_components.eufy_security] image 1 - False - None
2023-01-09 20:06:47.732 DEBUG (MainThread) [custom_components.eufy_security] async_camera_image 5 - is_empty True
Thanks for detailed log, now i understood.
Between start stream and actual stream, there is usually a delay of couple of seconds (1 to 4 seconds depending on battery vs mains powered) and i am using an internal library to validate if camera had actually started the stream. For some reason, this library is failing to get the video stream and integration is assuming that it is not started.
Given that rtsp is available locally only, i wouldn't be able to debug this remotely, let me think about it
aiortsp.rtsp.reader] try loading stream rtspt://192.168.179.12/live0
2023-01-09 20:06:44.402 INFO (MainThread) [aiortsp.rtsp.reader] connected!
2023-01-09 20:06:44.403 INFO (MainThread) [aiortsp.rtsp.reader] receiving interleaved RTP (0) and RTCP (1)
2023-01-09 20:06:44.427 INFO (MainThread) [aiortsp.rtsp.reader] session options: {'SETUP', 'PLAY', 'OPTIONS', 'DESCRIBE', 'GET_PARAMETER', 'TEARDOWN'}
2023-01-09 20:06:44.443 INFO (MainThread) [aiortsp.rtsp.reader] connection to RTSP server 192.168.179.12:554 closed (error: None)
Following as I have the same problem. some pixels start streaming but it is stuck on preparing
@fuatakgun just a side note - newest update make it impossible to use "disabled" mode for RTSP Security. Only digest/basic are available on my end and can't select blank...
Hello @fuatakgun ,
Thanks for all the effort you put into this!
Unfortunately, I have a similar problem:
Would you share your device with me in case further debugging required? (Yes/No): Yes.
Recording:
Description:
When enabling P2P Streaming the status changes to StreamStatus.PREPARING , and progresses to STREAMING, and also never stops by itself (did not try for 3 Minutes ... only 90 sec or so).
RTSP-Stream cannot be watched by VLC - nothing reaches the stream in rtsp://127.0.0.1:8554/T8200N002028058B (well rtsp://
HA debug Log:
2023-02-01 22:11:47.312 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] None
2023-02-01 22:11:47.313 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] url - StreamProvider.P2P - rtsp://127.0.0.1:8554/T8200N002028058B
2023-02-01 22:11:47.313 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.device - device.start_livestream - {'serial_no': 'T8200N002028058B'} - {'serialNumber': 'T8200N002028058B'}
2023-02-01 22:11:47.313 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8200N002028058B', 'command': 'device.start_livestream', 'messageId': 'device.start_livestream.b91492db42b2403da64f71b1b18ffa5a'}
2023-02-01 22:11:47.314 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8200N002028058B', 'command': 'device.start_livestream', 'messageId': 'device.start_livestream.b91492db42b2403da64f71b1b18ffa5a'}
2023-02-01 22:11:47.335 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.start_livestream.b91492db42b2403da64f71b1b18ffa5a', 'result': {'async': True}}
2023-02-01 22:11:47.339 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] wait start - port
2023-02-01 22:11:47.342 DEBUG (Thread-1270 (setup)) [custom_components.eufy_security.eufy_security_api] p2p 1 - waiting
2023-02-01 22:11:47.378 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'command result', 'serialNumber': 'T8200N002028058B', 'command': 'start_livestream', 'returnCode': 0, 'returnCodeName': 'ERROR_PPCS_SUCCESSFUL', 'customData': {'command': {'name': 'deviceStartLivestream', 'value': 0}}}}
2023-02-01 22:11:47.591 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] wait finish - port - return True
2023-02-01 22:11:47.692 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] start_ffmpeg - stream_url -f rtsp -rtsp_transport tcp rtsp://127.0.0.1:8554/T8200N002028058B command ['-analyzeduration', '1.2', '-f', 'h264', '-i', 'tcp://localhost:54683', '-vcodec', 'copy'] options -hls_init_time 0 -hls_time 1 -hls_segment_type mpegts -hls_playlist_type event -hls_list_size 0 -preset ultrafast -tune zerolatency -g 15 -sc_threshold 0 -fflags genpts+nobuffer+flush_packets -loglevel debug
2023-02-01 22:11:47.693 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 1
2023-02-01 22:11:47.700 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:47.710 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:47.797 DEBUG (Thread-1270 (setup)) [custom_components.eufy_security.eufy_security_api] p2p 1 - arrived
2023-02-01 22:11:47.798 DEBUG (Thread-1270 (setup)) [custom_components.eufy_security.eufy_security_api] p2p 5 - q size: 0 - empty 0
2023-02-01 22:11:47.924 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'livestream started', 'serialNumber': 'T8200N002028058B'}}
2023-02-01 22:11:47.925 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _handle_livestream_started - Event(type='livestream started', data={'source': 'device', 'event': 'livestream started', 'serialNumber': 'T8200N002028058B'})
2023-02-01 22:11:48.212 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:48.219 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:48.304 DEBUG (Thread-1270 (setup)) [custom_components.eufy_security.eufy_security_api] p2p 5 - q size: 12 - empty 1
2023-02-01 22:11:48.723 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:48.736 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:48.813 DEBUG (Thread-1270 (setup)) [custom_components.eufy_security.eufy_security_api] p2p 5 - q size: 7 - empty 0
2023-02-01 22:11:48.814 ERROR (Thread-1270 (setup)) [custom_components.eufy_security.eufy_security_api] Exception [Errno 104] Connection reset by peer - traceback: Traceback (most recent call last):
File "/config/custom_components/eufy_security/eufy_security_api/p2p_stream_handler.py", line 103, in setup
2023-02-01 22:11:48.818 DEBUG (Thread-1270 (setup)) [custom_components.eufy_security.eufy_security_api] p2p 7
2023-02-01 22:11:49.251 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:49.273 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:49.940 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:51.170 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:51.686 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:51.762 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:52.276 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:52.303 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:52.806 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:52.813 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:53.349 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:53.621 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:54.129 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:54.148 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:54.669 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:54.681 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:55.668 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:55.998 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:56.513 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:56.526 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:57.029 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:57.115 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:57.617 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:57.629 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:58.132 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:58.141 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:58.661 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:58.837 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:11:59.383 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:11:59.893 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:00.722 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:01.579 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:02.108 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:02.168 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:02.672 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:02.677 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:23.450 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.device - device.stop_livestream - {'serial_no': 'T8200N002028058B'} - {'serialNumber': 'T8200N002028058B'}
2023-02-01 22:12:23.451 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8200N002028058B', 'command': 'device.stop_livestream', 'messageId': 'device.stop_livestream.843d6411041e4ff5bc5648de33cbf7e7'}
2023-02-01 22:12:23.451 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8200N002028058B', 'command': 'device.stop_livestream', 'messageId': 'device.stop_livestream.843d6411041e4ff5bc5648de33cbf7e7'}
2023-02-01 22:12:23.493 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.stop_livestream.843d6411041e4ff5bc5648de33cbf7e7', 'result': {'async': True}}
2023-02-01 22:12:23.494 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'livestream stopped', 'serialNumber': 'T8200N002028058B'}}
2023-02-01 22:12:23.494 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _handle_livestream_stopped - Event(type='livestream stopped', data={'source': 'device', 'event': 'livestream stopped', 'serialNumber': 'T8200N002028058B'})
2023-02-01 22:12:23.852 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'command result', 'serialNumber': 'T8200N002028058B', 'command': 'stop_livestream', 'returnCode': 0, 'returnCodeName': 'ERROR_PPCS_SUCCESSFUL', 'customData': {'command': {'name': 'deviceStopLivestream'}}}}
2023-02-01 22:12:26.195 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'property changed', 'serialNumber': 'T8410P2020281150', 'name': 'motionDetected', 'value': True}}
2023-02-01 22:12:26.207 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'motion detected', 'serialNumber': 'T8410P2020281150', 'state': True}}
2023-02-01 22:12:26.211 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'motion detected', 'serialNumber': 'T8410P2020281150', 'state': True}}
2023-02-01 22:12:27.195 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'property changed', 'serialNumber': 'T8410P2020281150', 'name': 'motionDetected', 'value': False}}
2023-02-01 22:12:27.206 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'motion detected', 'serialNumber': 'T8410P2020281150', 'state': False}}
2023-02-01 22:12:27.209 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'motion detected', 'serialNumber': 'T8410P2020281150', 'state': False}}
2023-02-01 22:12:31.408 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] None
2023-02-01 22:12:31.408 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] url - StreamProvider.P2P - rtsp://127.0.0.1:8554/T8200N002028058B
2023-02-01 22:12:31.408 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.device - device.start_livestream - {'serial_no': 'T8200N002028058B'} - {'serialNumber': 'T8200N002028058B'}
2023-02-01 22:12:31.409 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8200N002028058B', 'command': 'device.start_livestream', 'messageId': 'device.start_livestream.604eafefa32049768ec914eecea20e75'}
2023-02-01 22:12:31.410 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8200N002028058B', 'command': 'device.start_livestream', 'messageId': 'device.start_livestream.604eafefa32049768ec914eecea20e75'}
2023-02-01 22:12:31.433 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.start_livestream.604eafefa32049768ec914eecea20e75', 'result': {'async': True}}
2023-02-01 22:12:31.438 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] wait start - port
2023-02-01 22:12:31.446 DEBUG (Thread-1330 (setup)) [custom_components.eufy_security.eufy_security_api] p2p 1 - waiting
2023-02-01 22:12:31.468 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'command result', 'serialNumber': 'T8200N002028058B', 'command': 'start_livestream', 'returnCode': 0, 'returnCodeName': 'ERROR_PPCS_SUCCESSFUL', 'customData': {'command': {'name': 'deviceStartLivestream', 'value': 0}}}}
2023-02-01 22:12:31.690 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] wait finish - port - return True
2023-02-01 22:12:31.801 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] start_ffmpeg - stream_url -f rtsp -rtsp_transport tcp rtsp://127.0.0.1:8554/T8200N002028058B command ['-analyzeduration', '1.2', '-f', 'h264', '-i', 'tcp://localhost:45863', '-vcodec', 'copy'] options -hls_init_time 0 -hls_time 1 -hls_segment_type mpegts -hls_playlist_type event -hls_list_size 0 -preset ultrafast -tune zerolatency -g 15 -sc_threshold 0 -fflags genpts+nobuffer+flush_packets -loglevel debug
2023-02-01 22:12:31.804 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 1
2023-02-01 22:12:31.812 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:31.825 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:31.841 DEBUG (Thread-1330 (setup)) [custom_components.eufy_security.eufy_security_api] p2p 1 - arrived
2023-02-01 22:12:31.841 DEBUG (Thread-1330 (setup)) [custom_components.eufy_security.eufy_security_api] p2p 5 - q size: 0 - empty 0
2023-02-01 22:12:32.111 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'livestream started', 'serialNumber': 'T8200N002028058B'}}
2023-02-01 22:12:32.112 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _handle_livestream_started - Event(type='livestream started', data={'source': 'device', 'event': 'livestream started', 'serialNumber': 'T8200N002028058B'})
2023-02-01 22:12:32.342 DEBUG (Thread-1330 (setup)) [custom_components.eufy_security.eufy_security_api] p2p 5 - q size: 9 - empty 1
2023-02-01 22:12:32.511 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:32.617 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:32.917 DEBUG (Thread-1330 (setup)) [custom_components.eufy_security.eufy_security_api] p2p 5 - q size: 9 - empty 0
2023-02-01 22:12:32.923 ERROR (Thread-1330 (setup)) [custom_components.eufy_security.eufy_security_api] Exception [Errno 104] Connection reset by peer - traceback: Traceback (most recent call last):
File "/config/custom_components/eufy_security/eufy_security_api/p2p_stream_handler.py", line 103, in setup
2023-02-01 22:12:32.930 DEBUG (Thread-1330 (setup)) [custom_components.eufy_security.eufy_security_api] p2p 7
2023-02-01 22:12:33.175 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:33.333 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:33.837 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:33.845 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:34.349 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:34.371 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:35.000 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:35.734 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'property changed', 'serialNumber': 'T8410P20202807C8', 'name': 'motionDetected', 'value': True}}
2023-02-01 22:12:35.749 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'motion detected', 'serialNumber': 'T8410P20202807C8', 'state': True}}
2023-02-01 22:12:35.750 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'motion detected', 'serialNumber': 'T8410P20202807C8', 'state': True}}
2023-02-01 22:12:36.098 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:36.521 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'property changed', 'serialNumber': 'T8410P20202807C8', 'name': 'motionDetected', 'value': False}}
2023-02-01 22:12:36.534 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'motion detected', 'serialNumber': 'T8410P20202807C8', 'state': False}}
2023-02-01 22:12:36.541 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'motion detected', 'serialNumber': 'T8410P20202807C8', 'state': False}}
2023-02-01 22:12:36.601 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:36.608 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:37.152 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:37.183 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:37.711 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:37.738 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:38.242 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:38.275 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:38.778 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:38.811 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:39.317 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:39.325 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:39.860 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:41.189 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:41.695 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:41.715 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:42.219 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:42.233 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:42.736 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:42.748 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:44.931 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 2 - reader opened
2023-02-01 22:12:46.709 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _is_stream_url_ready - 4 - reader closed
2023-02-01 22:12:51.433 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.device - device.stop_livestream - {'serial_no': 'T8200N002028058B'} - {'serialNumber': 'T8200N002028058B'}
2023-02-01 22:12:51.435 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8200N002028058B', 'command': 'device.stop_livestream', 'messageId': 'device.stop_livestream.65840b9d12e8450abd2ba5d940d86b71'}
2023-02-01 22:12:51.435 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8200N002028058B', 'command': 'device.stop_livestream', 'messageId': 'device.stop_livestream.65840b9d12e8450abd2ba5d940d86b71'}
2023-02-01 22:12:51.495 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.stop_livestream.65840b9d12e8450abd2ba5d940d86b71', 'result': {'async': True}}
2023-02-01 22:12:51.497 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'livestream stopped', 'serialNumber': 'T8200N002028058B'}}
2023-02-01 22:12:51.497 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _handle_livestream_stopped - Event(type='livestream stopped', data={'source': 'device', 'event': 'livestream stopped', 'serialNumber': 'T8200N002028058B'})
2023-02-01 22:12:51.556 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'command result', 'serialNumber': 'T8200N002028058B', 'command': 'stop_livestream', 'returnCode': 0, 'returnCodeName': 'ERROR_PPCS_SUCCESSFUL', 'customData': {'command': {'name': 'deviceStopLivestream'}}}}
Add-on-Log:
2023-02-01 20:47:01.042 INFO Connected to station T8410P20202807C8 on host 87.171.217.106 and port 26133
2023-02-01 20:47:01.079 INFO Connected to station T8001H23183907BE on host 87.171.217.106 and port 18909
2023-02-01 20:47:01.109 INFO Connected to station T8410P2020281150 on host 87.171.217.106 and port 14362
2023-02-01 20:47:01.255 INFO Connected to station T8200N002028058B on host 87.171.217.106 and port 18901
2023-02-01 20:47:10.892 INFO Push notification connection successfully established
I hope this helps debugging this issue. To me the only thing that might look odd is this line:
2023-02-01 22:11:47.378 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'event', 'event': {'source': 'device', 'event': 'command result', 'serialNumber': 'T8200N002028058B', 'command': 'start_livestream', 'returnCode': 0, 'returnCodeName': 'ERROR_PPCS_SUCCESSFUL', 'customData': {'command': {'name': 'deviceStartLivestream', 'value': 0}}}}
I was having this same issue with streams stuck in Prepairing. I found that I was having a port conflict between RTSP Add On and the WebRTC integration, both trying the broadcast an RTSP stream on 8554 (WebRTC started using port 8554 in v3). I changed the port to 8555 in the configuration of the on the RTSP Add-on, and in the configuration of the Eufy Security integration. Now my streams are working again!
Eufy Security Add-on 1.3.0 RTSP Simple Server Add-on 0.17.6 Eufy Security integration 6.2.0 WebRTC Camera integration 3.0.2 Home Assistant 2023.2.2 Home Assistant OS 9.5
Eufy Homebase 2 T8010 Eufy Battery Wireless Doorbell 2K T8210
Edit: In retrospect, my solution is unlikely to be applicable to the original issue reported. The original issue was with a native RSTP streaming camera, so they are unlikely to be running RSTP Simple Server Add-on. If you are running a P2P camera, as some people in the comments have mentioned, it might be applicable to you. There is also issue #672 which is more focused on P2P cameras getting stuck in Preparing status.
I only use RTSP (no P2P, so RTSP Simple server addon) and have the same issue. Clicking "Start RTSP Stream" or using camera.turn_on both result in StreamStatus.PREPARING forever.
Funny thing is I have an automation like this:
alias: Kamera - Terrasse Bewegung - Benachrichtigung (+Snapshot)
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.au_terrasse_kamera_bewegung
- binary_sensor.au_terrasse_kamera_person
to: "on"
condition:
...
action:
- service: eufy_security.start_rtsp_livestream
data: {}
target:
entity_id: camera.au_terrasse_kamera
- service: eufy_security.generate_image
data: {}
target:
entity_id: camera.au_terrasse_kamera
- service: eufy_security.stop_rtsp_livestream
data: {}
target:
entity_id: camera.au_terrasse_kamera
- service: script.nachricht_an_alle_anwesenden
data:
data:
title: Terrasse
message: Die Kamera hat eine Bewegung erkannt
data:
image: /api/camera_proxy/camera.au_terrasse_kamera
tag: kamera_terrasse
url: lovelace-haussteuerung/sicherheit
push:
interruption-level: time-sensitive
mode: single
and this gets it from IDLE to PREPARING to STREAMING to IDLE reliably when a motion is detected. Just the way I would expect it to work.
When I deactivate the automation and wave my hand in front of the cam (motion detected) and then do the steps manually (start rtsp, generate image, stop rtsp) it's stuck in StreamStatus.PREPARING again. I really don't get this, maybe the timing has to be faster then I can click manually and so the automation can do what the steps alone can't?
After running this automation for a couple days, I noticed that it sometimes works and sometimes does not. When it does not work, it generates the following debug log message:
Logger: homeassistant.components.stream.stream.camera.au_garten_kamera_garage_hinten
Source: components/stream/__init__.py:434
Integration: Stream ([documentation](https://www.home-assistant.io/integrations/stream), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+stream%22))
First occurred: 09:47:31 (11 occurrences)
Last logged: 10:23:28
Error from stream worker: Error opening stream (HTTP_UNAUTHORIZED, Server returned 401 Unauthorized (authorization failed)) rtsp://****:****@192.168.40.71/live3
I think it's not really an authorization problem since using the same URL in another app (e.g. VLC) works just fine and also sometimes streaming in Home Assistant works fine.
Hi! I have the same problem in HA with T8210, probably since one of the updates I did around the 29th of January 2023. I can trace an update of the HA OS being updated at this point in time when it starts to fail.
It has been working well before this time, but now it changes from StreamStatus.IDLE to StreamStatus.PREPARING and get stuck here. It never changes to StreamStatus.STREAMING anymore, though I can see the Video Queue Size is counting up when it is not idle.
I get the following error in the Eufy Security Add-on when the stream is stopping:
2023-02-18 08:42:57.510 INFO Connected to station T8010P23XXXXXXXX on host 192.168.1.119 and port 12511 2023-02-18 08:49:00.089 ERROR Message error LivestreamNotRunningError Livestream for device T8210P33XXXXXXXX could not be stopped, because it is not running error stack: • message_handler.ts:240 handle src/lib/device/message_handler.ts:240:31 • task_queues:96 processTicksAndRejections node:internal/process/task_queues:96:5 • server.ts:125 receiveMessage src/lib/server.ts:125:21
I hope this can be of any help to find a solution.
Best Regards /Hazze
Same issue with P2P.
Having same issue with 2K battery doorbell T8210. The doorbell is P2P only and I have not been able to get any live feed or last event screenshot. "Stream Status" does not move past StreamStatus.PREPARING and "Doorbell" status never changes from Idle. Currently attempting the below automations to start and end the stream, but nothing happens.
alias: Doorbell Picture Update
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.doorbell_motion_detected
- binary_sensor.doorbell_person_detected
to: "on"
condition: []
action:
- service: eufy_security.start_p2p_livestream
data: {}
target:
entity_id: camera.doorbell_2
- service: eufy_security.generate_image
data: {}
target:
entity_id: camera.doorbell_2
- service: notify.mobile_app_ian_s_iphone
data:
message: Someone is at the front door
data:
image: /api/camera_proxy/camera.doorbell_2
mode: single
alias: Doorbell Stream Stop
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.doorbell_motion_detected
- binary_sensor.doorbell_person_detected
to: "off"
condition:
- condition: state
entity_id:
- binary_sensor.doorbell_motion_detected
- binary_sensor.doorbell_person_detected
state: "off"
action:
- service: eufy_security.stop_p2p_livestream
data: {}
target:
entity_id: camera.doorbell_2
mode: single
Dashboard:
- type: conditional
conditions:
- entity: camera.doorbell_2
state: idle
card:
show_state: true
show_name: true
camera_view: auto
type: picture-entity
entity: camera.doorbell_2
camera_image: camera.doorbell_2
tap_action:
action: none
hold_action:
action: none
- type: conditional
conditions:
- entity: camera.doorbell_2
state: streaming
card:
type: vertical-stack
cards:
- type: custom:webrtc-camera
entity: camera.doorbell_2
Requested screenshots below:
Hi again! Still having the same problem with streaming that seems to be starting and ending properly but the "Stream Status" never changes to status STREAMING, which it used to do... Now it changes from IDLE -> PREPARING and then back to IDLE when stopping the streaming. The Video Queue Size is increasing as I think it should when PREPARING and goes back to 0 when status changes back to IDLE, but there is no video showing in the corresponding "camera" in HA. I had it working but it broke probably when updating HA at 29th of January 2023. See attached image.
I also have problems when clicking Save in the Eufy Security Integration Configuration screen. The same problem occurs whether or not I change any settings on this screen. See attached image.
Is there any other information I can provide to assist solving these problems, let me know? Thanks!
I just found out that setting the "Video Streaming Quality" option to "High / Low Encoding" does make the streaming start working again. :)
I just found out that setting the "Video Streaming Quality" option to "High / Low Encoding" does make the streaming start working again. :)
This option ?
I do but not working for me
Yes, that is the setting. I agree it is a bit odd that it actually started to work again as I have changed nothing in HA during the past week and today I noticed the picture on the camera was back again... I did try the "Video Streaming Quality" and noticed that, at least in my case, it should be on "Low Encoding" in order for the streaming status to work. But as you say there might well be something else too...
So you have "Video Streaming Quality" in HA at "High/Low Encoding" and in Eufy app, you have "Streaming Quality" at "High" and "Video Encoding Format" at "Low"? I will try that and let you know.
On Fri, Mar 24, 2023 at 5:02 PM Hazze @.***> wrote:
Yes, that is the setting. I agree it is a bit odd that it actually started to work again as I have changed nothing in HA during the past week and today I noticed the picture on the camera was back again... I did try the "Video Streaming Quality" and noticed that, at least in my case, it should be on "Low Encoding" in order for the streaming status to work. But as you say there might well be something else too...
— Reply to this email directly, view it on GitHub https://github.com/fuatakgun/eufy_security/issues/668#issuecomment-1483402347, or unsubscribe https://github.com/notifications/unsubscribe-auth/AU46HLBTJFAJXZBGEYDDPNLW5YDWXANCNFSM6AAAAAATUGIUOM . You are receiving this because you commented.Message ID: @.***>
Is this problem resolved yet? Or is there a setting we can adjust to get it out of preparing? I tinkered with all the settings, rebooted the pi4, eufy but nothing seems to help. All I noticed is that it became a problems since I tried to let the stream go faster with go2rtc, since then it’s stuck.. maybe this addon made a setting change. Anything else I cannot find? Any help would be appreciated!
Ok, so I updated to HA Core 2023.4.4 on the 18th of April and it stopped streaming again... :( Now it hangs on PREPARING again... Any ideas?
I am not as technically smart as many of the above but I too am having the same problem.
LivestreamNotRunningError Livestream for device T8420N6021202007 could not be stopped, because it is not running
error stack:
• message_handler.ts:240 handle
usr/src/app/node_modules/eufy-security-ws/src/lib/device/message_handler.ts:240:31
• task_queues:95 processTicksAndRejections
node:internal/process/task_queues:95:5
• server.ts:125 receiveMessage
usr/src/app/node_modules/eufy-security-ws/src/lib/server.ts:125:21
2023-05-11 13:34:34.420 WARN Station T8420N6021202375 - AES key could not be decrypted! The entire stream is discarded. - Error:
Error Error during decryption (probably incorrect key). Original error: Error: error:0200009F:rsa routines::pkcs decoding error
error stack:
• NodeRSA.js:301 module.exports.NodeRSA.$$decryptKey
usr/src/app/node_modules/node-rsa/src/NodeRSA.js:301:19
• NodeRSA.js:249 module.exports.NodeRSA.decrypt
usr/src/app/node_modules/node-rsa/src/NodeRSA.js:249:21
• session.ts:1330 handleDataBinaryAndVideo
usr/src/app/node_modules/eufy-security-client/src/p2p/session.ts:1330:63
• session.ts:1265 handleData
usr/src/app/node_modules/eufy-security-client/src/p2p/session.ts:1265:18
• session.ts:1156 parseDataMessage
usr/src/app/node_modules/eufy-security-client/src/p2p/session.ts:1156:26
• session.ts:989 handleMsg
usr/src/app/node_modules/eufy-security-client/src/p2p/session.ts:989:26
• session.ts:131
Logged in to comment on Daneish's answer from Feb 5, since web searches landed others here as well for the same problem. (https://github.com/fuatakgun/eufy_security/issues/668#issuecomment-1418007292)
Nice find.
This was exactly the issue I had. In my case, I had the simple RTSP server running in a docker container that occupied that port running on the same Pi as home assistant and eufy-security-ws.
Updating the docker container to listen on a different outside port absolutely fixed the issue for me.
sudo docker run -d --rm -it -e MTX_PROTOCOLS=tcp -p 18554:8554 -p 1935:1935 -p 8888:8888 -p 8889:8889 aler9/rtsp-simple-server
Then, in the configuration of the Eufy Security within Home Assistant, update the RTSP port to use the new one you just set (in my case I set it to 18554).
Still having "preparing" issue
bytesRead: 1008, bytesToRead: 4527, firstPartMessage: true, messageSize: 1024 } 2023-06-05 17:35:13.889 DEBUG [P2PClientProtocol.handleMsg] Station T8420N6021202007 - DATA VIDEO - Received expected sequence (expectedSeqNo: 18846 seqNo: 18845 queuedData.size: 0) 2023-06-05 17:35:13.891 DEBUG [P2PClientProtocol.handleMsg] Station T8420N6021202007 - DATA VIDEO - received from host 192.168.4.48:23945 - Processing sequence 18846... 2023-06-05 17:35:13.892 DEBUG [P2PClientProtocol.parseDataMessage] Station T8420N6021202007 - Received data { seqNo: 18846, header: { commandId: 1300, bytesToRead: 4527, channel: 1, signCode: 0, type: 0 }, bytesRead: 2032, bytesToRead: 4527, firstPartMessage: false, messageSize: 1024 } 2023-06-05 17:35:13.893 DEBUG [P2PClientProtocol.handleMsg] Station T8420N6021202007 - DATA VIDEO - Received expected sequence (expectedSeqNo: 18847 seqNo: 18846 queuedData.size: 0) 2023-06-05 17:35:13.894 DEBUG [P2PClientProtocol.handleMsg] Station T8420N6021202007 - DATA VIDEO - received from host 192.168.4.48:23945 - Processing sequence 18847... 2023-06-05 17:35:13.895 DEBUG [P2PClientProtocol.parseDataMessage] Station T8420N6021202007 - Received data { seqNo: 18847, header: { commandId: 1300, bytesToRead: 4527, channel: 1, signCode: 0, type: 0 }, bytesRead: 3056, bytesToRead: 4527, firstPartMessage: false, messageSize: 1024 } 2023-06-05 17:35:13.897 DEBUG [P2PClientProtocol.handleMsg] Station T8420N6021202007 - DATA VIDEO - Received expected sequence (expectedSeqNo: 18848 seqNo: 18847 queuedData.size: 0) 2023-06-05 17:35:13.898 DEBUG [P2PClientProtocol.handleMsg] Station T8420N6021202007 - DATA VIDEO - received from host 192.168.4.48:23945 - Processing sequence 18848... 2023-06-05 17:35:13.899 DEBUG [P2PClientProtocol.parseDataMessage] Station T8420N6021202007 - Received data { seqNo: 18848, header: { commandId: 1300, bytesToRead: 4527, channel: 1, signCode: 0, type: 0 }, bytesRead: 4080, bytesToRead: 4527, firstPartMessage: false, messageSize: 1024 } 2023-06-05 17:35:13.900 DEBUG [P2PClientProtocol.handleMsg] Station T8420N6021202007 - DATA VIDEO - Received expected sequence (expectedSeqNo: 18849 seqNo: 18848 queuedData.size: 0) 2023-06-05 17:35:13.901 DEBUG [P2PClientProtocol.handleMsg] Station T8420N6021202007 - DATA VIDEO - received from host 192.168.4.48:23945 - Processing sequence 18849... 2023-06-05 17:35:13.902 DEBUG [P2PClientProtocol.parseDataMessage] Station T8420N6021202007 - Received data { seqNo: 18849, header: { commandId: 1300, bytesToRead: 4527, channel: 1, signCode: 0, type: 0 }, bytesRead: 4527, bytesToRead: 4527, firstPartMessage: false, messageSize: 447 } 2023-06-05 17:35:13.904 DEBUG [P2PClientProtocol.handleDataBinaryAndVideo] Station T8420N6021202007 - CMD_VIDEO_FRAME { dataSize: 4527, metadata: { streamType: 1, videoSeqNo: 0, videoFPS: 15, videoWidth: 640, videoHeight: 360, videoTimestamp: 1685986513548, videoDataLength: 4505, aesKey: '' }, videoDataSize: 4505 } 2023-06-05 17:35:13.905 DEBUG [P2PClientProtocol.handleDataBinaryAndVideo] Station T8420N6021202007 - CMD_VIDEO_FRAME: startcode found { isKeyFrame: false, preFrameVideoDataLength: 4981 } 2023-06-05 17:35:13.909 DEBUG [P2PClientProtocol.handleMsg] Station T8420N6021202007 - DATA VIDEO - Received expected sequence (expectedSeqNo: 18850 seqNo: 18849 queuedData.size: 0) 2023-06-05 17:35:13.919 DEBUG [P2PClientProtocol.handleMsg] Station T8420N6021202007 - DATA VIDEO - received from host 192.168.4.48:23945 - Processing sequence 18850... 2023-06-05 17:35:13.920 DEBUG [P2PClientProtocol.parseDataMessage] Station T8420N6021202007 - Received data { seqNo: 18850, header: { commandId: 1301,
still have this problem, got 1 of the camera working but the other 2 icant seem to find how to make it work
If I remove the integration and WebRTC , restart system and reinstall integrations I can some times get things working for a couple days and then gets stuck again. I tried this process this am unsuccessfully. I captured the log below: s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started 2023-06-23 13:52:42.256 INFO Eufy Security server listening on host 0.0.0.0, port 3000 2023-06-23 13:52:52.755 INFO Connected to station T8420N6021202375 on host 192.168.4.46 and port 13466 2023-06-23 13:52:52.987 INFO Connected to station T8420N6021202007 on host 192.168.4.48 and port 29209 2023-06-23 13:52:53.534 INFO Push notification connection successfully established 2023-06-23 13:53:57.912 ERROR Message error LivestreamAlreadyRunningError Livestream for device T8420N6021202007 is already running error stack: • message_handler.ts:231 handle usr/src/app/node_modules/eufy-security-ws/src/lib/device/message_handler.ts:231:31 • task_queues:95 processTicksAndRejections node:internal/process/task_queues:95:5 • server.ts:125 receiveMessage usr/src/app/node_modules/eufy-security-ws/src/lib/server.ts:125:21 2023-06-23 13:54:01.485 ERROR Message error LivestreamAlreadyRunningError Livestream for device T8420N6021202007 is already running error stack: • message_handler.ts:231 handle usr/src/app/node_modules/eufy-security-ws/src/lib/device/message_handler.ts:231:31 • task_queues:95 processTicksAndRejections node:internal/process/task_queues:95:5 • server.ts:125 receiveMessage usr/src/app/node_modules/eufy-security-ws/src/lib/server.ts:125:21 2023-06-23 13:54:02.372 ERROR Message error LivestreamAlreadyRunningError Livestream for device T8420N6021202007 is already running error stack: • message_handler.ts:231 handle usr/src/app/node_modules/eufy-security-ws/src/lib/device/message_handler.ts:231:31 • task_queues:95 processTicksAndRejections node:internal/process/task_queues:95:5 • server.ts:125 receiveMessage usr/src/app/node_modules/eufy-security-ws/src/lib/server.ts:125:21 2023-06-23 13:54:02.534 ERROR Message error LivestreamAlreadyRunningError Livestream for device T8420N6021202007 is already running error stack: • message_handler.ts:231 handle usr/src/app/node_modules/eufy-security-ws/src/lib/device/message_handler.ts:231:31 • task_queues:95 processTicksAndRejections node:internal/process/task_queues:95:5 • server.ts:125 receiveMessage usr/src/app/node_modules/eufy-security-ws/src/lib/server.ts:125:21 2023-06-23 13:54:06.673 ERROR Message error LivestreamNotRunningError Livestream for device T8420N6021202375 could not be stopped, because it is not running error stack: • message_handler.ts:240 handle usr/src/app/node_modules/eufy-security-ws/src/lib/device/message_handler.ts:240:31 • task_queues:95 processTicksAndRejections node:internal/process/task_queues:95:5 • server.ts:125 receiveMessage usr/src/app/node_modules/eufy-security-ws/src/lib/server.ts:125:21 2023-06-23 13:54:14.638 ERROR Message error LivestreamAlreadyRunningError Livestream for device T8420N6021202007 is already running error stack: • message_handler.ts:231 handle usr/src/app/node_modules/eufy-security-ws/src/lib/device/message_handler.ts:231:31 • task_queues:95 processTicksAndRejections node:internal/process/task_queues:95:5 • server.ts:125 receiveMessage usr/src/app/node_modules/eufy-security-ws/src/lib/server.ts:125:21 2023-06-23 13:55:05.195 ERROR Message error LivestreamNotRunningError Livestream for device T8420N6021202007 could not be stopped, because it is not running error stack: • message_handler.ts:240 handle usr/src/app/node_modules/eufy-security-ws/src/lib/device/message_handler.ts:240:31 • task_queues:95 processTicksAndRejections node:internal/process/task_queues:95:5 • server.ts:125 receiveMessage usr/src/app/node_modules/eufy-security-ws/src/lib/server.ts:125:21 2023-06-23 13:55:18.877 INFO Client disconnected with ip: 127.0.0.1 port: 50536 code: 1006 reason: Abnormal Closure
Hello. I know the issue is resolved but I seem to have the same issue when pressing the "start rtsp stream" using a T8113-Z camera. It is stuck on "preparing" and nothing happens. The stream url is correct including user and password.
Any idea ?
Streaming still stuck in preparing....hard to be just me? s6-rc: info: service s6rc-oneshot-runner: starting s6-rc: info: service s6rc-oneshot-runner successfully started s6-rc: info: service fix-attrs: starting s6-rc: info: service fix-attrs successfully started s6-rc: info: service legacy-cont-init: starting s6-rc: info: service legacy-cont-init successfully started s6-rc: info: service legacy-services: starting s6-rc: info: service legacy-services successfully started 2023-09-14 20:07:29.844 INFO Eufy Security server listening on host 0.0.0.0, port 3000 2023-09-14 20:07:32.161 INFO Connected to station T8420N6021202375 on host 192.168.4.46 and port 10563 2023-09-14 20:07:32.173 INFO Connected to station T8420N6021202007 on host 192.168.4.48 and port 10563 2023-09-14 20:07:32.530 WARN P2P protocol instability detected for station T8420N6021202007. Please reinitialise the connection to solve the problem! 2023-09-14 20:07:33.475 INFO Push notification connection successfully established 2023-09-14 20:08:02.513 WARN Result data for command not received { stationSN: 'T8420N6021202007', message: { sequence: 1, commandType: 1350, nestedCommandType: 1308, channel: 255, acknowledged: true, retries: 0, returnCode: -133, data: <Buffer d1 00 00 01 58 5a 59 48 46 05 d6 00 00 00 01 00 ff 00 00 00 7b 22 61 63 63 6f 75 6e 74 5f 69 64 22 3a 22 39 33 31 31 30 62 66 65 30 38 39 65 39 66 62 ... 184 more bytes> } } 2023-09-14 20:08:17.541 WARN Result data for command not received { stationSN: 'T8420N6021202007', message: { sequence: 3, commandType: 1103, nestedCommandType: undefined, channel: 255, acknowledged: true, retries: 1, returnCode: -133, data: <Buffer d1 00 00 03 58 5a 59 48 4f 04 04 00 00 00 01 00 ff 00 00 00 ff 00 00 00> } }
Same problem here with brand new T8214. T8134 streaming works flawless. Any update on this issue?
Describe the bug
Starting the RTSP Stream by clicking the "Start RTSP Stream" button changes the "Stream Status" from IDLE to PREPARING. However, it stays in that state and the camera never starts showing a picture.
At the same time, the camera is configured to provide an RTSP stream for my NAS. Accessing that stream with an ordinary
camera
entity shows me a live stream in HA.To reproduce
Steps to reproduce the behavior:
Expected behavior
Camera should show stream and status should reflect this.
Additional information
Go to Settings -> System -> Repairs -> Click on 3 dots (...) -> System Information and get Version and Installation Type to below fields;
Hardware Information;
Camera Model: T8410
Live Streaming Protocol (RTSP/P2P): RTSP
Debug Logs from Home Assistant (https://github.com/fuatakgun/eufy_security/discussions/624)
Logs from Eufy Security Add-on (either from Add-ons page of Home Assistant or Docker output):
Would you share your device with me in case further debugging required? (Yes/No): maybe
Additional context It used to work in the past, but I cannot remember which version of HA or which version of add-on or integration. I did try full removal of integration and add-on including restart of HA.