From 90345b7a7261d77aa25ed948593e144d79d52076 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Wed, 9 Dec 2009 13:15:16 +0000 Subject: [PATCH] DEFINED & INITIALIZED Macros git-svn-id: https://svn.fhem.de/fhem/trunk@502 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/docs/commandref.html | 23 +++++++++++++++++++++++ fhem/fhem.pl | 9 +++++++-- 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index f13ed666e..e1091bcfc 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -552,3 +552,4 @@ - bugfix: Path in the examples fixed (got corrupted) - bugfix: PachLog fixes from Axel - bugfix: HOWTO/Examples revisited for correctness + - bugfix: DEFINED & INITIALIZED triggers. diff --git a/fhem/docs/commandref.html b/fhem/docs/commandref.html index 41d5d1fb5..cfc7466a5 100644 --- a/fhem/docs/commandref.html +++ b/fhem/docs/commandref.html @@ -3722,6 +3722,20 @@ A line ending with \ will be concatenated with the next one, so long lines
  • Each undefined device (FS20, HMS, FHT) will be reported with the device name "UNDEFINED". The % parameter will contain the type (FS20, HMS100T, etc) and device number, separated by a space.
  • + +
  • After defining a device, the event "DEFINED" will be triggered. This + can be used in the fhem.cfg to set some values of the device.
  • + +
  • After initialization finished, the event "INITIALIZED" for the device + "global" will be triggered.
  • + +
  • Notify can be used to store macros for manual execution. Use the trigger command to execute the macro. E.g.
    +
    +          fhem> define MyMacro notify MyMacro { Log 1, "Hello"}
    +          fhem> trigger MyMacro
    + +
    @@ -4356,6 +4370,15 @@ isday

    Perl specials