Could my error 6 be due to the 4-second delay in getting the response?
What is the limit with a timeout?
Hello @pyb,
I have the same configuration as you but I can’t connect. I get a return code 1.
My configuration:
- IP Address: empty
- Port: empty
- DNS Address: url_de_mon_site:port (without https:// in front)
- HTTPS enabled
- Port: empty
Did you do anything else?
@LepetitGeek, thank you so much for this app which will be super useful ![]()
I set the timeout to 30s so the error doesn’t come from that ^^
Have you double-checked your connection details?
Could you make a video like @aiaalm’s from the moment you enter your settings until the error appears?
I found a way to record my screen and I’ll do that for you!
@PhilippeMA Error code 1 means you’re on Wi-Fi and your settings aren’t correct… which is normal since you left them blank!
Ah… Indeed. It started to load but unfortunately the app crashes in the end ![]()
Edit: In local access with local IP and in remote access with DNS. Same behavior, the app crashes after spinning for a few seconds. Then, impossible to restart it, it crashes directly. I cleared the cache to restart it while waiting to find a solution.
Android 7.1.1
It randomly happens that an exception is raised (it happened to me twice).
Can you give me your config in case it happens again?
Edit What smartphone? Let me take the time to go home and put away my groceries and I’ll give it a try ![]()
Can you give me your JSON returned by Gladys?
Where do I find the JSON? Nothing in the logs except « Access with token to user »
My phone is a Sony Xperia XZ
With Postman
I described how to do it in this message ^^
Here is the JSON returned by Gladys ![]()
[
{
"name": "Hallway",
"house": 1,
"permission": null,
"id": 2,
"createdAt": "2017-02-04T23:45:40.000Z",
"updatedAt": "2017-02-04T23:45:40.000Z",
"deviceTypes": [
{
"name": "Motion Detector",
"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": "Motion Detector",
"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": "Living Room",
"house": 1,
"permission": null,
"id": 1,
"createdAt": "2017-02-04T23:45:35.000Z",
"updatedAt": "2017-02-04T23:45:35.000Z",
"deviceTypes": [
{
"name": "strip",
"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": "strip",
"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": "strip",
"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": "strip",
"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": "Library Spot 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": "Library Spot 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": "Library Spot 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": "Lamp",
"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": "Library Spot 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": "Lamp",
"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": "Lamp",
"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": "Lamp",
"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": "Library spot 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": "Library spot 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": "Library spot 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": "Library spot 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": "Computer and miscellaneous",
"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": "Living room",
"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": "Bedroom",
"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": "Bedside lamp",
"id": 190,
"type": "binary",
"category": "light",
"tag": "",
"unit": null,
"min": 0,
"max": 1display": 1,
"sensor": 0,
"identifier": "5",
"device": 140,
"service": "hue",
"lastChanged": "2017-10-20T17:12:59.000Z",
"lastValue": 1,
"lastValueId": 76137
},
{
"name": "Bedside lamp",
"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": "Bedside lamp",
"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": "Bedside lamp",
"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": "Bedroom",
"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
}
]
}
]
connected idea but wouldn’t that come from the accents?
Great job!
I installed it, I need to test all this!
here is the video:
https://photos.app.goo.gl/qcBxGNf3R1s5Q2N33
Hey @PhilippeMA after inspecting your JSON, the only thing that caught my attention is this
{
"name": "Bedroom",
"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
}
I get that your device is set to -9999 and 9999, OK, but how did you manage to get the last value to -61? Personally, I recreated your device at my place and Gladys doesn’t let me pass a value below 0…
And I think the problem comes from that!
That said, another error appeared and I fixed it, so that’s already one less thing to worry about ^^
To be sure the error comes from that, can you tell me if the Timeline sync and the Alarms sync are working?
@WolfVic I don’t see anything abnormal on your end
I need to find a way to retrieve your logs…
I just finished cleaning up my devices. The one you’re referring to is a Google Home that Gladys doesn’t interact with… I had assigned it a room because I have gladys-bluetooth which identifies it, and that allowed me to sort between my devices and those of my many neighbors ![]()
I had also assigned rooms to devices that only transmit information but with which you can’t interact (e.g., Arduino, 433MHz sensor).
Despite all this, the application continues to crash. The only devices left:
- HUE lamps
- W215 controlled outlets
- Sonos
I’m trying to disable device by device to see which one is causing the problem. I’ll keep you posted.
Edit: the updated JSON
[
{
"name": "Salon",
"house": 1,
"permission": null,
"id": 1,
"createdAt": "2017-02-04T23:45:35.000Z",
"updatedAt": "2017-02-04T23:45:35.000Z",
"deviceTypes": [
{
"name": "strip",
"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": "strip",
"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": "strip",
"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": "strip",
"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": "Library Spot 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": "Library Spot 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": "Library Spot 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": "Lamp",
"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": "Library Spot 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": "Lamp",
"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": "Lamp",
"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": "Lamp",
"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": "Library Spot 1",
"id": 186,
"type": "binary",
"category": "light",
"tag": "",
"unit": null,
"min": 0,
"max": 1,
"display": 1,
"sensor": 0,
"identifier": "3",
"device": 138service": "hue",
Oh, why did you remove your JSON? I was just looking at it
![]()
Draw.
My connected devices and the Sonos are well recognized by the app. I was able to add my HUE bedside lamp, but it crashed as soon as I added the library’s spot 2 (HUE again).
Can you give me the current JSON (the one that doesn’t crash the app) so I can compare? I think I have a lead ^^
The JSON that passes:
[
{
"name": "Bedroom",
"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": "Bedside Lamp",
"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": "Bedside Lamp",
"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": "Bedside Lamp",
"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": "Bedside Lamp",
"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": "Living Room",
"house": 1,
"permission": null,
"id": 1,
"createdAt": "2017-02-04T23:45:35.000Z",
"updatedAt": "2017-02-04T23:45:35.000Z",
"deviceTypes": [
{
"name": "Computer and various",
"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
}
]
}
]
Well done, great job, app installed without any issues, but I have an error code 5 and nothing in the Gladys logs. As a result, it still doesn’t work (I have a Huawei Nexus 6P on Android 8 Oreo). I’ll take a closer look as soon as I can.
By the way, I think there’s a mistake in « No data! », since there isn’t any, I think « data » should be singular and not plural (but my French lessons are a long time ago now) ![]()