Max Cube Binding - lesash/openhab GitHub Wiki
Documentation of the MAX!Cube Binding Bundle
Content of this page
<wiki:toc max_depth="2" />
Introduction
Please note that the MAX!Cube binding will not be available before openHAB 1.4.
The openHAB MAX!Cube binding allows to connect to ELV MAX!Cube Lan Gateway installations. The binding allows to communicate with the MAX! devices through the MAX!Cube Lan Gateway.
To communicate with MAX! devices, a already setup MAX! environment including a MAX!Cube Lan Gateway is required. In addition, the binding expects an already set up MAX environment.
MAX!Cube Binding Configuration
You need to configure at least the MAX!Cube Lan Gateway IP address in the openhab.cfg file. If not configured via DHCP, the factory default address of the MAX!Cube is 192.168.0.222.
################################ MAX!Cube Binding ##########################################
#
# MAX!Cube LAN gateway IP address
maxcube:ip=192.168.0.222
# MAX!Cube port (Optional, default to 62910)
# maxcube:port=62910
# MAX!Cube refresh interval in ms (Optional, default to 10000)
# maxcube:refreshInterval=10000
Additional you can configure the port the MAX!Cube communicates with openHAB. By default this is 62910 and should not need to be changed.
Furthermore, you can change the refresh interval openHAB communicates with the MAX!Cube. By default the refresh interval is set to 10 seconds.
Item Configuration
In order to bind an generic item to the device, you need to provide MAX!Cube configuration settings in your item file (in the folder configurations/items) containing at least the serial number of the device. The syntax of the binding configuration strings accepted is the following:
maxcube="<serialNumber>"
The state of a shutter contact can be retrieved via the generic item binding. To display the shutter state, you need to use a Contact item.
Contact Office_Window "Office Window [MAP(en.map):%s]" (MyGroup) { maxcube="JEQ0650337" }
For a heating thermostat, an identical configuration will provide the setpoint temperature of the heating thermostat (4.5° corresponds to OFF shown on the thermostat display). To show the temperature setpoint you need to use a number item.
Number Heating_Max "Heating Thermostat [%.1f °C]" (MyGroup) { maxcube="JEQ0336148" }
The above examples would be shown as
https://dl.dropboxusercontent.com/u/7347332/web/maxcube.png
MAX heating thermostat devices show OFF when turned to the minimum or On when turned to the maximum. The openHAB MAX!Cube binding would show the values 4.5 for OFF and 30.5 for On instead.
If you would like to display OFF and on instead, you can apply a mapping and change the binding using this mapping to
Number Heating_Max "Heating Thermostat [MAP(maxcube.map):%s]" (MyGroup) { maxcube="JEQ0336148" }
Instead of values 4.5 and 30.5 the results would look like
https://dl.dropboxusercontent.com/u/7347332/web/max_on_off_small.png
To apply this mapping you need to copy the maxcube.map mapping file into the configuration/transformation folder within the openHAB directory.