mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-15 16:19:11 +00:00
10_pilight_ctrl: add log messages (list devicename)
git-svn-id: https://svn.fhem.de/fhem/trunk@8797 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
eb09fd81c3
commit
50b9407097
@ -139,6 +139,8 @@ sub pilight_ctrl_CheckReadingState($)
|
||||
my $state = ReadingsVal($me,"state",undef);
|
||||
if (defined($state) && $state ne "opened" && $state ne "disconnected") {
|
||||
Log3 $me, 3, "$me(CheckReadingState): Unknown error: unnormal value for reading state";
|
||||
my $l = fhem("list $me",1);
|
||||
Log3 $me, 5, "$me(CheckReadingState): Unknown error: $l";
|
||||
setReadingsVal($hash, "state", undef, TimeNow());
|
||||
$hash->{STATE} = $hash->{helper}{CON};
|
||||
$hash->{STATE} = "opened" if ($hash->{helper}{CON} eq "connected");
|
||||
|
Loading…
x
Reference in New Issue
Block a user