2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@11799 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wzut 2016-07-16 16:52:34 +00:00
parent 67939b980f
commit 55a874a0b5

View File

@ -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'})