mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
57_SSCal: contrib 1.11.0
git-svn-id: https://svn.fhem.de/fhem/trunk@21199 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dc1ed6635f
commit
b309107ca6
@ -2183,18 +2183,19 @@ sub SSCal_doCompositeEvents ($$$) {
|
||||
my ($name,$abnr,$evref) = @_;
|
||||
my $hash = $defs{$name};
|
||||
|
||||
my ($summary,$begin,$status,$id,$event);
|
||||
my ($summary,$begin,$status,$isrepeat,$id,$event);
|
||||
|
||||
foreach my $bnr (@{$abnr}) {
|
||||
$summary = ReadingsVal($name, $bnr."_01_Summary", "");
|
||||
$begin = ReadingsVal($name, $bnr."_05_Begin", "");
|
||||
$status = ReadingsVal($name, $bnr."_17_Status", "");
|
||||
$isrepeat = ReadingsVal($name, $bnr."_55_isRepeatEvt", 0);
|
||||
$id = ReadingsVal($name, $bnr."_98_EventId", "");
|
||||
|
||||
$begin =~ s/\s/T/; # Formatierung nach ISO8601 (YYYY-MM-DDTHH:MM:SS) für at-Devices
|
||||
|
||||
if($begin) { # einen Composite-Event erstellen wenn Beginnzeit gesetzt ist
|
||||
$event = "composite: $id $begin $status $summary";
|
||||
$event = "composite: $id $isrepeat $begin $status $summary";
|
||||
CommandTrigger(undef, "$name $event");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user