1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-07 22:29:19 +00:00

10_EnOcean: actuator.01: pilot wire mode response changed, smokeDetector.02: attributes signOfLife and signOfLifeInterval

git-svn-id: https://svn.fhem.de/fhem/trunk@18069 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klaus.schauer 2018-12-27 17:16:15 +00:00
parent 65d8986c0f
commit b171675f11

View File

@ -7116,9 +7116,11 @@ sub EnOcean_Parse($$)
push @event, "3:$event:$msg"; push @event, "3:$event:$msg";
$hash->{helper}{lastEvent} = $db[0]; $hash->{helper}{lastEvent} = $db[0];
} }
if (AttrVal($name, "signOfLife", 'on') eq 'on') {
RemoveInternalTimer($hash->{helper}{timer}{alarm}) if(exists $hash->{helper}{timer}{alarm}); RemoveInternalTimer($hash->{helper}{timer}{alarm}) if(exists $hash->{helper}{timer}{alarm});
@{$hash->{helper}{timer}{alarm}} = ($hash, 'alarm', 'dead_sensor', 1, 5); @{$hash->{helper}{timer}{alarm}} = ($hash, 'alarm', 'dead_sensor', 1, 5);
InternalTimer(gettimeofday() + 1440, 'EnOcean_readingsSingleUpdate', $hash->{helper}{timer}{alarm}, 0); InternalTimer(gettimeofday() + AttrVal($name, "signOfLifeInterval", 1440), 'EnOcean_readingsSingleUpdate', $hash->{helper}{timer}{alarm}, 0);
}
} elsif ($st eq "windSpeed.00") { } elsif ($st eq "windSpeed.00") {
# wind speed threshold detector # wind speed threshold detector
@ -10385,7 +10387,7 @@ sub EnOcean_Parse($$)
} elsif ($cmd == 10) { } elsif ($cmd == 10) {
# pilot wire mode response # pilot wire mode response
my $roomCtrlMode = $db[0] & 3; my $roomCtrlMode = $db[0] & 7;
my %roomCtrlMode = ( my %roomCtrlMode = (
0 => "off", 0 => "off",
1 => "comfort", 1 => "comfort",
@ -19177,6 +19179,10 @@ EnOcean_Delete($$)
<li>state: smoke-alarm|off</li> <li>state: smoke-alarm|off</li>
</ul><br> </ul><br>
Set attr subType to smokeDetector.02 manually. Set attr subType to smokeDetector.02 manually.
A monitoring period can be set for signOfLife telegrams of the sensor, see
<a href="#EnOcean_signOfLife">signOfLife</a> and <a href="#EnOcean_signOfLifeInterval">signOfLifeInterval</a>.
Default is "on" and an interval of 1440 sec.
</li> </li>
<br><br> <br><br>