Yes I am using my own web server, see a few posts above where I show the JSON output from things: http://mydevice/
When none of the devices from my web server are added, and I press the + add devices, only the second thing is discovered (RED-12), I can then select the save button next to the discovered thing (RED-12) and add it, note that GRN-13 is not listed at all, the code cannot see GRN-13.
If I then re-run the discovery after adding the only available thing, nothing new is discovered, but I can manually add the second device (GRN-13) by URL http://192.168.0.186/things/GRN-13
I can then control both devices, and switch both on and off, but when I monitor the logs from my server, the Mozilla gateway is polling one of the devices TWICE (’/things/GRN-13/properties/on’) and no requests are ever received to poll RED-12, i.e 2 requests are received to poll ‘/things/GRN-13/properties/on’.
here is my things JSON again (http://192.168.0.186/):
[
{
"id": "http://192.168.0.186/things/RED-12",
"properties": {
"on": {
"href": "/things/RED-12/properties/on",
"@type": "OnOffProperty",
"type": "boolean",
"value": false
}
},
"@context": "https://iot.mozilla.org/schemas/",
"name": "RED-12",
"description": "RED-12",
"@type": [
"Light",
"OnOffSwitch"
],
"title": "RED-12",
"pin": 12
},
{
"id": "http://192.168.0.186/things/GRN-13",
"properties": {
"on": {
"href": "/things/GRN-13/properties/on",
"@type": "OnOffProperty",
"type": "boolean",
"value": false
}
},
"@context": "https://iot.mozilla.org/schemas/",
"name": "GRN-13",
"description": "GRN-13",
"@type": [
"Light",
"OnOffSwitch"
],
"title": "GRN-13",
"pin": 13
}
]
I have opened up the port to this device and sent you a personal message with the IP address and port.