define on_till_timer_off notify .*:on-till.* { if($TYPE eq "dummy") { my $NAMEoff = $NAME . '_off'; if($defs{$NAMEoff}) { fhem "modify $NAMEoff $EVTPART1"; } else { my $room = AttrVal("$NAME", "room", "Unsorted"); fhem "define $NAMEoff at $EVTPART1 set $NAME off"; fhem "attr $NAMEoff room $room"; }; }; }

source: http://www.fhemwiki.de/wiki/On-for-timer_zur%C3%BCcksetzen

fhem on_till for dummies