Thanks – the hub is ‘home’ like the rest, and the device network ID is shown.
I added it manually, trying both upper and lowercase.
– do you expect it to be set by the device code?
In the ‘My Devices’ list, the RPi shows as ‘INACTIVE’ – but so does a working power outlet, so that’s confusing.
In the ST logger, I see:
7:45:40 AM PST: debug POST /macros/getData HTTP/1.1
Accept: /
User-Agent: Linux UPnP/1.0 SmartThings
HOST: 10.0.1.225:8000
Authorization: Basic d2ViaW9waTp3ZWJpb3Bp
7:45:40 AM PST: debug Executing hubAction on 10.0.1.225:8000
7:45:40 AM PST: debug Headers are [HOST:10.0.1.225:8000, Authorization:Basic d2ViaW9waTp3ZWJpb3Bp]
7:45:40 AM PST: debug Getting headers
7:45:40 AM PST: debug Credentials are Basic d2ViaW9waTp3ZWJpb3Bp
7:45:40 AM PST: debug ASCII credentials are webiopi:webiopi
7:45:40 AM PST: debug Encoding credentials
7:45:40 AM PST: debug Device Network Id set to 0a0001e1:1f40
7:45:40 AM PST: debug Executing ‘refresh’
… but no packets going out from the hub, only the encrypted traffic between the hub and AWS …
$ tshark -r app2.pcap | grep "10.0.1.10"
8 2014-11-12 15:45:30.533784000 10.0.1.10 -> 50.19.244.133 SSL 60 Continuation Data
9 2014-11-12 15:45:30.548402000 10.0.1.10 -> 50.19.244.133 TCP 60 [TCP segment of a reassembled PDU]
10 2014-11-12 15:45:30.548443000 10.0.1.10 -> 50.19.244.133 SSLv3 123 Application Data
11 2014-11-12 15:45:30.619410000 50.19.244.133 -> 10.0.1.10 TCP 60 https > ies-lm [ACK] Seq=1 Ack=2 Win=15360 Len=0
12 2014-11-12 15:45:30.635657000 50.19.244.133 -> 10.0.1.10 TCP 60 https > ies-lm [ACK] Seq=1 Ack=7 Win=15360 Len=0
13 2014-11-12 15:45:30.641160000 50.19.244.133 -> 10.0.1.10 TCP 60 https > ies-lm [ACK] Seq=1 Ack=76 Win=15360 Len=0
14 2014-11-12 15:45:30.642404000 50.19.244.133 -> 10.0.1.10 SSLv3 110 Application Data
15 2014-11-12 15:45:30.643028000 10.0.1.10 -> 50.19.244.133 TCP 60 ies-lm > https [ACK] Seq=76 Ack=57 Win=768 Len=0
19 2014-11-12 15:45:40.608500000 10.0.1.10 -> 50.19.244.133 TCP 60 [TCP Keep-Alive] ies-lm > https [ACK] Seq=75 Ack=57 Win=768 Len=1
20 2014-11-12 15:45:40.692996000 50.19.244.133 -> 10.0.1.10 TCP 60 [TCP Keep-Alive ACK] https > ies-lm [ACK] Seq=57 Ack=76 Win=15360 Len=0
… the RPi responds to the POST request over the network (via telnet from a mac) so that’s working …
$ telnet 10.0.1.225 8000
Trying 10.0.1.225…
Connected to 10.0.1.225.
Escape character is ‘^]’.
POST /macros/getData HTTP/1.1
Accept: /
User-Agent: Linux UPnP/1.0 SmartThings
HOST: 10.0.1.225:8000
Authorization: Basic d2ViaW9waTp3ZWJpb3Bp
HTTP/1.0 200 OK
Server: WebIOPi/0.7.0/Python3.2
Date: Wed, 12 Nov 2014 15:51:10 GMT
Cache-Control: no-cache
Content-Type: text/plain
Content-Length: 93
{
“disk_usage”: 18.9,
“mem_avail”: 101.9,
“cpu_temp”: 47.6,
“cpu_perc”: 0.9
}Connection closed by foreign host.
Last night I tried adding a SmartApp to set up the static IP, and to register a child device – but no success with that so far.