defmod at_krotab_hourly at +*01:00:00\
{\
if (Value("krotab_fully") ne "on")\
{\
fhem ("set krotab_fully on");;\
fhem ("sleep 5;; set krotab_fully off")\
}\
}
attr at_krotab_hourly room lab
Internals:
CFGFN
COMMAND {
if (Value("krotab_fully") ne "on")
{
fhem ("set krotab_fully on");
fhem ("sleep 5; set krotab_fully off")
}
}
DEF +*01:00:00
{
if (Value("krotab_fully") ne "on")
{
fhem ("set krotab_fully on");
fhem ("sleep 5; set krotab_fully off")
}
}
NAME at_krotab_hourly
NR 65
NTM 23:09:56
PERIODIC yes
RELATIVE yes
REP -1
STATE Next: 23:09:56
TIMESPEC 01:00:00
TRIGGERTIME 1532725796.95752
TRIGGERTIME_FMT 2018-07-27 23:09:56
TYPE at
READINGS:
2018-07-27 22:09:56 state Next: 23:09:56
Attributes:
room lab
attr at_krotab_hourly alignTime 00:00
startTimes: at_krotab_hourly is not relative
Übersehe ich etwas?
2018.07.27 22:24:07 4: WEB_192.168.1.40_37528 GET /fhem?cmd=%7BAttrVal(%22at_krotab_hourly%22%2C%22alignTime%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_224897081122576; BUFLEN:0
2018.07.27 22:24:07 5: Cmd: >{AttrVal("at_krotab_hourly","alignTime","")}<
2018.07.27 22:24:07 4: WEB: /fhem?cmd=%7BAttrVal(%22at_krotab_hourly%22%2C%22alignTime%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_224897081122576 / RL:21 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/
2018.07.27 22:24:11 4: WEB_192.168.1.40_37528 POST /fhem?cmd.attrat_krotab_hourly%3Dattr%20at_krotab_hourly%20alignTime%2000%3A00&XHR=1&fwcsrf=csrf_224897081122576&fw_id=98; BUFLEN:0
2018.07.27 22:24:11 5: Cmd: >attr at_krotab_hourly alignTime 00:00<
2018.07.27 22:24:11 4: WEB: /fhem?cmd.attrat_krotab_hourly%3Dattr%20at_krotab_hourly%20alignTime%2000%3A00&XHR=1&fwcsrf=csrf_224897081122576&fw_id=98 / RL:65 / text/plain; charset=UTF-8 / Content-Encoding: gzip
Dir fehlt das Leerzeichen zwischen der Zeitangabe des at und der oeffnenden geschweiften Klammer Deiner perl-Anweisung:
defmod at_krotab_hourly at +*01:00:00 \
{\
if (Value("krotab_fully") ne "on")\
{\
fhem ("set krotab_fully on");;\
fhem ("sleep 5;; set krotab_fully off")\
}\
}
Gruss Helmut
Besten Dank Helmut!
Wenn man sich angewöhnt, die erste öffnende geschweifte Klammer immer mit in die erste Zeile zu setzen, kann das nicht passieren.