Skip to content

Commit 44dbac0

Browse files
committed
added popp-zweather configuration file
1 parent cf702b1 commit 44dbac0

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

Config/manufacturer_specific.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,9 @@
494494
<Product type="1100" id="0002" name="123580 Plug-in Dimmer" config="popp/123580.xml" />
495495
<Product type="0001" id="0001" name="123658 Plug-in Switch plus Power Meter" config="popp/123658.xml" />
496496
</Manufacturer>
497+
<Manufacturer id="0169" name="Popp">
498+
<Product type="0001" id="0001" name="ZWeather" config="popp/zweather.xml" />
499+
</Manufacturer>
497500
<Manufacturer id="0064" name="Popp / Duwi">
498501
<Product type="0001" id="0000" name="ZW EDAN 300 Flush Mounted Dimmer" />
499502
<Product type="1000" id="0002" name="Flush Mounted Switch"/>

Config/popp/zweather.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Product xmlns='http://code.google.com/p/open-zwave/'>
3+
4+
<!-- Popp: Z-Weather -->
5+
6+
<!-- Configuration -->
7+
<CommandClass id="112">
8+
<Value type="byte" genre="config" instance="1" index="1" label="Wind speed action threshold" size="1" min="0" max="30" units="ms" value="6">
9+
<Help>Crossing this parameter on the rising edge, Z-Weather sends a basic set to the associated
10+
groups, serves the lifeline and sends a wake up notification, Valid values: 0-30 m/s, where 0 means no notification on too much wind, Default: 6</Help>
11+
</Value>
12+
13+
<Value type="byte" genre="config" instance="1" index="2" label="Twilight action threshold" size="1" min="0" max="100" units="%" value="37">
14+
<Help>Crossing this parameter from night to day, association group 3 is informed. Crossing this
15+
parameter from day to night, association group 4 is informed, Valid values: 0-100 %, where 0 means off, Default: 37 (street lightning)</Help>
16+
</Value>
17+
</CommandClass>
18+
19+
<!-- Association Groups -->
20+
<!-- At threshold, a BASIC_SET is send to the associated nodes of group 2-4. -->
21+
<CommandClass id="133">
22+
<Associations num_groups="4">
23+
<Group index="1" max_associations="1" label="Lifeline" auto="true"/>
24+
<Group index="2" max_associations="5" label="Too much wind" auto="true"/>
25+
<Group index="3" max_associations="5" label="Getting bright" auto="true"/>
26+
<Group index="4" max_associations="5" label="Getting dark" auto="true"/>
27+
</Associations>
28+
</CommandClass>
29+
30+
</Product>
31+

hardware/openzwave/control_panel/ozwcp.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,15 @@ void COpenZWaveControlPanel::web_get_values(int i, TiXmlElement *ep)
994994
string str;
995995
TiXmlText *textElement;
996996
if (Manager::Get()->GetValueAsString(id, &str))
997+
{
998+
//make valid string
999+
for (size_t ii = 0; ii < str.size(); ii++)
1000+
{
1001+
if (str[ii] < 0x20)
1002+
str[ii] = ' ';
1003+
}
9971004
textElement = new TiXmlText(str.c_str());
1005+
}
9981006
else
9991007
textElement = new TiXmlText("");
10001008
if (id.GetType() == ValueID::ValueType_Decimal) {

0 commit comments

Comments
 (0)