2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 13:24:56 +00:00

zwave/config: add second modelId Eurotronic Spirit

git-svn-id: https://svn.fhem.de/fhem/trunk@15484 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
krikan 2017-11-23 20:04:03 +00:00
parent 7ccfce6441
commit 9195d9e5f9
2 changed files with 30 additions and 4 deletions

View File

@ -58,6 +58,7 @@ my %sets = (
);
my %gets = (
"backgroundRSSI" => "3b", # GET_BACKGROUND_RSSI
"caps" => "07", # SERIAL_API_GET_CAPABILITIES
"ctrlCaps" => "05", # ZW_GET_CONTROLLER_CAPS
"homeId" => "20", # MEMORY_GET_ID
@ -561,6 +562,26 @@ ZWDongle_Get($@)
push @list, ("at ".($f==1 ? "9.6": ($f==2 ? "40":"100"))."kbps")
if(@list && $f =~ m/[123]/);
$msg = (@list ? join(" ", @list) : "N/A");
} elsif($cmd eq "backgroundRSSI") { ############################
my @list;
my $i=0;
for(my $off=4; $off<10; $off+=2) {
my $dec = hex(substr($msg, $off, 2));
if ($dec == 127 || $dec == 0) {
push @list, ("ch".($i+1).":N/A");
} elsif($dec == 126) {
push @list, ("ch".($i+1).":aboveMaxPower");
} elsif($dec == 125) {
push @list, ("ch".($i+1).":belowReceiverSensitivity");
} elsif($dec > 161 && $dec < 225) {
push @list, ("ch".($i+1).":".unpack('c', pack('C', $dec))." dBm");
} else {
push @list, ("ch".($i+1).":reservedValue");
}
$i++
}
$msg = join(" ", @list);
}
$cmd .= "_".join("_", @a) if(@a);
@ -1180,10 +1201,9 @@ ZWDongle_Ready($)
<li>homeId<br>
return the six hex-digit homeId of the controller.
</li>
<li>isFailedNode &lt;device&gt;<br>
return if a node is stored in the failed node list. &lt;device&gt; is
either device name or decimal nodeId.
<li>backgroundRSSI<br>
query the measured RSSI on the Z-Wave network
</li>
<li>caps, ctrlCaps, version<br>
@ -1191,6 +1211,11 @@ ZWDongle_Ready($)
only.
</li>
<li>isFailedNode &lt;device&gt;<br>
return if a node is stored in the failed node list. &lt;device&gt; is
either device name or decimal nodeId.
</li>
<li>neighborList [excludeDead] [onlyRep] &lt;device&gt;<br>
return neighborList of the &lt;device&gt;.<br>
&lt;device&gt; is either device name or decimal nodeId.<br>

View File

@ -358,6 +358,7 @@
<Product type="0001" id="0001" name="EUR_STELLAZ Wall Radiator Thermostat Valve Control" config="eurotronic/eur_stellaz.xml"/>
<Product type="0002" id="0001" name="EUR_COMETZ Wall Radiator Thermostat Valve Control" config="eurotronic/eur_cometz.xml"/>
<Product type="0003" id="0001" name="EUR_SPIRIT Wall Radiator Thermostat Valve Control" config="eurotronic/eur_spirit.xml" forumNr="77598"/>
<Product type="0003" id="0003" name="EUR_SPIRIT Wall Radiator Thermostat Valve Control" config="eurotronic/eur_spirit.xml" forumNr="77598"/>
</Manufacturer>
<Manufacturer id="0128" name="Eneco">
<Product type="0000" id="0000" name="ED2.0 Meter Adapter"/>