Problema con la integración externa de tapo

Hola @Will_71. Gracias por el desarrollo de esta integración.

La he instalado, configurado mi acceso Tapo y las credenciales RTSP de mis 8 cámaras, y la fase de descubrimiento ha ido bien.
Pero cuando voy a Dispositivos y quiero definir la habitación, tengo un problema: la primera configuración de la habitación se realiza correctamente, y la segunda configuración de la habitación se queda en bucle, y Gladys se vuelve indisponible (los dashboards ya no se muestran, las escenas dejan de activarse…). Tengo que hacer un reinicio del contenedor docker gladys para solucionarlo.

No hay registros extraños en el contenedor Gladys, y en los registros de tu contenedor, observo esto:

2026-08-23T10:10:47.792708637Z [2026-08-23T10:10:47.791Z] [WARN] Refreshing the image of "Escalier extérieur" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:10:47.793492248Z [2026-08-23T10:10:47.792Z] [WARN] Refreshing the image of "Fontaine" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:10:47.794053677Z [2026-08-23T10:10:47.793Z] [WARN] Refreshing the image of "Parking" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:10:47.794636457Z [2026-08-23T10:10:47.793Z] [WARN] Refreshing the image of "Salle à manger" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:10:47.795546460Z [2026-08-23T10:10:47.794Z] [WARN] Refreshing the image of "Serre de jardin" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:10:47.795777179Z [2026-08-23T10:10:47.795Z] [WARN] Refreshing the image of "Sous-sol" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:10:47.797371478Z [2026-08-23T10:10:47.795Z] [WARN] Refreshing the image of "Terrain arrière" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:10:47.797770565Z [2026-08-23T10:10:47.796Z] [WARN] Refreshing the image of "Terrasse" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:11:47.871432440Z [2026-08-23T10:11:47.870Z] [WARN] Refreshing the image of "Escalier extérieur" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:11:47.871635334Z [2026-08-23T10:11:47.870Z] [WARN] Refreshing the image of "Fontaine" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:11:47.871750538Z [2026-08-23T10:11:47.871Z] [WARN] Refreshing the image of "Parking" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:11:47.872570025Z [2026-08-23T10:11:47.871Z] [WARN] Refreshing the image of "Salle à manger" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:11:47.872707254Z [2026-08-23T10:11:47.871Z] [WARN] Refreshing the image of "Serre de jardin" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:11:47.872802557Z [2026-08-23T10:11:47.872Z] [WARN] Refreshing the image of "Sous-sol" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:11:47.873067290Z [2026-08-23T10:11:47.872Z] [WARN] Refreshing the image of "Terrain arrière" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:11:47.873163280Z [2026-08-23T10:11:47.872Z] [WARN] Refreshing the image of "Terrasse" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:12:47.891471903Z [2026-08-23T10:12:47.890Z] [WARN] Refreshing the image of "Escalier extérieur" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:12:47.891679134Z [2026-08-23T10:12:47.891Z] [WARN] Refreshing the image of "Fontaine" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:12:47.892290065Z [2026-08-23T10:12:47.891Z] [WARN] Refreshing the image of "Parking" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:12:47.892937110Z [2026-08-23T10:12:47.892Z] [WARN] Refreshing the image of "Salle à manger" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:12:47.893501289Z [2026-08-23T10:12:47.892Z] [WARN] Refreshing the image of "Serre de jardin" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:12:47.894084669Z [2026-08-23T10:12:47.893Z] [WARN] Refreshing the image of "Sous-sol" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:12:47.895005284Z [2026-08-23T10:12:47.894Z] [WARN] Refreshing the image of "Terrain arrière" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:12:47.895557189Z [2026-08-23T10:12:47.895Z] [WARN] Refreshing the image of "Terrasse" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:13:47.964607841Z [2026-08-23T10:13:47.963Z] [WARN] Refreshing the image of "Escalier extérieur" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:13:47.965032779Z [2026-08-23T10:13:47.964Z] [WARN] Refreshing the image of "Fontaine" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:13:47.965576708Z [2026-08-23T10:13:47.965Z] [WARN] Refreshing the image of "Parking" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:13:47.966097611Z [2026-08-23T10:13:47.965Z] [WARN] Refreshing the image of "Salle à manger" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:13:47.966566050Z [2026-08-23T10:13:47.966Z] [WARN] Refreshing the image of "Serre de jardin" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:13:47.967452552Z [2026-08-23T10:13:47.966Z] [WARN] Refreshing the image of "Sous-sol" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:13:47.967555768Z [2026-08-23T10:13:47.967Z] [WARN] Refreshing the image of "Terrain arrière" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:13:47.967963005Z [2026-08-23T10:13:47.967Z] [WARN] Refreshing the image of "Terrasse" failed: TAPO_CAMERA_IP_UNKNOWN
2026-08-23T10:40:13.726568019Z [2026-08-23T10:40:13.554Z] [WARN] [gladys-sdk] connection to Gladys lost (close code 1006)
2026-08-23T10:40:13.739908017Z [2026-08-23T10:40:13.717Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 1000 ms (attempt 1)
2026-08-23T10:40:15.311763913Z [2026-08-23T10:40:15.310Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
2026-08-23T10:40:15.322077421Z [2026-08-23T10:40:15.321Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 2000 ms (attempt 2)
2026-08-23T10:40:17.348959040Z [2026-08-23T10:40:17.348Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
2026-08-23T10:40:17.353507326Z [2026-08-23T10:40:17.352Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 4000 ms (attempt 3)
2026-08-23T10:40:21.356805646Z [2026-08-23T10:40:21.355Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
2026-08-23T10:40:21.356906387Z [2026-08-23T10:40:21.356Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 8000 ms (attempt 4)
2026-08-23T10:40:29.365714124Z [2026-08-23T10:40:29.365Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
2026-08-23T10:40:29.366164813Z [2026-08-23T10:40:29.365Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 16000 ms (attempt 5)
2026-08-23T10:40:45.373092465Z [2026-08-23T10:40:45.371Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
2026-08-23T10:40:45.373164754Z [2026-08-23T10:40:45.372Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 32000 ms (attempt 6)
2026-08-23T10:41:17.375942606Z [2026-08-23T10:41:17.375Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
2026-08-23T10:41:17.377935153Z [2026-08-23T10:41:17.376Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 60000 ms (attempt 7)
2026-08-23T10:42:17.380999051Z [2026-08-23T10:42:17.380Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
2026-08-23T10:42:17.381172943Z [2026-08-23T10:42:17.380Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 60000 ms (attempt 8)
2026-08-23T10:42:47.300100567Z [2026-08-23T10:42:47.299Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
2026-08-23T10:42:47.304107400Z [2026-08-23T10:42:47.301Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 1000 ms (attempt 1)
2026-08-23T10:42:48.314517142Z [2026-08-23T10:42:48.310Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
2026-08-23T10:42:48.318312056Z [2026-08-23T10:42:48.315Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 2000 ms (attempt 2)
2026-08-23T10:42:50.321046188Z [2026-08-23T10:42:50.320Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
2026-08-23T10:42:50.321956177Z [2026-08-23T10:42:50.321Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 4000 ms (attempt 3)
2026-08-23T10:42:54.330128736Z [2026-08-23T10:42:54.328Z] [ERROR] [gladys-sdk] websocket error on ws://172.30.0.1:80: connect ECONNREFUSED 172.30.0.1:80
2026-08-23T10:42:54.330228552Z [2026-08-23T10:42:54.329Z] [WARN] [gladys-sdk] not connected to Gladys (ws://172.30.0.1:80), retrying in 8000 ms (attempt 4)

¿Hay algo que pueda corregir por mi parte? ¿Tienes que ajustar algo en la extensión?

Hola,

He tenido el mismo comportamiento en otra integración externa al renombrar varios dispositivos. ¿Es un problema de la integración o del núcleo?

Yo diría que es el núcleo, porque tuve el mismo problema con overkiz.

Sin embargo, no sé si ya está en producción o no.

Hola, ¿alguien ha logrado obtener el flujo de video en una Tapo C660? Las cámaras están bien descubiertas pero no se muestra ninguna imagen. Gracias de antemano.

Hola @JKBS64, ¿qué tipo de cámara es?
¿Has activado la cuenta RTSP en la aplicación TAPO?

Si es de batería y solar, TAPO no expone oficialmente las imágenes en RTSP. Lo he logrado pasando por HTTP, pero he limitado drásticamente las capturas de imágenes, ya que la autonomía de la batería disminuye demasiado rápido, y el panel solar que viene con la cámara no es suficiente para cargarla.

Hola, es exactamente eso, con batería y además solar. Me imaginaba que tenía un problema con el RSTP. ¿Y cómo lo has hecho en http?

ya está presente en la integración, pero puede que no sea posible con tu cámara. Hay parámetros en la integración dedicados a la batería/cámara solar y hay que ajustar los niveles de batería y el tiempo entre cada solicitud

Puedes intentar forzar haciendo clic en el botón

Gracias por la información, pero sigue sin funcionar. Seguiré investigando. Si encuentro la solución, dejaré un comentario.

Puede que la solución para mi cámara no sea la misma para ti. Porque yo tengo una C610.

Solo por información, ¿cuál es tu nivel de batería actualmente?

Manténme informado y haré algunas investigaciones.

Hola, el nivel está casi siempre al 100% incluso en Bretaña ahora hay sol permanente :slight_smile:

Vale, te aviso si encuentro cómo recuperar la imagen de tu cámara.

Hola Will_71

Creo que no hay esperanza para mis Tapo C660

Por qué HTTP no funciona:

  1. El modo de suspensión permanente: La cámara está en modo de suspensión el 99 % del tiempo. Solo se activa durante unos segundos cuando un humano o un vehículo pasa por delante de su sensor térmico (PIR). Un flujo HTTP requeriría una conexión abierta continua, lo cual es incompatible con este funcionamiento. [1]
  2. El cifrado nativo: Las comunicaciones locales entre la aplicación oficial y la cámara con batería utilizan un protocolo privado de TP-Link completamente cifrado. Los desarrolladores de terceros han intentado descifrar estos flujos (a través de proyectos como go2rtc o Home Assistant), pero los modelos más recientes integran una seguridad reforzada (X-If-Encrypt) que bloquea las solicitudes HTTP tradicionales. [1]

En ese caso, si han reforzado su protocolo, efectivamente no va a ser posible.