Hauptmenü

Bareword "Mo" not allowed

Begonnen von en-trust, 18 März 2018, 11:56:30

Vorheriges Thema - Nächstes Thema

en-trust

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)

TomLee

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

en-trust

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.

CoolTux

DOELSEIF (set WZ.Vitrinenleuchte_CUL.dummy off)

Bedingung setzen oder DOELSE nehmen
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

en-trust