############################################################################### # $Id$ package main; use strict; use warnings; use POSIX; use RESIDENTStk; our ( @RESIDENTStk_attr, %RESIDENTStk_subTypes ); # initialize ################################################################## sub GUEST_Initialize($) { my ($hash) = @_; $hash->{InitDevFn} = "RESIDENTStk_InitializeDev"; $hash->{DefFn} = "RESIDENTStk_Define"; $hash->{UndefFn} = "RESIDENTStk_Undefine"; $hash->{SetFn} = "RESIDENTStk_Set"; $hash->{AttrFn} = "RESIDENTStk_Attr"; $hash->{NotifyFn} = "RESIDENTStk_Notify"; $hash->{AttrPrefix} = "rg_"; $hash->{AttrList} = "disable:1,0 disabledForIntervals do_not_notify:1,0 " . "rg_states:multiple-strict,home,gotosleep,asleep,awoken,absent,none " . "subType:" . join( ',', @{ $RESIDENTStk_subTypes{en}{GUEST} } ) . " " . $readingFnAttributes; foreach (@RESIDENTStk_attr) { $hash->{AttrList} .= " " . $hash->{AttrPrefix} . $_; } return FHEM::Meta::InitMod( __FILE__, $hash ); } 1; =pod =item helper =item summary special virtual device to represent a guest of your home =item summary_DE spezielles virtuelles Device, welches einen Gast zu Hause repräsentiert =begin html

GUEST

=end html =begin html_DE

GUEST

=end html_DE =for :application/json;q=META.json 20_GUEST.pm { "author": [ "Julian Pawlowski " ], "x_fhem_maintainer": [ "loredo" ], "x_fhem_maintainer_github": [ "jpawlowski" ], "keywords": [ "Attendence", "Workers", "Presence", "RESIDENTS" ] } =end :application/json;q=META.json =cut