You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+47-4
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,29 @@ ATTENTION: This requires JDK 1.8 to run
23
23
```
24
24
java -jar ha-bridge-W.X.Y.jar
25
25
```
26
+
### Automation on Linux systems
27
+
To have this conigured and running automatically ther eare a few resources to use. One is using Docker and a docker containerahs been built for this and can be gotten here: https://github.com/aptalca/docker-ha-bridge
28
+
29
+
For next gen Linux systems, here is a systemctl unit file that you can install. Here is a link on how to do this: https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units
Arguments are now deprecated. The ha-bridge will use the old -D arguments and populate the configuration screen, Brisge Control Tab, which can now be saved to a file and will not be needed. There is only one optional argument that overrides and that is the location of the configuration file. The default is the relative path "data/habridge.config".
28
45
### -Dconfig.file=`<filepath>`
29
46
The default location for the configuration file to contain the settings for the bridge is the relative path from where the bridge is started in "data/habridge.config". If you would like a different filename or directory, specify -Dconfig.file=`<directory>/<filename>` explicitly. The command line example:
The default port number for the bridge is 8080. To override what the default or what is in the configuration file for this parameter, specify -Dserver.port=`<port number>` explicitly. This is especially helpful if you are running the ha-bridge for the first time and have another application on port 8080. The command line example:
@@ -89,7 +106,7 @@ At the bottom of the screen is the "Bridge Settings Backup" which can be accesse
89
106
This screen displays the last 512 or number of rows defined in the config screen of the log so you don't have to go to the output of your process. The `Update Log` button refreshes the log as this screen does not auto refresh. FYI, when the trace upnp setting is turned on in the configuration, the messages will show here.
90
107
91
108
The bottom part of the Logs Screen has configuration to change the logging levels as it is running. The ROOT is the basic setting and will turn on only top level logging. To set logging at a lower level, select the `Show All Loggers` checkbox and then you can set the explicit level on each of the processes components. The most helpful logger would be setting DBUG for com.bwssystems.HABridge.hue.HueMulator component. Changing this and then selecting the `Update Log Levels` button applies the new log settings.
92
-
### Helper Tabs for Device additions
109
+
### Bridge Device Additions
93
110
You must configure devices before you will have any thing for the Echo or other contoller that is connected to the ha-bridge to receive.
94
111
#### Helpers
95
112
The easy way to get devices configured is with the use of the helpers for the Vera or Harmony, Nest and Hue to create devices that the bridge will present.
@@ -100,11 +117,17 @@ The helper tabs will also show you what you have already configured for that tar
100
117
#### The Manual Add Tab
101
118
Another way to add a device is through the Manual Add Tab. This allows you to manually enter the name, the on and off URLs and select if there are custom handling with the type of call that can be made. This allows for control of anything that has a distinct request that can be executed so you are not limited to the Vera, Harmony, Nest or other Hue.
102
119
103
-
The format of these can be the default HTTP request which executes the URLs formatted as http://<yourstuffhere> as a GET. Other options to this are to select the HTTP Verb and add the data type and add a body that is passed with the request. Secure https is supported as well, just use https://<yoursecurecallhere>.
120
+
The format of these can be the default HTTP request which executes the URLs formatted as http://<yourstuffhere> as a GET. Other options to this are to select the HTTP Verb and add the data type and add a body that is passed with the request. Secure https is supported as well, just use https://<yoursecurecallhere>. When using POST and PUT, you have the ability to specify the body that will be sent with the request as well as the application type for the http call.
121
+
122
+
Headers can be added as well using a Json construct [{"name":"header type name","value":"the header value"}] with the format example:
Another option that is detected by the bridge is to use UDP or TCP direct calls such as udp://<ip_address>:<port>/<yourstuffhere> to send a UDP request. TCP calls are handled the same way as tcp://<ip_address>:<port>/<yourstuffhere>. If your data for the UDP or TCP request is formatted as "0x00F009B9" lexical hex format, the bridge will convert the data into a binary stream to send.
106
129
107
-
You can also use the value replacement constructs within these statements. Such as ${intensity..byte},${intensity.percent},${intensity.math(X*1)}
130
+
You can also use the value replacement constructs within these statements. Such as using the expressions ${intensity.percent} for 0-100 or ${intensity.byte} for 0-255 for straight pass through of the value or items that require special calculated values using ${intensity.math()} i.e. "${intensity.math(X/4)}".
The release as of v2.0.0 will no support the execution of a local script or program. This will blindly fire off a process to run and is bound by the privileges of the java process.
162
+
163
+
To configure this type of manual add, you will need to select the Device type of "Execute Script/Program".
164
+
165
+
In the URL areas, the format of the execution is just providing what command line you would like to run, or using the multiple call item construct described above.
0 commit comments