[BETA] App Android

¿Mi error 6 no se debe a las 4 segundos para obtener la respuesta?
¿Cuál es el límite con un tiempo de espera?

Hola @pyb,

Tengo la misma configuración que tú pero no puedo conectarme. Obtengo un código de error 1.

Mi configuración:

  • Dirección IP: vacía
  • Puerto: vacío
  • Dirección DNS: url_de_mon_site:port (sin https:// al principio)
  • HTTPS activado
  • Puerto: vacío

¿Has hecho algo más?

@LepetitGeek, muchas gracias por esta aplicación que será muy útil :slight_smile:

He configurado el tiempo de espera en 30s, así que el error no viene de ahí ^^
¿Has revisado bien tus datos de conexión?
¿Podrías hacerme un vídeo como @aiaalm desde el momento en que introduces tus parámetros hasta el momento en que aparece el error?

¡encuentro una manera de grabar mi pantalla y te lo hago!

@PhilippeMA el código de error 1 significa que estás en WiFi y que tus parámetros no son correctos… ¡normal, ya que los dejaste en blanco!

Ah… Efectivamente. Empezó a cargar pero, lamentablemente, la aplicación terminó por fallar :cry:

Edición: En acceso local con IP local y en acceso remoto con el DNS. El mismo comportamiento, la aplicación falla después de unos segundos de procesamiento. Luego, es imposible reiniciarla, falla directamente. He limpiado la caché para reiniciarla mientras encuentro una solución.

Android 7.1.1

A veces ocurre aleatoriamente que se produzca una excepción (me ha pasado 2 veces).
¿Puedes darme tu configuración por si vuelve a ocurrir?

Edición ¿Qué smartphone? Déjame tiempo para llegar a casa, guardar la compra y lo pruebo :risitas:
¿Puedes darme tu JSON devuelto por Gladys?

¿Dónde encuentro el JSON? No hay nada en los registros excepto « Acceso con token de usuario »

Mi teléfono es un Sony Xperia XZ

Con Postman

He descrito cómo hacerlo en este mensaje ^^

Aquí está el JSON devuelto por Gladys :slight_smile:

[
    {
        "name": "Corredor",
        "house": 1,
        "permission": null,
        "id": 2,
        "createdAt": "2017-02-04T23:45:40.000Z",
        "updatedAt": "2017-02-04T23:45:40.000Z",
        "deviceTypes": [
            {
                "name": "Detector de movimiento",
                "id": 134,
                "type": "motion",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 1,
                "max": 1,
                "display": 1,
                "sensor": 1,
                "identifier": "-30194",
                "device": 97,
                "service": "radioFrequency",
                "lastChanged": "2017-10-22T10:22:16.000Z",
                "lastValue": 1,
                "lastValueId": 81644
            },
            {
                "name": "Detector de movimiento",
                "id": 135,
                "type": "motion",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 1,
                "max": 1,
                "display": 1,
                "sensor": 1,
                "identifier": "-30208",
                "device": 98,
                "service": "radioFrequency",
                "lastChanged": "2017-10-22T08:24:20.000Z",
                "lastValue": 1,
                "lastValueId": 81393
            },
            {
                "name": "Sensor",
                "id": 145,
                "type": "motion",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 1,
                "max": 1,
                "display": 1,
                "sensor": 1,
                "identifier": "-30198",
                "device": 108,
                "service": "radioFrequency",
                "lastChanged": "2017-05-17T09:56:11.000Z",
                "lastValue": 1,
                "lastValueId": 9957
            },
            {
                "name": "Sensor",
                "id": 153,
                "type": "motion",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 1,
                "max": 1,
                "display": 1,
                "sensor": 1,
                "identifier": "-30196",
                "device": 116,
                "service": "radioFrequency",
                "lastChanged": "2017-05-28T16:18:44.000Z",
                "lastValue": 1,
                "lastValueId": 10751
            }
        ]
    },
    {
        "name": "Salón",
        "house": 1,
        "permission": null,
        "id": 1,
        "createdAt": "2017-02-04T23:45:35.000Z",
        "updatedAt": "2017-02-04T23:45:35.000Z",
        "deviceTypes": [
            {
                "name": "banda",
                "id": 174,
                "type": "brightness",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 1,
                "sensor": 0,
                "identifier": "1",
                "device": 136,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "banda",
                "id": 175,
                "type": "hue",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 65535,
                "display": 0,
                "sensor": 0,
                "identifier": "1",
                "device": 136,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "banda",
                "id": 176,
                "type": "saturation",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 0,
                "sensor": 0,
                "identifier": "1",
                "device": 136,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "banda",
                "id": 177,
                "type": "binary",
                "category": "light",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "1",
                "device": 136,
                "service": "hue",
                "lastChanged": "2017-10-20T17:12:59.000Z",
                "lastValue": 1,
                "lastValueId": 76134
            },
            {
                "name": "Spot biblioteca 2",
                "id": 178,
                "type": "brightness",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 1,
                "sensor": 0,
                "identifier": "4",
                "device": 139,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Spot biblioteca 2",
                "id": 179,
                "type": "hue",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 65535,
                "display": 0,
                "sensor": 0,
                "identifier": "4",
                "device": 139,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Spot biblioteca 2",
                "id": 180,
                "type": "saturation",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 0,
                "sensor": 0,
                "identifier": "4",
                "device": 139,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Lámpara",
                "id": 181,
                "type": "binary",
                "category": "light",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "2",
                "device": 137,
                "service": "hue",
                "lastChanged": "2017-10-20T17:12:59.000Z",
                "lastValue": 1,
                "lastValueId": 76133
            },
            {
                "name": "Spot biblioteca 2",
                "id": 182,
                "type": "binary",
                "category": "light",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "4",
                "device": 139,
                "service": "hue",
                "lastChanged": "2017-10-20T17:12:59.000Z",
                "lastValue": 1,
                "lastValueId": 76136
            },
            {
                "name": "Lámpara",
                "id": 183,
                "type": "brightness",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 1,
                "sensor": 0,
                "identifier": "2",
                "device": 137,
                "service": "hue",
                "lastChanged": "2017-09-18T21:24:17.000Z",
                "lastValue": 255,
                "lastValueId": 23253
            },
            {
                "name": "Lámpara",
                "id": 184,
                "type": "hue",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 65535,
                "display": 0,
                "sensor": 0,
                "identifier": "2",
                "device": 137,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Lámpara",
                "id": 185,
                "type": "saturation",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 0,
                "sensor": 0,
                "identifier": "2",
                "device": 137,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "spot biblioteca 1",
                "id": 186,
                "type": "binary",
                "category": "light",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "3",
                "device": 138,
                "service": "hue",
                "lastChanged": "2017-10-20T17:12:59.000Z",
                "lastValue": 1,
                "lastValueId": 76135
            },
            {
                "name": "spot biblioteca 1",
                "id": 187,
                "type": "brightness",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 1,
                "sensor": 0,
                "identifier": "3",
                "device": 138,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "spot biblioteca 1",
                "id": 188,
                "type": "hue",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 65535,
                "display": 0,
                "sensor": 0,
                "identifier": "3",
                "device": 138,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "spot biblioteca 1",
                "id": 189,
                "type": "saturation",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 0,
                "sensor": 0,
                "identifier": "3",
                "device": 138,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Ordenador y varios",
                "id": 195,
                "type": "binary",
                "category": "outlet",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "192.168.2.55:CONFIDENTIAL",
                "device": 145,
                "service": "w215",
                "lastChanged": "2017-10-08T13:43:43.000Z",
                "lastValue": 1,
                "lastValueId": 50260
            },
            {
                "name": "Multimedia",
                "id": 198,
                "type": "binary",
                "category": "outlet",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "192.168.2.120:CONFIDENTIAL",
                "device": 148,
                "service": "w215",
                "lastChanged": "2017-10-08T13:43:43.000Z",
                "lastValue": 1,
                "lastValueId": 50259
            },
            {
                "name": "Salón",
                "id": 223,
                "type": "multilevel",
                "category": null,
                "tag": null,
                "unit": null,
                "min": -9999,
                "max": 9999,
                "display": 1,
                "sensor": 1,
                "identifier": "CONFIDENTIAL",
                "device": 173,
                "service": "bluetooth",
                "lastChanged": "2017-10-22T10:32:30.000Z",
                "lastValue": -76,
                "lastValueId": 81664
            }
        ]
    },
    {
        "name": "Dormitorio",
        "house": 1,
        "permission": null,
        "id": 3,
        "createdAt": "2017-02-04T23:45:46.000Z",
        "updatedAt": "2017-02-04T23:45:46.000Z",
        "deviceTypes": [
            {
                "name": "Sonos ZPS12",
                "id": 117,
                "type": "music",
                "category": "music",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 0,
                "display": 1,
                "sensor": 0,
                "identifier": "192.168.2.136:1400",
                "device": 92,
                "service": "sonos",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Lámpara de noche",
                "id": 190,
                "type": "binary",
                "category": "light",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "5",
                "device": 140,
                "service": "hue",
                "lastChanged": "2017-10-20T17:12:59.000Z",
                "lastValue": 1,
                "lastValueId": 76137
            },
            {
                "name": "Lámpara de noche",
                "id": 191,
                "type": "brightness",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 1,
                "sensor": 0,
                "identifier": "5",
                "device": 140,
                "service": "hue",
                "lastChanged": "2017-09-20T22:34:16.000Z",
                "lastValue": 128,
                "lastValueId": 23614
            },
            {
                "name": "Lámpara de noche",
                "id": 192,
                "type": "hue",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 65535,
                "display": 0,
                "sensor": 0,
                "identifier": "5",
                "device": 140,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Lámpara de noche",
                "id": 193,
                "type": "saturation",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 0,
                "sensor": 0,
                "identifier": "5",
                "device": 140,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Dormitorio",
                "id": 201,
                "type": "multilevel",
                "category": null,
                "tag": null,
                "unit": null,
                "min": -9999,
                "max": 9999,
                "display": 1,
                "sensor": 1,
                "identifier": "CONFIDENTIAL",
                "device": 151,
                "service": "bluetooth",
                "lastChanged": "2017-10-22T10:32:30.000Z",
                "lastValue": -61,
                "lastValueId": 81663
            }
        ]
    }
]

¿idea conectada pero no vendría de los acentos?

¡Buen trabajo!

Lo he instalado, ¡tengo que probar todo esto!

aquí está el video:
https://photos.app.goo.gl/qcBxGNf3R1s5Q2N33

Hola @PhilippeMA después de inspeccionar tu JSON, lo único que me llamó la atención es esto:

  {
        "name": "Chambre",
        "id": 201,
        "type": "multilevel",
        "category": null,
        "tag": null,
        "unit": null,
        "min": -9999,
        "max": 9999,
        "display": 1,
        "sensor": 1,
        "identifier": "CONFIDENTIEL",
        "device": 151,
        "service": "bluetooth",
        "lastChanged": "2017-10-22T10:32:30.000Z",
        "lastValue": -61,
        "lastValueId": 81663
    }

Que tu tengas el dispositivo fijado a -9999 y 9999, está bien, pero ¿cómo lograste que el último valor sea -61? Personalmente, recreé tu dispositivo en mi casa y Gladys no me permite pasar un valor por debajo de 0…
Y creo que el problema viene de ahí.
Dicho esto, otro error ha aparecido y lo he corregido, así que ya es algo menos ^^
Para estar seguro de que el error viene de ahí, ¿puedes decirme si la sincronización de la línea de tiempo y la de las alarmas funciona?

@WolfVic no veo nada anormal en tu caso :thinking: necesitaría encontrar una manera de recuperar tus registros…

Acabo de limpiar mis dispositivos. El que mencionas es un Google Home con el que Gladys no interactúa… Le había asignado una habitación porque tengo gladys-bluetooth que lo identifica y eso me permitía hacer la distinción entre mis dispositivos y los de mis muchos vecinos :stuck_out_tongue:

También había asignado habitaciones a dispositivos que solo transmiten información pero con los que no se puede interactuar (ej. arduino, sensor 433Mhz).

A pesar de todo, la aplicación sigue fallando. Los únicos dispositivos que quedan son:

  • Lámparas HUE
  • Enchufes controlados W215
  • Sonos

Estoy intentando desactivar dispositivo por dispositivo para ver cuál es el problema. Te mantendré informado.

Edición: el JSON actualizado

[
    {
        "name": "Salón",
        "house": 1,
        "permission": null,
        "id": 1,
        "createdAt": "2017-02-04T23:45:35.000Z",
        "updatedAt": "2017-02-04T23:45:35.000Z",
        "deviceTypes": [
            {
                "name": "bande",
                "id": 174,
                "type": "brightness",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 1,
                "sensor": 0,
                "identifier": "1",
                "device": 136,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "bande",
                "id": 175,
                "type": "hue",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 65535,
                "display": 0,
                "sensor": 0,
                "identifier": "1",
                "device": 136,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "bande",
                "id": 176,
                "type": "saturation",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 0,
                "sensor": 0,
                "identifier": "1",
                "device": 136,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "bande",
                "id": 177,
                "type": "binary",
                "category": "light",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "1",
                "device": 136,
                "service": "hue",
                "lastChanged": "2017-10-20T17:12:59.000Z",
                "lastValue": 1,
                "lastValueId": 76134
            },
            {
                "name": "Spot biblioteca 2",
                "id": 178,
                "type": "brightness",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 1,
                "sensor": 0,
                "identifier": "4",
                "device": 139,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Spot biblioteca 2",
                "id": 179,
                "type": "hue",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 65535,
                "display": 0,
                "sensor": 0,
                "identifier": "4",
                "device": 139,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Spot biblioteca 2",
                "id": 180,
                "type": "saturation",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 0,
                "sensor": 0,
                "identifier": "4",
                "device": 139,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Lámpara",
                "id": 181,
                "type": "binary",
                "category": "light",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "2",
                "device": 137,
                "service": "hue",
                "lastChanged": "2017-10-20T17:12:59.000Z",
                "lastValue": 1,
                "lastValueId": 76133
            },
            {
                "name": "Spot biblioteca 2",
                "id": 182,
                "type": "binary",
                "category": "light",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "4",
                "device": 139,
                "service": "hue",
                "lastChanged": "2017-10-20T17:12:59.000Z",
                "lastValue": 1,
                "lastValueId": 76136
            },
            {
                "name": "Lámpara",
                "id": 183,
                "type": "brightness",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 1,
                "sensor": 0,
                "identifier": "2",
                "device": 137,
                "service": "hue",
                "lastChanged": "2017-09-18T21:24:17.000Z",
                "lastValue": 255,
                "lastValueId": 23253
            },
            {
                "name": "Lámpara",
                "id": 184,
                "type": "hue",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 65535,
                "display": 0,
                "sensor": 0,
                "identifier": "2",
                "device": 137,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Lámpara",
                "id": 185,
                "type": "saturation",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 0,
                "sensor": 0,
                "identifier": "2",
                "device": 137,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "spot biblioteca 1",
                "id": 186,
                "type": "binary",
                "category": "light",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "3",,
                "service": "hue",
                "lastChanged": "2017-10-20T17:12:59.000Z",
                "lastValue": 1,
                "lastValueId": 76135
            },
            {
                "name": "spot biblioteca 1",
                "id": 187,
                "type": "brightness",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 1,
                "sensor": 0,
                "identifier": "3",
                "device": 138,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "spot biblioteca 1",
                "id": 188,
                "type": "hue",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 65535,
                "display": 0,
                "sensor": 0,
                "identifier": "3",
                "device": 138,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "spot biblioteca 1",
                "id": 189,
                "type": "saturation",
                "category": "light",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 0,
                "sensor": 0,
                "identifier": "3",
                "device": 138,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Ordenador y varios",
                "id": 195,
                "type": "binary",
                "category": "outlet",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "192.168.2.55:814707",
                "device": 145,
                "service": "w215",
                "lastChanged": "2017-10-08T13:43:43.000Z",
                "lastValue": 1,
                "lastValueId": 50260
            },
            {
                "name": "Multimedia",
                "id": 198,
                "type": "binary",
                "category": "outlet",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "192.168.2.120:842552",
                "device": 148,
                "service": "w215",
                "lastChanged": "2017-10-08T13:43:43.000Z",
                "lastValue": 1,
                "lastValueId": 50259
            }
        ]
    },
    {
        "name": "Dormitorio",
        "house": 1,
        "permission": null,
        "id": 3,
        "createdAt": "2017-02-04T23:45:46.000Z",
        "updatedAt": "2017-02-04T23:45:46.000Z",
        "deviceTypes": [
            {
                "name": "Sonos ZPS12",
                "id": 117,
                "type": "music",
                "category": "music",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 0,
                "display": 1,
                "sensor": 0,
                "identifier": "192.168.2.136:1400",
                "device": 92,
                "service": "sonos",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Lámpara de noche",
                "id": 190,
                "type": "binary",
                "category": "light",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "5",
                "device": 140,
                "service": "hue",
                "lastChanged": "2017-10-20T17:12:59.000Z",
                "lastValue": 1,
                "lastValueId": 76137
            },
            {
                "name": "Lámpara de noche",
                "id": 191,
                "type": "brightness",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 1,
                "sensor": 0,
                "identifier": "5",
                "device": 140,
                "service": "hue",
                "lastChanged": "2017-09-20T22:34:16.000Z",
                "lastValue": 128,
                "lastValueId": 23614
            },
            {
                "name": "Lámpara de noche",
                "id": 192,
                "type": "hue",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 65535,
                "display": 0,
                "sensor": 0,
                "identifier": "5",
                "device": 140,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Lámpara de noche",
                "id": 193,
                "type": "saturation",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 0,
                "sensor": 0,
                "identifier": "5",
                "device": 140,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            }
        ]
    }
]

¡Eh, por qué quitaste tu JSON! ¡Estaba mirándolo! :joy: :joy:

Empate.

Mis dispositivos conectados y el sistema Sonos son reconocidos correctamente por la aplicación. Pude añadir mi lámpara de noche HUE, pero se bloqueó en cuanto añadí el foco 2 de la biblioteca (HUE también).

¿Podrías pasarme el JSON actual (el que no hace que la aplicación se bloquee)?
Para que pueda hacer la comparación.
Así que tengo una pista ^^

El JSON que pasa :

[
    {
        "name": "Dormitorio",
        "house": 1,
        "permission": null,
        "id": 3,
        "createdAt": "2017-02-04T23:45:46.000Z",
        "updatedAt": "2017-02-04T23:45:46.000Z",
        "deviceTypes": [
            {
                "name": "Sonos ZPS12",
                "id": 117,
                "type": "music",
                "category": "music",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 0,
                "display": 1,
                "sensor": 0,
                "identifier": "192.168.2.136:1400",
                "device": 92,
                "service": "sonos",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Lámpara de noche",
                "id": 190,
                "type": "binary",
                "category": "light",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "5",
                "device": 140,
                "service": "hue",
                "lastChanged": "2017-10-20T17:12:59.000Z",
                "lastValue": 1,
                "lastValueId": 76137
            },
            {
                "name": "Lámpara de noche",
                "id": 191,
                "type": "brightness",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 1,
                "sensor": 0,
                "identifier": "5",
                "device": 140,
                "service": "hue",
                "lastChanged": "2017-09-20T22:34:16.000Z",
                "lastValue": 128,
                "lastValueId": 23614
            },
            {
                "name": "Lámpara de noche",
                "id": 192,
                "type": "hue",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 65535,
                "display": 0,
                "sensor": 0,
                "identifier": "5",
                "device": 140,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            },
            {
                "name": "Lámpara de noche",
                "id": 193,
                "type": "saturation",
                "category": null,
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 255,
                "display": 0,
                "sensor": 0,
                "identifier": "5",
                "device": 140,
                "service": "hue",
                "lastChanged": null,
                "lastValue": null,
                "lastValueId": null
            }
        ]
    },
    {
        "name": "Salón",
        "house": 1,
        "permission": null,
        "id": 1,
        "createdAt": "2017-02-04T23:45:35.000Z",
        "updatedAt": "2017-02-04T23:45:35.000Z",
        "deviceTypes": [
            {
                "name": "Ordenador y varios",
                "id": 195,
                "type": "binary",
                "category": "outlet",
                "tag": "",
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "192.168.2.55:814707",
                "device": 145,
                "service": "w215",
                "lastChanged": "2017-10-08T13:43:43.000Z",
                "lastValue": 1,
                "lastValueId": 50260
            },
            {
                "name": "Multimedia",
                "id": 198,
                "type": "binary",
                "category": "outlet",
                "tag": null,
                "unit": null,
                "min": 0,
                "max": 1,
                "display": 1,
                "sensor": 0,
                "identifier": "192.168.2.120:842552",
                "device": 148,
                "service": "w215",
                "lastChanged": "2017-10-08T13:43:43.000Z",
                "lastValue": 1,
                "lastValueId": 50259
            }
        ]
    }
]

¡Bravo, buen trabajo, la aplicación se instaló sin problemas, pero tengo un código de error 5 y nada en los logs de gladys. Por lo tanto, aún no funciona (tengo un Huawei Nexus 6P con Android 8 Oreo). Lo miraré más de cerca en cuanto pueda.

Por cierto, me parece que hay un error en « ¡No hay datos! », ya que no hay ninguno, creo que « dato » debe estar en singular y no en plural (pero mis clases de francés son de hace mucho tiempo) :wink: