Hi all,
after the recent myHS outage, some bright spark (integlikewhoa) suggested that we can use HA bridge to run a nice little jar locally on our servers to basically act as a gateway for our collective echoes and have direct control instead of the usual "tell homeseer to do x".
To spread the wealth, here's some quick and dirty instructions to get started on windows, please feel free to add any comments or suggestions, especially need something straightforward for linux users.
Info here:
https://github.com/bwssytems/ha-bridge
Download latest Jar/java here:
https://github.com/bwssytems/ha-bridge/releases
Firstly, enable JSON in Homeseer:
Click Tools, Setup. Then select Network.
Scroll down to Remote Control Settings, then tick the two boxes, leaving the other as default.
All the below assumes you've already installed java, and have it in the system path.
To confirm, run from a command prompt:
java -version
Create a directory and copy the ha-bridge-3.5.1.jar file into it.
Run within the command prompt:
java -jar -Dserver.port=85 ha-bridge-3.5.1.jar
(This starts the process listening on port 85 - note it is case sensitive for the switch for the port)
Note: configure your firewall to allow the ports - eg 85 for http control, and 50000 for the upnp stuff
Point a browser at it (e.g.
)
Create all of your devices using the spoken name you want to call it - e.g. kitchen light, living room TV, etc
the device creation page I used the following:
device type: custom
Map type: vera device
On URL:
Off URL:
<this will depend on your device ref>
Http verb: GET
Content type: application/json
Once created, test the actions by going to the home page of the bridge configuration, then click the test on/test off.
After all have been created and tested, go into the alexa app and discover devices. It should find them all and you can
then control them on and off. You can also create groups in the app to do mass on/off events.
It's all json control, so if you want to fire an event instead of set a device:
<replace spaces with url encoded %20>
Once you're happy, you can save the config, it'll save in a subfolder where the .jar file is stored. Then, to start it
create a batch/cmd file with just:
and pop it into your startup folder (windows 10, run shell:startup to open the folder)
after the recent myHS outage, some bright spark (integlikewhoa) suggested that we can use HA bridge to run a nice little jar locally on our servers to basically act as a gateway for our collective echoes and have direct control instead of the usual "tell homeseer to do x".
To spread the wealth, here's some quick and dirty instructions to get started on windows, please feel free to add any comments or suggestions, especially need something straightforward for linux users.
Info here:
https://github.com/bwssytems/ha-bridge
Download latest Jar/java here:
https://github.com/bwssytems/ha-bridge/releases
Firstly, enable JSON in Homeseer:
Click Tools, Setup. Then select Network.
Scroll down to Remote Control Settings, then tick the two boxes, leaving the other as default.
All the below assumes you've already installed java, and have it in the system path.
To confirm, run from a command prompt:
java -version
Create a directory and copy the ha-bridge-3.5.1.jar file into it.
Run within the command prompt:
java -jar -Dserver.port=85 ha-bridge-3.5.1.jar
(This starts the process listening on port 85 - note it is case sensitive for the switch for the port)
Note: configure your firewall to allow the ports - eg 85 for http control, and 50000 for the upnp stuff
Point a browser at it (e.g.
Code:
http://192.168.x.x:85
Create all of your devices using the spoken name you want to call it - e.g. kitchen light, living room TV, etc
the device creation page I used the following:
device type: custom
Map type: vera device
On URL:
Code:
http://192.168.x.x/JSON?request=controldevicebyvalue&ref=7351&value=255
Code:
http://192.168.x.x/JSON?request=controldevicebyvalue&ref=7351&value=0
Http verb: GET
Content type: application/json
Once created, test the actions by going to the home page of the bridge configuration, then click the test on/test off.
After all have been created and tested, go into the alexa app and discover devices. It should find them all and you can
then control them on and off. You can also create groups in the app to do mass on/off events.
It's all json control, so if you want to fire an event instead of set a device:
Code:
http://192.168.x.x/JSON?request=runevent&group=Control&name=set%20nighttime%20mode%20on
Once you're happy, you can save the config, it'll save in a subfolder where the .jar file is stored. Then, to start it
create a batch/cmd file with just:
Code:
c:\ha-bridge\java -jar ha-bridge-3.5.1.jar
Comment