From e8ab9b813ac074a135afeab8f9297f5a1e318ae4 Mon Sep 17 00:00:00 2001 From: mersewsky Date: Wed, 14 Sep 2016 18:38:17 +0000 Subject: [PATCH] 70_BRAVIA.pm: Use WOL to switch TV on while in standby with state present git-svn-id: https://svn.fhem.de/fhem/trunk@12161 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/70_BRAVIA.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fhem/FHEM/70_BRAVIA.pm b/fhem/FHEM/70_BRAVIA.pm index 66cf42075..78a51e421 100644 --- a/fhem/FHEM/70_BRAVIA.pm +++ b/fhem/FHEM/70_BRAVIA.pm @@ -229,7 +229,7 @@ sub BRAVIA_Set($@) { elsif ( $a[1] eq "on" ) { Log3 $name, 2, "BRAVIA set $name " . $a[1]; - if ( $presence eq "absent" ) { + if ( $power eq "off" ) { readingsSingleUpdate($hash, "state", "set_on", 1); my $macAddr = AttrVal( $name, "macaddr", "" ); $macAddr = ReadingsVal( $name, "macAddr", "") if ($macAddr eq ""); @@ -240,10 +240,6 @@ sub BRAVIA_Set($@) { $cmd = "POWER"; BRAVIA_SendCommand( $hash, "ircc", $cmd ); } - } elsif ($power eq "off") { - readingsSingleUpdate($hash, "state", "set_on", 1); - $cmd = "POWER"; - BRAVIA_SendCommand( $hash, "ircc", $cmd ); } } @@ -1876,6 +1872,7 @@ sub BRAVIA_GetNormalizedName($) { 1; =pod +=item summary controls a Sony TV device of series starting from 2011 via LAN =begin html @@ -1981,6 +1978,7 @@ sub BRAVIA_GetNormalizedName($) { =end html +=item summary_DE steuert Sony TVs der BRAVIA-Serien ab dem Modelljahr 2011, via LAN-Verbindung =begin html_DE