mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@11799 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
67939b980f
commit
55a874a0b5
@ -35,15 +35,16 @@
|
||||
|
||||
package main;
|
||||
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Time::HiRes qw(gettimeofday);
|
||||
use HttpUtils;
|
||||
use XML::Simple;
|
||||
use SetExtensions;
|
||||
|
||||
package EDIPLUG;
|
||||
use XML::Simple;
|
||||
|
||||
sub EDIPLUG_Initialize($);
|
||||
sub EDIPLUG_Define($$);
|
||||
sub EDIPLUG_Undef($$);
|
||||
@ -220,7 +221,8 @@ sub EDIPLUG_Read($$$)
|
||||
# EDIPLUGs geben ein nicht gueltigen Zeichensatz zurueck ( UTF8 instead utf-8 )
|
||||
$buffer =~s/UTF8/utf-8/g;
|
||||
|
||||
my $xmlres = XMLin($buffer);
|
||||
my $xml = XML::Simple->new(ForceArray => ['entry', 'link'], KeyAttr => []);
|
||||
my $xmlres = $xml->EDIPLUG::XMLin($buffer);
|
||||
|
||||
# Device.System.Power.State (Status der Steckdose)
|
||||
if (exists $xmlres->{CMD}->{'Device.System.Power.State'})
|
||||
|
Loading…
x
Reference in New Issue
Block a user