FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: en-trust am 18 März 2018, 11:56:30

Titel: Bareword "Mo" not allowed
Beitrag von: en-trust am 18 März 2018, 11:56:30
Ich meine im wiki gelesen zu haben, dass man auch statt der zahlen Mo-Fr beispielsweise verwenden kann.
Klappt aber scheinbar nicht.

error
condition c02: Bareword "Mo" not allowed while "strict subs" in use at (eval 1738286) line 1. Bareword "Sa" not allowed while "strict subs" in use at (eval 1738286) line 1.


([Modus_Licht] eq "Auto" and [Tageslicht] eq "dunkel") (set WZ.Vitrinenleuchte_CUL.dummy on)
DOELSEIF ([Modus_Licht] eq "Auto" and (Mo-Fr[22:00:00] or Sa-So[23:30:00])) (set WZ.Vitrinenleuchte_CUL.dummy off)
DOELSEIF (set WZ.Vitrinenleuchte_CUL.dummy off)
Titel: Antw:Bareword "Mo" not allowed
Beitrag von: TomLee am 18 März 2018, 12:05:50
Hi,

gleich das erste Beispiel der commandref zeigt die Syntax etwas anders.

define di_clock_radio DOIF ([06:30|Mo Di Mi] or [08:30|Do Fr Sa So]) (set radio on) DOELSEIF ([08:00|Mo Di Mi] or [09:30|Do Fr Sa So]) (set radio off)

Gruß

Thomas
Titel: Antw:Bareword "Mo" not allowed
Beitrag von: en-trust am 18 März 2018, 13:03:08
Ok, hab die Tage geändert.

([Modus_Licht] eq "Auto" and [Tageslicht] eq "dunkel") (set WZ.Vitrinenleuchte_CUL.dummy on)
DOELSEIF ([Modus_Licht] eq "Auto" and ([22:00|So Mo Di Mi Do] or [23:30|Fr Sa])) (set WZ.Vitrinenleuchte_CUL.dummy off)
DOELSEIF (set WZ.Vitrinenleuchte_CUL.dummy off)


Nächster error...

error
condition c03: Bareword "Vitrinenleuchte_CUL" not allowed while "strict subs" in use, line 1.
Titel: Antw:Bareword "Mo" not allowed
Beitrag von: CoolTux am 18 März 2018, 13:05:19
DOELSEIF (set WZ.Vitrinenleuchte_CUL.dummy off)

Bedingung setzen oder DOELSE nehmen
Titel: Antw:Bareword "Mo" not allowed
Beitrag von: en-trust am 18 März 2018, 17:02:23
Danke