mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 01:46:08 +00:00
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
This commit is contained in:
parent
1722f84332
commit
3dd4829aca
@ -229,7 +229,7 @@ sub BRAVIA_Set($@) {
|
|||||||
elsif ( $a[1] eq "on" ) {
|
elsif ( $a[1] eq "on" ) {
|
||||||
Log3 $name, 2, "BRAVIA set $name " . $a[1];
|
Log3 $name, 2, "BRAVIA set $name " . $a[1];
|
||||||
|
|
||||||
if ( $presence eq "absent" ) {
|
if ( $power eq "off" ) {
|
||||||
readingsSingleUpdate($hash, "state", "set_on", 1);
|
readingsSingleUpdate($hash, "state", "set_on", 1);
|
||||||
my $macAddr = AttrVal( $name, "macaddr", "" );
|
my $macAddr = AttrVal( $name, "macaddr", "" );
|
||||||
$macAddr = ReadingsVal( $name, "macAddr", "") if ($macAddr eq "");
|
$macAddr = ReadingsVal( $name, "macAddr", "") if ($macAddr eq "");
|
||||||
@ -240,10 +240,6 @@ sub BRAVIA_Set($@) {
|
|||||||
$cmd = "POWER";
|
$cmd = "POWER";
|
||||||
BRAVIA_SendCommand( $hash, "ircc", $cmd );
|
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;
|
1;
|
||||||
=pod
|
=pod
|
||||||
|
=item summary controls a Sony TV device of series starting from 2011 via LAN
|
||||||
=begin html
|
=begin html
|
||||||
|
|
||||||
<a name="BRAVIA"></a>
|
<a name="BRAVIA"></a>
|
||||||
@ -1981,6 +1978,7 @@ sub BRAVIA_GetNormalizedName($) {
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
=end html
|
=end html
|
||||||
|
=item summary_DE steuert Sony TVs der BRAVIA-Serien ab dem Modelljahr 2011, via LAN-Verbindung
|
||||||
=begin html_DE
|
=begin html_DE
|
||||||
|
|
||||||
<a name="BRAVIA"></a>
|
<a name="BRAVIA"></a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user