Hallo, ich habe ein problem mit
CFGFN
DEF nuc.192.168.178.32:7072 LOG:Schalter_2.*
Host nuc.192.168.178.32:7072
NAME master
NEXT_OPEN 1448202932
NR 343
PARTIAL
STATE disconnected
TYPE FHEM2FHEM
informType LOG
regexp Schalter_2.*
Warum steht state auf disconnect?
Mein Progamm
im master
define Schalter_2 dummy
attr Schalter_2 room FHEM2FHEM
define egpumpe dummy
attr egpumpe eventMap on:on off:off
attr egpumpe room Schalter
attr egpumpe webCmd on:off
define egpumpe_action notify egpumpe.* { \
my $action_value = ReadingsVal("egpumpe","state","");;\
if ($action_value eq "on") { \
fhem ("set Schalter_2 set egpumpe on");; } \
if ($action_value eq "off") { \
fhem ("set Schalter_2 set egpumpe off");; } \
}
in Slave
define master FHEM2FHEM nuc.192.168.178.32:7072 LOG:Schalter_2.*
define n_Schalter_2 notify Schalter_2.* {Log 3, "$NAME: $EVENT";;fhem("$EVENT")}
define egpumpe RPI_GPIO 17
attr egpumpe direction output
attr egpumpe eventMap on:on off:off
attr egpumpe room Belueftung
attr egpumpe webCmd on:off
Gruss Klaus