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:
parent
67939b980f
commit
55a874a0b5
@ -35,15 +35,16 @@
|
|||||||
|
|
||||||
package main;
|
package main;
|
||||||
|
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Time::HiRes qw(gettimeofday);
|
use Time::HiRes qw(gettimeofday);
|
||||||
use HttpUtils;
|
use HttpUtils;
|
||||||
use XML::Simple;
|
|
||||||
use SetExtensions;
|
use SetExtensions;
|
||||||
|
|
||||||
|
package EDIPLUG;
|
||||||
|
use XML::Simple;
|
||||||
|
|
||||||
sub EDIPLUG_Initialize($);
|
sub EDIPLUG_Initialize($);
|
||||||
sub EDIPLUG_Define($$);
|
sub EDIPLUG_Define($$);
|
||||||
sub EDIPLUG_Undef($$);
|
sub EDIPLUG_Undef($$);
|
||||||
@ -220,7 +221,8 @@ sub EDIPLUG_Read($$$)
|
|||||||
# EDIPLUGs geben ein nicht gueltigen Zeichensatz zurueck ( UTF8 instead utf-8 )
|
# EDIPLUGs geben ein nicht gueltigen Zeichensatz zurueck ( UTF8 instead utf-8 )
|
||||||
$buffer =~s/UTF8/utf-8/g;
|
$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)
|
# Device.System.Power.State (Status der Steckdose)
|
||||||
if (exists $xmlres->{CMD}->{'Device.System.Power.State'})
|
if (exists $xmlres->{CMD}->{'Device.System.Power.State'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user