FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: IcedEarth am 20 Juli 2020, 19:07:43

Titel: off-till-overnight und eventmap
Beitrag von: IcedEarth am 20 Juli 2020, 19:07:43
Guten Abend,
ich versuche ein Gerät mittels off-till-overnight 01:00 auszuschalten. Gleichzeitig will ich es aber per Eventmap auf 1xAus mappen:
/off-till-overnight 01:00:1xAus/
on:An/
off:Aus/


Leider klappt das natürlich so nicht wegen dem Doppelpunkt. Gibt es eine Möglichkeit das zu umgehen / zu escapen? mit \ habe ich es schon versucht - führt aber leider zum Absturz von FHEM.
...%3A geht ebenfalls nicht...
...: gibt leider den Fehler "off-till-overnight: Wrong timespec 01:00: either HH:MM:SS or {perlcode}"...

Viele Grüße
Titel: Antw:off-till-overnight und eventmap
Beitrag von: amenomade am 20 Juli 2020, 22:03:09
Schau mal die explizite Variante von eventMap in CommandRef
Titel: Antw:off-till-overnight und eventmap
Beitrag von: IcedEarth am 20 Juli 2020, 22:20:31
Danke,
habe es jetzt so konfiguriert:
{ dev=>{'on'=>'on','off'=>'off'}, usr=>{'An'=>'on','Aus'=>'off','1xAus'=>'off-till-overnight 01:00'} }
Sieht man irgendwo schon, ob das geklappt hat? Habe nichts im Eventlog gesehen und es wurde auch kein at oder sowas angelegt...

Viele Grüße
Titel: Antw:off-till-overnight und eventmap
Beitrag von: IcedEarth am 22 Juli 2020, 15:47:33
Ok, anscheinend funktioniert mein Code so nicht.
Musste für den usr part auch noch off-till-overnight eintragen:
{ dev=>{'on'=>'on','off'=>'off','off-till-overnight'=>'off-till-overnight'}, usr=>{'An'=>'on','Aus'=>'off','1xAus'=>'off-till-overnight 01:00'} }
So wird dann entsprechend auch das off-till-overnight at definiert.

Danke!