bwssytems / ha-bridge

Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge.
Apache License 2.0
1.45k stars 199 forks source link

Newbie Help Needed #108

Closed smarty125 closed 8 years ago

smarty125 commented 8 years ago

Started off over at Armzilla...moved over here...starting from scratch.
Win 7, new java install jre1.8.0_91.
IP of host computer is 192.168.0.106 Put download in the C:\Program Files\Java\jre1.8.0_91\bin directory and ran "java -jar ha-bridge-2.0.4.jar.

Response:

C:\Program Files\Java\jre1.8.0_91\bin>java -jar ha-bridge-2.0.4.jar 2016-05-06 09:29:53,148 [main] INFO com.bwssystems.HABridge.HABridge - HA Bridg e (v2.0.4) starting.... 2016-05-06 09:29:53,168 [main] INFO com.bwssystems.HABridge.BridgeSettings - re ading from system properties 2016-05-06 09:29:53,168 [main] INFO com.bwssystems.HABridge.BridgeSettings - Ge tting an IP address for this host.... 2016-05-06 09:29:53,228 [main] INFO com.bwssystems.HABridge.BridgeSettings - Ad ding 192.168.0.106 from interface eth3 as our default upnp config address. 2016-05-06 09:29:53,228 [main] INFO com.bwssystems.HABridge.HABridge - HA Bridg e (v2.0.4) initializing.... 2016-05-06 09:29:53,238 [main] INFO com.bwssystems.HABridge.SystemControl - Sys tem control service started.... 2016-05-06 09:29:53.328:INFO::Thread-0: Logging initialized @554ms 2016-05-06 09:29:53,368 [main] WARN com.bwssystems.HABridge.dao.DeviceRepositor y - Error reading the file: data\device.db - Does not exist or is not readable. continuing... 2016-05-06 09:29:53,368 [main] INFO com.bwssystems.HABridge.devicemanagmeent.De viceResource - HABridge device management service started.... 2016-05-06 09:29:53,418 [Thread-0] INFO spark.webserver.JettySparkServer - == S park has ignited ... 2016-05-06 09:29:53,418 [Thread-0] INFO spark.webserver.JettySparkServer - >> L istening on 0.0.0.0:8080 2016-05-06 09:29:53.428:INFO:oejs.Server:Thread-0: jetty-9.3.z-SNAPSHOT 2016-05-06 09:29:53.498:INFO:oejs.ServerConnector:Thread-0: Started ServerConnec tor@10169ac{HTTP/1.1,[http/1.1]}{0.0.0.0:8080} 2016-05-06 09:29:53.498:INFO:oejs.Server:Thread-0: Started @721ms 2016-05-06 09:29:53,898 [main] INFO com.bwssystems.HABridge.hue.HueMulator - Hu e emulator service started.... 2016-05-06 09:29:53,908 [main] INFO com.bwssystems.HABridge.upnp.UpnpSettingsRe source - Hue description service started.... 2016-05-06 09:29:53,908 [main] INFO com.bwssystems.HABridge.upnp.UpnpListener - UPNP Discovery Listener starting.... 2016-05-06 09:29:53,958 [main] INFO com.bwssystems.HABridge.upnp.UpnpListener - UPNP Discovery Listener running and ready....

I realize I still need to set up some devices (in the data\devices.db file), but with the .jar file running, when I point my browser (IE11) at http://192.168.0.106:8080/configurator.html I do not see the configuration screen (like Armzilla had). what I see is an "HTTP 404 Not Found". Is device entry and configuration still done this way?

bwssytems commented 8 years ago

So, you need to read the readme here and not on armzilla's github page and it will have all the info you need.

http://192.168.0.106:8080

smarty125 commented 8 years ago

Yes - thank you. I have read the readme, but I guess I am still "not getting it". I am not seeing any of the "tabs" mentioned, nor do I see/understand the "helpers" to load in device information (device control urls).

Prior to looking into the ha-bridge approach (here and at Armzilla), I was using the IFTTT Maker channel to "trigger" url's into my home automation system (PowerHome). Using that approach I was able to get the IFTTT Maker channel to send url's to run various macro's etc.

I am NOT a programmer...just a hack of a mechanical engineer who toys with automation. If anyone can get me jump started it is greatly appreciated :)

Thanks

bwssytems commented 8 years ago

Start with the bridge control tab. If you have a vera, add it, if you have a harmony hub, add it, if you have nest add it. It is straight forward and then you will see the other helper tabs.

smarty125 commented 8 years ago

With the .jar file running.... and web browser pointing at http://localhost:8080, I only see: "HA Bridge/Home/My Echo/Help/About" across the top of the served web page.

What am I missing?

capture

bwssytems commented 8 years ago

You have errors on startup, please review the output of the java program on your terminal.

bwssytems commented 8 years ago

Also, take a look at this thread for more information:

http://forum.micasaverde.com/index.php/topic,31920.0.html

peadard commented 8 years ago

Did you try Google Chrome? I had issues with IE

smarty125 commented 8 years ago

When viewed with Chrome or Safari, it then displayed correctly.