- See if you can ping the hub from the machine that openhab runs on.
- try to telnet to the hub on port 9761 from the openhab machine
Ping is ok but telnet:
mark@project-server /etc/openhab/configurations $ telnet 192.168.2.132 9761
telnet: Unable to connect to remote host: Connection timed out
And nothing happens. Same from another machine. Funny thing, no longer get web pages on 9761 but I do if I use 25105
It couldn’t be anything as stupid as using the wrong java could it?
mark@project-server /etc/openhab/configurations $ java -version
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.2)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
Use nmap or similar port scanner to see what ports are open on the hub.
Run HouseLinc and use packet sniffer or netstat equivalent to determine
what ports HouseLinc is connecting to.
I appear to have results!!!
I did what @Bernd_Pfrommer suggested and scanned the hub and it came back with 9760 & 9761 open. I could telnet to 9760 but not 9761 and it looked like houselinc was using 9761 according to wireshark trace. I set the port on openhab to 9760 and this did nothing after a restart. switched it back, restarted again and I got a whole new list of debug messages. I now have results for one open / close sensor appearing in the mongodb database I am using!!! So, just need to work out why only one of the two sensors and no motion sensor data but I am not sure that I have those setup in the .items file. Any suggestions about them?
Thanks to both of you!!! Without your help I would have got nowhere over the last few days.
@Mark_Venn, I’d suggest you switch to Oracle Java. Instructions are at https://github.com/openhab/openhab/wiki/Linux---OS-X#java-8-installation-for-ubuntu-or-debian
Will do. I have never been too happy with any version other than sun / oracle tbh. I did not check which version was being installed on this machine when I set it up.
Have a good look at the modem database that is displayed in the debug log. That’s all that your hub is properly linked to, one single device: 23.38.BE, and just as a responder (probably sufficient for this kind of device). You need to link every device to your hub, using houselinc or buttons. And as Rob said, use oracle java.
2016-04-18 14:52:25 DEBUG o.o.b.i.i.d.ModemDBBuilder[:130]- MDB ------- start of modem link records ------------------ 2016-04-18 14:52:25 DEBUG o.o.b.i.i.d.ModemDBBuilder[:142]- MDB ----- 2016-04-18 14:52:25 DEBUG o.o.b.i.i.d.ModemDBBuilder[:137]- MDB 23.38.BE: RESP group: 01 data1: 00 data2: 00 data3: 00 2016-04-18 14:52:25 DEBUG o.o.b.i.i.d.ModemDBBuilder[:137]- MDB 23.38.BE: RESP group: 02 data1: 00 data2: 00 data3: 00 2016-04-18 14:52:25 DEBUG o.o.b.i.i.d.ModemDBBuilder[:142]- MDB ----- 2016-04-18 14:52:25 DEBUG o.o.b.i.i.d.ModemDBBuilder[:144]- MDB ---------------- end of modem link records -----------
how do you find the insteon hub host ip as well as port? It doesn’t show in my router page while the smart things and philips hue hubs ip shows.
I used the Insteon app to set it up. It searches your wifi network and lets you set a static address.
I’ve spent a very frustrating day setting up openhab today — about lunchtime I read this and concluded wrongly that port 9760 is right for my 2242-442 hub, as I could telnet to 9760 but not 9761. Turns out 9761 was right all along. All’s well that ends well but I thought I’d post this for anyone else in the same situation.
Good luck Max Christian. I have given up with the Insteon setup as I could not get the data to persist. I am looking at other comms methods at the moment