Schalten von FS20 mit notify, Twilight und ss_weather

Begonnen von heinzfo, 21 Dezember 2014, 14:23:58

Vorheriges Thema - Nächstes Thema

heinzfo

Hallo miteinander

Ich versuche mit notify FS20 zu schalten, besser gesagt "dim75% 48"
Der set Befehl ist getestet und funktioniert.
In der config sieht das so aus: define StehlampeTwilightOn notify SunsetNbg.*:aktEvent:.*ss_weather set Stehlampe.wz dim50% 48
Zum Zeitpunkt ss_weather steht im Webfrontend bei diesem notify die entsprechende Uhrzeit.
Der set wird angesteuert aber nicht ausgeführt, im Logfile steht folgendes:
2014.12.20 16:11:13 3: StehlampeTwilightOn return value: Unknown argument dim50aktEvent:, choose one of dim06% usw.
Warum steht hier dim50aktEvent:

Schon mal danke für´s feedback

Dietmar63

% ist ein Sonderzeichen und wird im notify durch das aktuelle Ereignis ersetzt.
Das % soll mittelfristig durch %event oder so ersetzt werden, dann kann es zu solchen Problemen nicht mehr kommen.

In der Reference zu notify findest du folgende Erklärungen:
ZitatNotes:

    <pattern> is either the name of the triggering device, or devicename:event.
    <pattern> must completely (!) match either the device name, or the compound of the device name and the event. To identify the events use the inform command from the telnet prompt or the "Event Monitor" link in the browser (FHEMWEB), and wait for the event to be printed. See also the eventTypes device.
    in the command section you can access the event:
        The variable $EVENT will contain the complete event, e.g. measured-temp: 21.7 (Celsius)
        $EVTPART0,$EVTPART1,$EVTPART2,etc contain the space separated event parts (e.g. $EVTPART0="measured-temp:", $EVTPART1="21.7", $EVTPART2="(Celsius)". This data is available as a local variable in perl, as environment variable for shell scripts, and will be textually replaced for FHEM commands.
        $NAME contains the device triggering the event, e.g. myFht
    Note: the following is deprecated and will be removed in a future release. The described replacement is attempted if none of the above variables ($NAME/$EVENT/etc) found in the command.
        The character % will be replaced with the received event, e.g. with on or off or measured-temp: 21.7 (Celsius)
        It is advisable to put the % into double quotes, else the shell may get a syntax error.
        The character @ will be replaced with the device name.
        To use % or @ in the text itself, use the double mode (%% or @@).
        Instead of % and @, the parameters %EVENT (same as %), %NAME (same as @) and %TYPE (contains the device type, e.g. FHT) can be used. The space separated event "parts" are available as %EVTPART0, %EVTPART1, etc. A single % looses its special meaning if any of these parameters appears in the definition.

Wichtig ist der Satz:
ZitatTo use % or @ in the text itself, use the double mode (%% or @@).

Gruß Dietmar
FB7390, CUL, 2 FHT, FS20
modules: 98_WOL.pm, 98_Heating_Control.pm,   98_WeekdayTimer.pm, 98_RandomTimer.pm, 59_Twilight.pm

heinzfo

Hallo Dietmar63

Danke, das war´s, es geht jetzt!

Beste Grüße
Heinz