From 75515b8cd7b5a34b72571a9369d8e22bb611588a Mon Sep 17 00:00:00 2001 From: borisneubert Date: Thu, 30 Aug 2012 17:21:23 +0000 Subject: [PATCH] minor correction in Calendar examples git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1820 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- docs/commandref.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/commandref.html b/docs/commandref.html index cfb85a718..b680eaacd 100644 --- a/docs/commandref.html +++ b/docs/commandref.html @@ -1550,12 +1550,12 @@ A line ending with \ will be concatenated with the next one, so long lines Think about a calendar with calendar events whose summaries (subjects, titles) are the names of devices in your fhem installation. You want the respective devices to switch on when the calendar event starts and to switch off when the calendar event ends.

- define SwitchActorOn notify MyCalendar:modeStarted.* { my $uid= "%EVTPART1";; my $actor= fhem("get C summary $uid");; fhem("set $actor on") }

- define SwitchActorOff notify MyCalendar:modeEnded.* { my $uid= "%EVTPART1";; my $actor= fhem("get C summary $uid");; fhem("set $actor off") } + define SwitchActorOn notify MyCalendar:modeStarted.* { my $uid= "%EVTPART1";; my $actor= fhem("get MyCalendar summary $uid");; fhem("set $actor on") }

+ define SwitchActorOff notify MyCalendar:modeEnded.* { my $uid= "%EVTPART1";; my $actor= fhem("get MyCalendar summary $uid");; fhem("set $actor off") }


You can also do some logging:

- define LogActors notify MyCalendar:mode(Started|Ended).* { my $reading= "%EVTPART0";; my $uid= "%EVTPART1";; my $actor= fhem("get C summary $uid");; Log 1, "Actor: $actor, Reading $reading" } + define LogActors notify MyCalendar:mode(Started|Ended).* { my $reading= "%EVTPART0";; my $uid= "%EVTPART1";; my $actor= fhem("get MyCalendar summary $uid");; Log 1, "Actor: $actor, Reading $reading" }