fuatakgun / eufy_security

Home Assistant integration to manage Eufy Security devices as cameras, home base stations, doorbells, motion and contact sensors.
847 stars 73 forks source link

Doorbell T8222-Z: I don't see the camera images through the integration. #920

Closed pedroct closed 9 months ago

pedroct commented 10 months ago

Please check existing (open or closed) issues before creating a new one. (https://github.com/fuatakgun/eufy_security/issues?q=is%3Aissue+)

If this is not an issue, you can use Discussions (https://github.com/fuatakgun/eufy_security/discussions) section.

Describe the bug

I don't see the camera images through the integration.

To reproduce

Steps to reproduce the behavior: I have a doorbell model T8222-Z, using a different application user to avoid duplicate connection problems. My addon is working, but generating the messages below. I can see all the entities in the integration, but the camera image does not appear.

Expected behavior

A clear and concise description of what you expected to happen.

Additional information

Go to Settings -> System -> Repairs -> Click on 3 dots (...) -> System Information and get Version and Installation Type to below fields;

Hardware Information;

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-08 01:33:13.523 INFO Eufy Security server listening on host 0.0.0.0, port 3000 2023-09-08 01:33:14.662 INFO Requested verification code for 2FA 2023-09-08 01:37:21.250 INFO Client disconnected with ip: 127.0.0.1 port: 39256 code: 1000 reason: Normal Closure 2023-09-08 01:37:46.835 INFO 2FA authentication successfully done. Device trusted. 2023-09-08 01:37:48.926 INFO Connected to station XXXXXX on host 192.168.1.XX and port 17935 2023-09-08 01:37:49.270 ERROR JSON parse error { error: { message: 'SyntaxError: Unexpected end of JSON input', stacktrace: 'SyntaxError: Unexpected end of JSON input\n' + ' at JSON.parse ()\n' + ' at parseJSON (/usr/src/app/node_modules/eufy-security-client/build/utils.js:154:21)\n' + ' at Function.readValue (/usr/src/app/node_modules/eufy-security-client/build/http/parameter.js:50:63)\n' + ' at BatteryDoorbellCamera.updateRawProperty (/usr/src/app/node_modules/eufy-security-client/build/http/device.js:127:57)\n' + ' at /usr/src/app/node_modules/eufy-security-client/build/http/device.js:54:22\n' + ' at Array.forEach ()\n' + ' at BatteryDoorbellCamera.update (/usr/src/app/node_modules/eufy-security-client/build/http/device.js:53:35)\n' + ' at BatteryDoorbellCamera.initializeState (/usr/src/app/node_modules/eufy-security-client/build/http/device.js:29:14)\n' + ' at BatteryDoorbellCamera.initialize (/usr/src/app/node_modules/eufy-security-client/build/http/device.js:36:14)\n' + ' at /usr/src/app/node_modules/eufy-security-client/build/eufysecurity.js:638:32' }, data: '{"r' } 2023-09-08 01:37:49.283 WARN Non-parsable parameter value received from eufy cloud. Will be ignored. { type: 2708, value: '{"r' } 2023-09-08 01:37:49.287 ERROR JSON parse error { error: { message: 'SyntaxError: Unexpected end of JSON input', stacktrace: 'SyntaxError: Unexpected end of JSON input\n' + ' at JSON.parse ()\n' + ' at parseJSON (/usr/src/app/node_modules/eufy-security-client/build/utils.js:154:21)\n' + ' at Function.readValue (/usr/src/app/node_modules/eufy-security-client/build/http/parameter.js:50:63)\n' + ' at BatteryDoorbellCamera.updateRawProperty (/usr/src/app/node_modules/eufy-security-client/build/http/device.js:127:57)\n' + ' at /usr/src/app/node_modules/eufy-security-client/build/http/device.js:54:22\n' + ' at Array.forEach ()\n' + ' at BatteryDoorbellCamera.update (/usr/src/app/node_modules/eufy-security-client/build/http/device.js:53:35)\n' + ' at BatteryDoorbellCamera.initializeState (/usr/src/app/node_modules/eufy-security-client/build/http/device.js:29:14)\n' + ' at BatteryDoorbellCamera.initialize (/usr/src/app/node_modules/eufy-security-client/build/http/device.js:36:14)\n' + ' at /usr/src/app/node_modules/eufy-security-client/build/eufysecurity.js:638:32' }, data: '{"r' } 2023-09-08 01:37:49.289 WARN Non-parsable parameter value received from eufy cloud. Will be ignored. { type: 2707, value: '{"r' } 2023-09-08 01:38:03.052 INFO Push notification connection successfully established

Additional context

Eufy Security - Error Error: <Task finished name='Task-2899' coro=<WebSocketClient._process_messages() done, defined at /config/custom_components/eufy_security/eufy_security_api/web_socket_client.py:62> result=None>

Logs depuration

2023-09-07 22:50:28.651 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration robovac which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-09-07 22:50:28.652 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration smartthinq_sensors which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-09-07 22:50:28.653 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration bodymiscale which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-09-07 22:50:28.653 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration xiaomi_airfryer which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-09-07 22:50:28.653 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-09-07 22:50:28.654 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ble_monitor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-09-07 22:50:28.654 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration eufy_security which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-09-07 22:50:28.655 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration webrtc which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-09-07 22:50:28.655 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration alexa_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-09-07 22:50:40.796 WARNING (MainThread) [homeassistant.components.history] The 'exclude' option near /config/configuration.yaml:56 is deprecated, please remove it from your configuration 2023-09-07 22:50:43.291 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] on_open - executed 2023-09-07 22:50:43.292 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - server - EventSourceType.server - set_api_schema - {'schema_version': 18} - {'schemaVersion': 18} 2023-09-07 22:50:43.292 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'schemaVersion': 18, 'command': 'set_api_schema', 'messageId': 'set_api_schema.309ba9f14b3c4b5087ca1dc0b8c83ca7'} 2023-09-07 22:50:43.292 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'schemaVersion': 18, 'command': 'set_api_schema', 'messageId': 'set_api_schema.309ba9f14b3c4b5087ca1dc0b8c83ca7'} 2023-09-07 22:50:43.294 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'version', 'driverVersion': '2.8.1', 'serverVersion': '1.6.4', 'minSchemaVersion': 0, 'maxSchemaVersion': 19} 2023-09-07 22:50:43.294 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'set_api_schema.309ba9f14b3c4b5087ca1dc0b8c83ca7', 'result': {}} 2023-09-07 22:50:43.294 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _set_products 1 2023-09-07 22:50:43.294 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - server - EventSourceType.server - start_listening - {} - {} 2023-09-07 22:50:43.294 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'command': 'start_listening', 'messageId': 'start_listening.72d42f879d8149fb930486b1fb3e1b55'} 2023-09-07 22:50:43.294 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'command': 'start_listening', 'messageId': 'start_listening.72d42f879d8149fb930486b1fb3e1b55'} 2023-09-07 22:50:43.297 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'start_listening.72d42f879d8149fb930486b1fb3e1b55', 'result': {'state': {'driver': {'version': '2.8.1', 'connected': True, 'pushConnected': True, 'mqttConnected': False}, 'stations': ['T8020P1021211E73'], 'devices': ['T8222P6021211053']}}} 2023-09-07 22:50:43.297 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _set_products 2 2023-09-07 22:50:43.297 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.product - device.get_properties - {'domain': 'device', 'serial_no': 'T8222P6021211053'} - {'serialNumber': 'T8222P6021211053'} 2023-09-07 22:50:43.297 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8222P6021211053', 'command': 'device.get_properties', 'messageId': 'device.get_properties.152a2fb9914242b1a9eae08b10a0c368'} 2023-09-07 22:50:43.298 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8222P6021211053', 'command': 'device.get_properties', 'messageId': 'device.get_properties.152a2fb9914242b1a9eae08b10a0c368'} 2023-09-07 22:50:43.300 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.get_properties.152a2fb9914242b1a9eae08b10a0c368', 'result': {'serialNumber': 'T8222P6021211053', 'properties': {'name': 'Vídeo Porteiro', 'model': 'T8222-Z', 'serialNumber': 'T8222P6021211053', 'hardwareVersion': 'T8222-Z', 'softwareVersion': '3.6.8', 'type': 16, 'stationSerialNumber': 'T8020P1021211E73', 'battery': 71, 'batteryTemperature': 31, 'lastChargingDays': -1, 'lastChargingTotalEvents': 67, 'lastChargingRecordedEvents': 67, 'lastChargingFalseEvents': 0, 'batteryUsageLastWeek': 9, 'wifiRssi': -77, 'wifiSignalLevel': 2, 'enabled': True, 'autoNightvision': True, 'statusLed': True, 'motionDetection': True, 'motionDetectionType': 0, 'motionDetectionSensitivity': 3, 'motionDetected': False, 'personDetected': False, 'personName': '', 'watermark': 2, 'state': 1, 'ringing': False, 'speakerVolume': 100, 'ringtoneVolume': 80, 'audioRecording': True, 'powerWorkingMode': 0, 'chargingStatus': 2, 'recordingEndClipMotionStops': False, 'recordingClipLength': 60, 'recordingRetriggerInterval': 5, 'videoStreamingQuality': 0, 'videoWdr': True, 'chimeIndoor': False, 'chimeHomebase': True, 'chimeHomebaseRingtoneVolume': 26, 'chimeHomebaseRingtoneType': 0, 'notificationType': 1, 'notificationRing': True, 'notificationMotion': True, 'snoozeTime': 0, 'snoozeStartTime': 0, 'snoozeHomebase': False, 'snoozeMotion': False, 'snoozeChime': False, 'picture': None}}} 2023-09-07 22:50:43.301 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.product - device.get_properties_metadata - {'domain': 'device', 'serial_no': 'T8222P6021211053'} - {'serialNumber': 'T8222P6021211053'} 2023-09-07 22:50:43.301 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8222P6021211053', 'command': 'device.get_properties_metadata', 'messageId': 'device.get_properties_metadata.76e4b8ae63084371b6f2e4f88c70a176'} 2023-09-07 22:50:43.301 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8222P6021211053', 'command': 'device.get_properties_metadata', 'messageId': 'device.get_properties_metadata.76e4b8ae63084371b6f2e4f88c70a176'} 2023-09-07 22:50:43.462 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.get_properties_metadata.76e4b8ae63084371b6f2e4f88c70a176', 'result': {'serialNumber': 'T8222P6021211053', '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 (T8900)', '3': 'Floodlight', '4': 'Camera E', '5': 'Doorbell', '7': 'Battery Doorbell', '8': 'Camera 2', '9': 'eufyCam S210 (eufyCam 2C)', '10': 'Motion Sensor (T8910)', '11': 'Keypad', '14': 'eufyCam S221 (eufyCam 2 Pro)', '15': 'eufyCam S220 (eufyCam 2C Pro)', '16': 'Battery Doorbell 2', '18': 'HomeBase S380 (HomeBase 3; T8030)', '19': 'eufyCam S330 (eufyCam 3)', '23': 'eufyCam S300 (eufyCam 3C)', '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': 'Retrofit Smart Lock E110 (T8503)', '55': 'Video Smart Lock S330 (T8530)', '56': 'Lock 85A3', '57': 'Lock 8592', '58': 'Retrofit Smart Lock E130 (T8504)', '60': 'Solo Camera Spotlight 1080p', '61': 'Solo Camera Spotlight 2k', '62': 'Solo Camera Spotlight Solar', '90': 'Smart Drop S300 (T8790)', '91': 'Video Doorbell Dual', '93': 'Video Doorbell Dual (Wired)', '100': 'Indoor Cost Down Camera', '101': 'Camera Gun', '102': 'Camera Snail', '110': 'Starlight 4G LTE', '131': 'Camera Garage T8453 Common', '132': 'Garage-Control Cam E110 (T8452)', '133': 'Garage-Control Cam E120 (T8453)', '140': 'Smart Safe S10 (T7400)', '141': 'Smart Safe S12 (T7401)', '142': 'Smart Safe T7402', '143': 'Smart Safe T7403', '151': 'Wired Wall Light Cam S100 (T84A1)', '157': 'SmartTrack Link (T87B0)', '159': 'SmartTrack Card (T87B2)', '180': 'Lock T8502 / T8506', '10005': 'Solar Wall Light Cam S120 (T81A0)'}}, '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'}, 'battery': {'key': 1101, 'name': 'battery', 'label': 'Battery percentage', 'readable': True, 'writeable': False, 'type': 'number', 'unit': '%', 'min': 0, 'max': 100}, 'batteryTemperature': {'key': 1138, 'name': 'batteryTemperature', 'label': 'Battery Temperature', 'readable': True, 'writeable': False, 'type': 'number', 'unit': '°C'}, 'wifiRssi': {'key': 1142, 'name': 'wifiRssi', 'label': 'Wifi RSSI', 'readable': True, 'writeable': False, 'type': 'number', 'unit': 'dBm'}, 'wifiSignalLevel': {'key': 'custom_wifiSignalLevel', 'name': 'wifiSignalLevel', 'label': 'Wifi Signal Level', 'readable': True, 'writeable': False, 'type': 'number', 'min': 0, 'max': 4, 'states': {'0': 'No signal', '1': 'Weak', '2': 'Normal', '3': 'Strong', '4': 'Full'}}, 'enabled': {'key': 99904, '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'}, 'statusLed': {'key': 1716, 'name': 'statusLed', 'label': 'Status LED', 'readable': True, 'writeable': True, 'type': 'boolean', 'commandId': 6014}, 'motionDetection': {'key': 1011, 'name': 'motionDetection', 'label': 'Motion Detection', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'watermark': {'key': 1214, 'name': 'watermark', 'label': 'Watermark', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'1': 'Off', '2': 'On'}}, 'state': {'key': 1131, 'name': 'state', 'label': 'State', 'readable': True, 'writeable': False, 'type': 'number', 'states': {'0': 'Offline', '1': 'Online', '2': 'Manually disabled', '3': 'Offline low battery', '4': 'Remove and readd', '5': 'Reset and readd'}}, 'lastChargingDays': {'key': 'charging_days', 'name': 'lastChargingDays', 'label': 'Days since last charging', 'readable': True, 'writeable': False, 'type': 'number', 'default': 0}, 'lastChargingFalseEvents': {'key': 'charging_missing', 'name': 'lastChargingFalseEvents', 'la 2023-09-07 22:50:43.462 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.product - device.get_commands - {'domain': 'device', 'serial_no': 'T8222P6021211053'} - {'serialNumber': 'T8222P6021211053'} 2023-09-07 22:50:43.462 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8222P6021211053', 'command': 'device.get_commands', 'messageId': 'device.get_commands.906bd498fa90427d87b0c6adddbe6494'} 2023-09-07 22:50:43.462 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8222P6021211053', 'command': 'device.get_commands', 'messageId': 'device.get_commands.906bd498fa90427d87b0c6adddbe6494'} 2023-09-07 22:50:43.540 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.get_commands.906bd498fa90427d87b0c6adddbe6494', 'result': {'serialNumber': 'T8222P6021211053', 'commands': ['start_livestream', 'stop_livestream', 'quick_response', 'start_download', 'cancel_download', 'start_talkback', 'stop_talkback', 'snooze']}} 2023-09-07 22:50:43.543 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.device - device.is_rtsp_livestreaming - {'serial_no': 'T8222P6021211053'} - {'serialNumber': 'T8222P6021211053'} 2023-09-07 22:50:43.543 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8222P6021211053', 'command': 'device.is_rtsp_livestreaming', 'messageId': 'device.is_rtsp_livestreaming.7e37b905f6804fb89213ef10be20f7cc'} 2023-09-07 22:50:43.543 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8222P6021211053', 'command': 'device.is_rtsp_livestreaming', 'messageId': 'device.is_rtsp_livestreaming.7e37b905f6804fb89213ef10be20f7cc'} 2023-09-07 22:50:43.549 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.is_rtsp_livestreaming.7e37b905f6804fb89213ef10be20f7cc', 'result': {'serialNumber': 'T8222P6021211053', 'livestreaming': False}} 2023-09-07 22:50:43.550 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.device - device.is_livestreaming - {'serial_no': 'T8222P6021211053'} - {'serialNumber': 'T8222P6021211053'} 2023-09-07 22:50:43.550 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8222P6021211053', 'command': 'device.is_livestreaming', 'messageId': 'device.is_livestreaming.81fda3adb516417d9c97de341d89b285'} 2023-09-07 22:50:43.550 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8222P6021211053', 'command': 'device.is_livestreaming', 'messageId': 'device.is_livestreaming.81fda3adb516417d9c97de341d89b285'} 2023-09-07 22:50:43.554 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.is_livestreaming.81fda3adb516417d9c97de341d89b285', 'result': {'serialNumber': 'T8222P6021211053', 'livestreaming': False}} 2023-09-07 22:50:43.554 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - device - EventSourceType.device - device.get_voices - {'domain': 'device', 'serial_no': 'T8222P6021211053'} - {'serialNumber': 'T8222P6021211053'} 2023-09-07 22:50:43.554 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8222P6021211053', 'command': 'device.get_voices', 'messageId': 'device.get_voices.ff7bb9826a054d41ac42121e3351c20c'} 2023-09-07 22:50:43.554 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8222P6021211053', 'command': 'device.get_voices', 'messageId': 'device.get_voices.ff7bb9826a054d41ac42121e3351c20c'} 2023-09-07 22:50:44.104 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'device.get_voices.ff7bb9826a054d41ac42121e3351c20c', 'result': {'serialNumber': 'T8222P60XXXXX', 'voices': {'1': {'voice_id': 1, 'user_id': 'c45aae16971fa55709146edc9275f2433f2c8e9d', 'desc': 'Excuse me, can I help you', 'device_sn': '', 'voice_link': 'https://zhixin-security-pr.s3.us-west-2.amazonaws.com/voice/2019/06/24/mobile/T8200N011917YYY/urcrubXComwHnirl.Excuse%20me%2C%20can%20I%20help%20you.wav?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJYLV2KOLW6PU4FSA%2F20230908%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230908T015044Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=478465e04f1874120108746c9eb6b98312b76aa176c055dca64d5ac6e60c419e', 'voice_type': 0, 'key_prefix': '/voice/2019/06/24/mobile/T8200N0119170068/urcrubXComwHnirl.Excuse me, can I help you.wav'}, '2': {'voice_id': 2, 'user_id': 'c45aae16971fa55709146edc9275f2433f2c8e9d', 'desc': 'Please leave it at the door', 'device_sn': '', 'voice_link': 'https://zhixin-security-pr.s3.us-west-2.amazonaws.com/voice/2019/06/24/mobile/T8200N0119170068/puOOgwHedpAmA3EL.Please%20leave%20it%20at%20the%20door.wav?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJYLV2KOLW6PU4FSA%2F20230908%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230908T015044Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=929e8b373a79d04df329d748d56f113dba5d9fa8826cbbd2abf7610954f6af6a', 'voice_type': 0, 'key_prefix': '/voice/2019/06/24/mobile/T8200N0119170068/puOOgwHedpAmA3EL.Please leave it at the door.wav'}, '3': {'voice_id': 3, 'user_id': 'c45aae16971fa55709146edc9275f2433f2c8e9d', 'desc': 'We will be right there ', 'device_sn': '', 'voice_link': 'https://zhixin-security-pr.s3.us-west-2.amazonaws.com/voice/2019/06/24/mobile/T8200N0119170068/WqkGKQH2r7JiMCOW.We%20will%20be%20right%20there.wav?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJYLV2KOLW6PU4FSA%2F20230908%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20230908T015044Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=16a3f6ffab684717d183aef25cee0a3cc2f19a21072ad8158265313601e2ce2b', 'voice_type': 0, 'key_prefix': '/voice/2019/06/24/mobile/T8200N0119170068/WqkGKQH2r7JiMCOW.We will be right there.wav'}}}} 2023-09-07 22:50:44.105 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _set_properties -T8222P6021211053 - {'name': 'Vídeo Porteiro', 'model': 'T8222-Z', 'serialNumber': 'T8222P6021211053', 'hardwareVersion': 'T8222-Z', 'softwareVersion': '3.6.8', 'type': 16, 'stationSerialNumber': 'T8020P1021211E73', 'battery': 71, 'batteryTemperature': 31, 'lastChargingDays': -1, 'lastChargingTotalEvents': 67, 'lastChargingRecordedEvents': 67, 'lastChargingFalseEvents': 0, 'batteryUsageLastWeek': 9, 'wifiRssi': -77, 'wifiSignalLevel': 2, 'enabled': True, 'autoNightvision': True, 'statusLed': True, 'motionDetection': True, 'motionDetectionType': 0, 'motionDetectionSensitivity': 3, 'motionDetected': False, 'personDetected': False, 'personName': '', 'watermark': 2, 'state': 1, 'ringing': False, 'speakerVolume': 100, 'ringtoneVolume': 80, 'audioRecording': True, 'powerWorkingMode': 0, 'chargingStatus': 2, 'recordingEndClipMotionStops': False, 'recordingClipLength': 60, 'recordingRetriggerInterval': 5, 'videoStreamingQuality': 0, 'videoWdr': True, 'chimeIndoor': False, 'chimeHomebase': True, 'chimeHomebaseRingtoneVolume': 26, 'chimeHomebaseRingtoneType': 0, 'notificationType': 1, 'notificationRing': True, 'notificationMotion': True, 'snoozeTime': 0, 'snoozeStartTime': 0, 'snoozeHomebase': False, 'snoozeMotion': False, 'snoozeChime': False, 'picture': None} 2023-09-07 22:50:44.106 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] None 2023-09-07 22:50:44.107 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] url - StreamProvider.P2P - rtsp://127.0.0.1:8554/T8222P6021211053 2023-09-07 22:50:44.107 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - station - EventSourceType.product - station.get_properties - {'domain': 'station', 'serial_no': 'T8020P1021211E73'} - {'serialNumber': 'T8020P1021211E73'} 2023-09-07 22:50:44.107 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8020P1021211E73', 'command': 'station.get_properties', 'messageId': 'station.get_properties.30f7b743ecb14bc9bc58b984f93a83cc'} 2023-09-07 22:50:44.107 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8020P1021211E73', 'command': 'station.get_properties', 'messageId': 'station.get_properties.30f7b743ecb14bc9bc58b984f93a83cc'} 2023-09-07 22:50:44.111 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'station.get_properties.30f7b743ecb14bc9bc58b984f93a83cc', 'result': {'serialNumber': 'T8020P1021211E73', 'properties': {'name': 'Companhia', 'model': 'T8020', 'serialNumber': 'T8020P1021211E73', 'type': 0, 'hardwareVersion': 'P0', 'softwareVersion': '3.2.9.5m_0.2', 'macAddress': '8C:85:80:A6:C3:28', 'timeFormat': 1, 'alarmVolume': 26, 'alarm': False, 'alarmType': 0, 'alarmArmed': False, 'alarmArmDelay': 0, 'alarmDelay': 0, 'alarmDelayType': 0, 'notificationStartAlarmDelay': True, 'lanIpAddress': '192.168.1.30', 'notificationSwitchModeSchedule': True, 'notificationSwitchModeGeofence': True, 'notificationSwitchModeApp': True, 'notificationSwitchModeKeypad': True, 'alarmTone': 1, 'promptVolume': 16, 'sdStatus': 4, 'guardMode': 1, 'sdCapacity': 0, 'sdCapacityAvailable': 0, 'currentMode': 1}}} 2023-09-07 22:50:44.111 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - station - EventSourceType.product - station.get_properties_metadata - {'domain': 'station', 'serial_no': 'T8020P1021211E73'} - {'serialNumber': 'T8020P1021211E73'} 2023-09-07 22:50:44.111 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8020P1021211E73', 'command': 'station.get_properties_metadata', 'messageId': 'station.get_properties_metadata.4c50da3fd4384347a4b84544fb65b385'} 2023-09-07 22:50:44.111 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8020P1021211E73', 'command': 'station.get_properties_metadata', 'messageId': 'station.get_properties_metadata.4c50da3fd4384347a4b84544fb65b385'} 2023-09-07 22:50:44.114 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'station.get_properties_metadata.4c50da3fd4384347a4b84544fb65b385', 'result': {'serialNumber': 'T8020P1021211E73', '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 (T8900)', '3': 'Floodlight', '4': 'Camera E', '5': 'Doorbell', '7': 'Battery Doorbell', '8': 'Camera 2', '9': 'eufyCam S210 (eufyCam 2C)', '10': 'Motion Sensor (T8910)', '11': 'Keypad', '14': 'eufyCam S221 (eufyCam 2 Pro)', '15': 'eufyCam S220 (eufyCam 2C Pro)', '16': 'Battery Doorbell 2', '18': 'HomeBase S380 (HomeBase 3; T8030)', '19': 'eufyCam S330 (eufyCam 3)', '23': 'eufyCam S300 (eufyCam 3C)', '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': 'Retrofit Smart Lock E110 (T8503)', '55': 'Video Smart Lock S330 (T8530)', '56': 'Lock 85A3', '57': 'Lock 8592', '58': 'Retrofit Smart Lock E130 (T8504)', '60': 'Solo Camera Spotlight 1080p', '61': 'Solo Camera Spotlight 2k', '62': 'Solo Camera Spotlight Solar', '90': 'Smart Drop S300 (T8790)', '91': 'Video Doorbell Dual', '93': 'Video Doorbell Dual (Wired)', '100': 'Indoor Cost Down Camera', '101': 'Camera Gun', '102': 'Camera Snail', '110': 'Starlight 4G LTE', '131': 'Camera Garage T8453 Common', '132': 'Garage-Control Cam E110 (T8452)', '133': 'Garage-Control Cam E120 (T8453)', '140': 'Smart Safe S10 (T7400)', '141': 'Smart Safe S12 (T7401)', '142': 'Smart Safe T7402', '143': 'Smart Safe T7403', '151': 'Wired Wall Light Cam S100 (T84A1)', '157': 'SmartTrack Link (T87B0)', '159': 'SmartTrack Card (T87B2)', '180': 'Lock T8502 / T8506', '10005': 'Solar Wall Light Cam S120 (T81A0)'}}, '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': 1176, '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}, 'promptVolume': {'key': 1292, 'name': 'promptVolume', 'label': 'Prompt Volume', 'readable': True, 'writeable': True, 'type': 'number', 'min': 0, 'max': 26}, 'alarmVolume': {'key': 1235, 'name': 'alarmVolume', 'label': 'Alarm Volume', 'readable': True, 'writeable': True, 'type': 'number', 'min': 1, 'max': 26, 'default': 26}, 'alarmTone': {'key': 1281, 'name': 'alarmTone', 'label': 'Alarm Tone', 'readable': True, 'writeable': True, 'type': 'number', 'states': {'1': 'Alarm sound 1', '2': 'Alarm sound 2'}}, 'notificationSwitchModeSchedule': {'key': 1283, 'name': 'notificationSwitchModeSchedule', 'label': 'Notification Switch Mode Schedule', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'notificationSwitchModeGeofence': {'key': 1283, 'name': 'notificationSwitchModeGeofence', 'label': 'Notification Switch Mode Geofence', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'notificationSwitchModeApp': {'key': 1283, 'name': 'notificationSwitchModeApp', 'label': 'Notification Switch Mode App', 'readable': True, 'writeable': True, 'type': 'boolean'}, 'notificationSwitchModeKeypad': {'key': 1283, 'name': 'notificationSwitchModeKeypad', 'label': 'Notification Switch Mode Keypad', 'readable': True, 'writea 2023-09-07 22:50:44.115 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] domain - station - EventSourceType.product - station.get_commands - {'domain': 'station', 'serial_no': 'T8020P1021211E73'} - {'serialNumber': 'T8020P1021211E73'} 2023-09-07 22:50:44.115 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] {'serialNumber': 'T8020P1021211E73', 'command': 'station.get_commands', 'messageId': 'station.get_commands.20a1029579624ec1b4c62ecf48318f45'} 2023-09-07 22:50:44.115 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] send_message - {'serialNumber': 'T8020P1021211E73', 'command': 'station.get_commands', 'messageId': 'station.get_commands.20a1029579624ec1b4c62ecf48318f45'} 2023-09-07 22:50:44.116 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _on_message - {'type': 'result', 'success': True, 'messageId': 'station.get_commands.20a1029579624ec1b4c62ecf48318f45', 'result': {'serialNumber': 'T8020P1021211E73', 'commands': ['stationReboot', 'stationTriggerAlarmSound', 'stationChime', 'stationDownloadImage', 'stationDatabaseQueryLatestInfo', 'stationDatabaseQueryLocal', 'stationDatabaseCoundByDate', 'stationDatabaseDelete']}} 2023-09-07 22:50:44.116 DEBUG (MainThread) [custom_components.eufy_security.eufy_security_api] _set_properties -T8020P1021211E73 - {'name': 'Companhia', 'model': 'T8020', 'serialNumber': 'T8020P1021211E73', 'type': 0, 'hardwareVersion': 'P0', 'softwareVersion': '3.2.9.5m_0.2', 'macAddress': '8C:85:80:A6:C3:28', 'timeFormat': 1, 'alarmVolume': 26, 'alarm': False, 'alarmType': 0, 'alarmArmed': False, 'alarmArmDelay': 0, 'alarmDelay': 0, 'alarmDelayType': 0, 'notificationStartAlarmDelay': True, 'lanIpAddress': '192.168.1.30', 'notificationSwitchModeSchedule': True, 'notificationSwitchModeGeofence': True, 'notificationSwitchModeApp': True, 'notificationSwitchModeKeypad': True, 'alarmTone': 1, 'promptVolume': 16, 'sdStatus': 4, 'guardMode': 1, 'sdCapacity': 0, 'sdCapacityAvailable': 0, 'currentMode': 1} 2023-09-07 22:50:46.731 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for esp_geladeira @ 192.168.1.20: Error connecting to ('192.168.1.20', 6053): [Errno 113] Connect call failed ('192.168.1.20', 6053) (SocketAPIError) 2023-09-07 22:50:51.362 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({% set threshold = states('input_number.limite_de_bateria') %} {% set exclude = namespace(entity_id=[]) %} {% set result = namespace(sensors=[]) %} {% for state in states.sensor | rejectattr('attributes.device_class', 'undefined') | selectattr('attributes.device_class', '==', 'battery') %} {% if 0 <= state.state | int(-1) < threshold | int and not state.entity_id in exclude.entity_id and state.entity_id not in integration_entities("mobile_app") %} {% set result.sensors = result.sensors + [state.name ~ ' (' ~ state.state ~ '%)'] %} {% endif %} {% endfor %} {% for state in states.binary_sensor | rejectattr('attributes.device_class', 'undefined') | selectattr('attributes.device_class', '==', 'battery') | selectattr('state', '==', 'on') %} {% if not state.entity_id in exclude.entity_id %} {% set result.sensors = result.sensors + [state.name] %} {% endif %} {% endfor %} {{ result.sensors | join('\n') }}) renders=2> Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 568, in async_render render_result = _render_with_context(self.template, compiled, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2198, in _render_with_context return template.render(kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render self.environment.handle_exception() File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception raise rewrite_traceback_stack(source=source) File "