Skip to content

Commit 4e0a719

Browse files
committed
merge 2013-11-13 branch into trunk
1 parent b38e81f commit 4e0a719

File tree

148 files changed

+9045
-4470
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+9045
-4470
lines changed

INSTALL

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
Minimal Install Guide for OpenZWave!
2+
3+
For Unix's (including Mac, bsd's etc)
4+
=================
5+
execute Make in the Top Level Directory
6+
make
7+
8+
Libraries to link to (Static and Dynamic) will be in top level directory as
9+
well (but you can change that as detailed below with LIBDIR)
10+
11+
To Install:
12+
make install
13+
14+
Some Options you can set:
15+
"BUILD=(release|debug)" - Build a Release or Debug Version of the Library
16+
(Release is default)
17+
18+
"PREFIX=(path)" - Prefix to install the shared library into - Defaults to
19+
/usr/local
20+
21+
"LIBDIR=/tmp" - Path to place the libraries into after complication. A poor
22+
mans "make install" for simple Applications.
23+
24+
To use the options, specify them on the commandline when executing make eg:
25+
"BUILD=debug PREFIX=/opt/local make"
26+
27+
What Gets installed:
28+
When make install is called the following happens:
29+
30+
* Documentation:
31+
if you have DoxyGen, API documentation is installed into
32+
(PREFIX)/share/doc/openzwave-(version)/
33+
34+
* Shared Libary (libopenzwave.so.*):
35+
The Shared Library is installed into either (prefix)/lib64 (on 64
36+
bit platforms) or (prefix)/lib/ on 32 bit platforms)
37+
38+
* Header Files:
39+
Installed into (prefix)/include/openzwave/
40+
41+
* pkg-config file:
42+
Installed into (prefix)/lib(64)/pkgconfig/libopenzwave.pc
43+
44+
* Config files and Device Databases (manufacturer_specific.xml et al)
45+
Installed into (prefix)/etc/openzwave/
46+
47+
* MinOZW example program:
48+
Installed into (prefix)/bin/ directory
49+
50+
The Static Version of the library is never installed, but will be created in
51+
cpp/lib directory after a successfull make.
52+
53+
Windows Versions
54+
================
55+
56+
Visual Studio Solution Files and Mingw32 Makefiles are present in
57+
cpp/build/windows/. Select the correct Visual Studio or Mingw32 directory
58+
depending on the versions you have.
59+
60+
(Note, if building DLL's on Windows (currently a option in the vs2010
61+
solution) - You have to ensure you application is compiled with exactly the
62+
same compiler options and versions as OpenZWave - Otherwise strange things
63+
might happen)
64+
65+
For the .NET dll, the solution files exist in the dotnet/build/ directory
66+
67+
Sample Programs
68+
===============
69+
70+
For all platforms, there is a simple example program that will print out
71+
events as they happen on your ZWave network. This sample is called MinOZW
72+
and you can find the source in the cpp/examples directory. By default, these
73+
examples are built during the Make Install Stage. If you want compile them
74+
separately, you can use the "make examples" target.
75+
76+
For the .NET wrapper, there is a OZWForm application in
77+
dotnet/examples/OZWForm/. Please read the README file in that directory for
78+
further instructions
79+
80+
81+
82+

Makefile

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#
2+
# Makefile for OpenzWave Mac OS X applications
3+
# Greg Satz
4+
5+
# GNU make only
6+
7+
# requires libudev-dev
8+
9+
.SUFFIXES: .d .cpp .o .a
10+
.PHONY: default clean install
11+
12+
13+
top_srcdir := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
14+
top_builddir ?= $(CURDIR)
15+
export top_builddir
16+
PREFIX ?= /usr/local
17+
export PREFIX
18+
19+
all:
20+
$(MAKE) -C $(top_srcdir)/cpp/build/ -$(MAKEFLAGS)
21+
$(MAKE) -C $(top_srcdir)/cpp/examples/MinOZW/ -$(MAKEFLAGS)
22+
23+
install:
24+
$(MAKE) -C $(top_srcdir)/cpp/build/ -$(MAKEFLAGS) $(MAKECMDGOALS)
25+
$(MAKE) -C $(top_srcdir)/cpp/examples/MinOZW/ -$(MAKEFLAGS) $(MAKECMDGOALS)
26+
27+
clean:
28+
$(MAKE) -C $(top_srcdir)/cpp/build/ -$(MAKEFLAGS) $(MAKECMDGOALS)
29+
$(MAKE) -C $(top_srcdir)/cpp/examples/MinOZW/ -$(MAKEFLAGS) $(MAKECMDGOALS)
30+
31+
cpp/src/vers.cpp:
32+
$(MAKE) -C $(top_srcdir)/cpp/build/ -$(MAKEFLAGS) cpp/src/vers.cpp
33+
34+
check:
35+
36+
include $(top_srcdir)/cpp/build/support.mk
37+
38+
dist-update:
39+
@echo "Updating List of Distribition Files"
40+
@$(SVN) --xml -v st > .distfiles
41+
@$(top_srcdir)/makedist
42+
43+
DIST_FORMATS ?= gzip
44+
45+
include $(top_srcdir)/distfiles.mk
46+
include $(top_srcdir)/dist.mk

config/BeNext/AlarmSound.xml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Product xmlns='http://code.google.com/p/open-zwave/'>
3+
<!-- COMMAND_CLASS_ALARM AlarmCmd_Get not supported -->
4+
<CommandClass id="113" getsupported="false" />
5+
6+
<!-- Configuration -->
7+
<CommandClass id="112">
8+
<Value type="byte" genre="config" instance="1" index="1" label="Set to Default" value="-1">
9+
<Help>Set all configuration values to default values (factory settings)</Help>
10+
</Value>
11+
<Value type="byte" genre="config" instance="1" index="2" label="Destination routine enabled" value="255">
12+
<Help>Enables an internal routine that periodically checks the Z-Wave device in assocication group 2</Help>
13+
</Value>
14+
<Value type="byte" genre="config" instance="1" index="3" label="Destination routine success time" value="60">
15+
<Help>Configure the time that the AlarmSound sends a new frame when previous frame was send successful</Help>
16+
</Value>
17+
<Value type="byte" genre="config" instance="1" index="4" label="Destination routine failed time" value="240">
18+
<Help>Configure the time that the AlarmSound sends a few frame when previous frame was send not successful</Help>
19+
</Value>
20+
<Value type="byte" genre="config" instance="1" index="5" label="Temperature calibration offset (byte 1)" value="0">
21+
<Help>A (signed) offset to calibrate the onboard temperature sensor</Help>
22+
</Value>
23+
<Value type="byte" genre="config" instance="1" index="6" label="Temperature calibration offset (byte 2)" value="0">
24+
<Help>A (signed) offset to calibrate the onboard temperature sensor</Help>
25+
</Value>
26+
<Value type="byte" genre="config" instance="1" index="7" label="Select index sound/light mode" value="1">
27+
<Help>The index of the sound mode when a switch binary/basic set frame is received</Help>
28+
</Value>
29+
<Value type="byte" genre="config" instance="1" index="8" label="Power offline sound/light mode" value="6">
30+
<Help>The index of the sound mode when the AlarmSound will start when it is unplugged</Help>
31+
</Value>
32+
<Value type="byte" genre="config" instance="1" index="9" label="Error sound/light mode" value="5">
33+
<Help>The index of the sound mode when the AlarmSound will play when it is unable to reach the device in association group 2</Help>
34+
</Value>
35+
<Value type="byte" genre="config" instance="1" index="10" label="Sound/Light index 1" value="-1">
36+
<Help>Params 10 until 27 are the values to configure the sound and light thtat are played when index 1 is selected</Help>
37+
</Value>
38+
<Value type="byte" genre="config" instance="1" index="28" label="Sound/Light index 2" value="-1">
39+
<Help>Params 28 until 45 are the values to configure the sound and light thtat are played when index 2 is selected</Help>
40+
</Value>
41+
<Value type="byte" genre="config" instance="1" index="46" label="Sound/Light index 3" value="-1">
42+
<Help>Params 46 until 63 are the values to configure the sound and light thtat are played when index 3 is selected</Help>
43+
</Value>
44+
<Value type="byte" genre="config" instance="1" index="64" label="Sound/Light index 4" value="-1">
45+
<Help>Params 64 until 81 are the values to configure the sound and light thtat are played when index 4 is selected</Help>
46+
</Value>
47+
<Value type="byte" genre="config" instance="1" index="82" label="Sound/Light index 5" value="-1">
48+
<Help>Params 82 until 99 are the values to configure the sound and light thtat are played when index 5 is selected</Help>
49+
</Value>
50+
<Value type="byte" genre="config" instance="1" index="100" label="Sound/Light index 6" value="-1">
51+
<Help>Params 100 until 117 are the values to configure the sound and light thtat are played when index 6 is selected</Help>
52+
</Value>
53+
</CommandClass>
54+
55+
<!-- Association Groups -->
56+
<CommandClass id="133">
57+
<Associations num_groups="2">
58+
<Group index="1" max_associations="1" label="Group 1" auto="false"/>
59+
<Group index="2" max_associations="1" label="Group 2" auto="false"/>
60+
</Associations>
61+
</CommandClass>
62+
</Product>

config/aeon_labs/doorwindow.xml

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,47 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- Aeon Labs Door/Window Sensor -->
33
<Product xmlns='http://code.google.com/p/open-zwave/'>
4-
<!-- Configuration Parameters not supported -->
5-
<!-- Association Groups -->
6-
<CommandClass id="133">
7-
<!-- Information from http://www.pepper1.net/zwavedb/uploads/resources/1804efacf71a36402c53209c0991c04f20b31588.pdf -->
8-
<!-- Or is original entry correct?: max_associations="5" label="Report" -->
9-
<Associations num_groups="1">
10-
<Group index="1" max_associations="6" label="Reports" auto="true"/>
11-
</Associations>
12-
</CommandClass>
4+
<!-- Configuration -->
5+
<CommandClass id="112">
6+
<Value type="byte" genre="config" instance="1" index="1" label="Toggle the sensor binary report value when the Magnet switch is opened/closed." min="0" max="1" value="0">
7+
<Help>0, Open: FF, Close: 00; 1, Open: 00, Close: FF
8+
Default setting: 0
9+
</Help>
10+
</Value>
11+
<Value type="byte" genre="config" instance="1" index="2" label="Enable wake up 10 minutes when the power is switched on." min="0" max="1" value="0">
12+
<Help>0: Disable; 1: Enable
13+
Default setting: 0
14+
</Help>
15+
</Value>
16+
<Value type="byte" genre="config" instance="1" index="3" label="Toggle the basic set value when Magnet switch is opened/closed." min="0" max="1" value="0">
17+
<Help>0, Open: FF, Close: 00; 1, Open: 00, Close: FF;
18+
Default setting: 0
19+
</Help>
20+
</Value>
21+
<Value type="int" genre="config" instance="1" index="121" label="Determines which report will be sent when Magnet switch is opened/ closed." min="0" max="1" value="256">
22+
<Help>Which reports need to send automatically in timing intervals for group 1
23+
Bitsets:
24+
0 -> Battery report
25+
4 -> Sensor Binary
26+
8 -> Basic Set
27+
Default setting: 0x00000100 (Basic Set)
28+
</Help>
29+
</Value>
30+
<Value type="short" index="254" genre="config" label="Device Tag" units="" min="0" max="255" value="0">
31+
<Help>Device Tag</Help>
32+
</Value>
33+
<Value type="button" index="255" genre="config" label="Reset configuration settings to factory defaults" write_only="true" value="0" >
34+
<Help>Reset to factory defaults.</Help>
35+
</Value>
36+
</CommandClass>
37+
<!-- Basic set as report -->
38+
<CommandClass id="32" setasreport="true"/>
39+
<!-- Association Groups -->
40+
<CommandClass id="133">
41+
<!-- Information from http://www.pepper1.net/zwavedb/uploads/resources/1804efacf71a36402c53209c0991c04f20b31588.pdf -->
42+
<!-- Or is original entry correct?: max_associations="5" label="Report" -->
43+
<Associations num_groups="1">
44+
<Group index="1" max_associations="6" label="Reports" auto="true"/>
45+
</Associations>
46+
</CommandClass>
1347
</Product>

config/eurotronic/eur_stellaz.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Product xmlns='http://code.google.com/p/open-zwave/'>
3+
4+
<CommandClass id="64" >
5+
<Instance index="1" />
6+
<Value type="list" genre="user" instance="1" index="0" label="Mode">
7+
<Item label="Frost Protection" value="0" />
8+
<Item label="Comfort" value="1" />
9+
<Item label="Energy Saving" value="11" />
10+
<Item label="Direct Valve Control" value="31" />
11+
</Value>
12+
<SupportedModes>
13+
<Mode index="0" label="Frost Protection" />
14+
<Mode index="1" label="Comfort" />
15+
<Mode index="11" label="Energy Saving" />
16+
<Mode index="31" label="Direct Valve Control" />
17+
</SupportedModes>
18+
</CommandClass>
19+
<CommandClass id="67" base="0">
20+
<Instance index="1" />
21+
<Value type="int" genre="user" instance="1" index="1" label="Comfort setpoint" units="C" />
22+
<Value type="int" genre="user" instance="1" index="11" label="Energy saving setpoint" units="C" />
23+
<!-- <Value instance="1" index="7" action="remove" /> -->
24+
</CommandClass>
25+
26+
</Product>

0 commit comments

Comments
 (0)