You can pick it up now.
Please have a look on the OpenRemoteHelper. It is in automation/modules/. It is loaded automatically, so user do not need to do anything to use it.
Note that we have changed a bit your original code to make a dedicated namespace in the URLs, improved a bit and unified nameings. Hope you will approve these changes.
Just in case, the Home Automation is in
github. You can do
Code: Select all
rm -Rf automation
git clone https://github.com/Z-Wave-Me/home-automation.git automation
cd automation
git checkout develop
and start to contribute it. We will accept your pull requests on github.
Here is the short manual. You can use it to improve your page on OpenRemote.org:
OpenRemote API was introduced in version Z-Way 1.5.0 controller. To control devices there are several HTTP commands:
http://IP:8083/ZAutomation/OpenRemote/Command/N/I/param
IP - Address of the controller RaZberry
Command - Сontrol command
N - device Number of Z-Wave
I - Inside a device can be physically multiple devices (channels), for example 2 relay or temperature sensor, motion sensor, light sensor. The Instance parameter is a channel number within the device. If a device has only one physical device, this option is 0.
param - Parameter, which is used with some teams, for example to set the dimmer 50%
Team
1) SwitchBinaryOn/N/I - Enables device
2) SwitchBinaryOff/N/I - Off device
3) SwitchBinaryStatus/N/I - Show on or off the device (on/off)
4) SwitchMultilevelSet/N/I/param - Open the blinds or dimming light level, param - dimming level, for example 50
5) SwitchMultilevelLevel/N/I - Show the percentage of open blinds or продиммирован light
6) SwitchMultilevelStatus/N/I - Show dimmer on/off, blinds open/closed
7) AlarmStatus/N - Show whether the alarm ,"on" alarm means
8) SensorBinaryStatus/N/I/Type - Show for determining whether a binary sensor (opening movement, leakage), "on" means work. Type - the Type of sensor is usually equal to 1
9) ThermostatLevel/N - Show temperature which must support thermostat
10) ThermostatSet/N/param - Set temperature, which must support a thermostat, param - temperature
11) ThermostatSetMode/N/Mode - Set the thermostat mode Off, Heat, Cool, Auto, Auxiliary, Resume, Fan Only, Furnace, Dry Air, Moist Air, Auto Change Over, Heat Energy Save, Save Energy Save Cool, Heat Away, Away, Cool, Full Power, Manufacturer Specific, Low Auto, On Low, Auto, High, On High, Auto Medium, On Medium
12) ThermostatModeName/N - Show the name of the regime, which is now set
13) BatteryLevel/N - Show charge batteries
14) MeterLevel/N/I/S - Show electricity consumption. S=0 for kWh; S=2 Watts
15) MeterReset/N/I - read Zero power consumption
16) TemperatureLevel/N/I - Show temperature
17) HumidityLevel/N/I - Show humidity
18) SensorMultilevel/N/I/S Is indication of the sensor S - conditional number of the sensor in the Z-Way
19) DoorLock/N - Close castle
20) DoorUnlock/N - Open the lock
Check the operability of the commands from the browser.
Turn on the light:
http://192.168.0.39:8083/ZAutomation/Op ... naryOn/5/0
Request temperature:
http://192.168.0.39:8083/ZAutomation/Op ... eLevel/8/0
Dimming light on 50%:
http://192.168.0.39:8083/ZAutomation/Op ... Set/6/0/50
Learn worked whether the motion sensor:
http://192.168.0.39:8083/ZAutomation/Op ... atus/4/0/1
"on"
To set temperature the thermostat 22 degrees:
http://192.168.0.39:8083/ZAutomation/Op ... atSet/8/22