11_FHT8V.pm: valve reading by set from fhainz (Forum #29843)

git-svn-id: https://svn.fhem.de/fhem/trunk@7115 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-12-02 06:51:20 +00:00
parent 5f51d16bf9
commit 93fc214a63

View File

@@ -78,6 +78,7 @@ FHT8V_Set($@)
if(@a != 3 || $a[2] !~ m/^\d+$/ || $a[2] < 0 || $a[2] > 100);
Log3 $n, 3, "FHT8V set $n $arg $a[2]";
$hash->{STATE} = sprintf("%d %%", $a[2]);
readingsSingleUpdate($hash, "valve", $a[2], 1);
IOWrite($hash, "", sprintf("T%s0026%02X", $hash->{addr}, $a[2]*2.55));
} elsif ($arg eq "pair" ) {