diff --git a/FHEM/82_LGTV_WebOS.pm b/FHEM/82_LGTV_WebOS.pm new file mode 100644 index 0000000..d2603b5 --- /dev/null +++ b/FHEM/82_LGTV_WebOS.pm @@ -0,0 +1,401 @@ +############################################################################### +# +# Developed with VSCodium and richterger perl plugin. +# +# (c) 2017-2022 Copyright: Marko Oldenburg (fhemdevelopment at cooltux dot net) +# All rights reserved +# +# Special thanks goes to comitters: +# - Vitolinker / Commandref +# +# +# This script is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# any later version. +# +# The GNU General Public License can be found at +# http://www.gnu.org/copyleft/gpl.html. +# A copy is found in the textfile GPL.txt and important notices to the license +# from the author is found in LICENSE.txt distributed with these scripts. +# +# This script is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# +# $Id: +# +############################################################################### +package FHEM::LGTV_WebOS; + +use strict; +use warnings; + +require FHEM::Devices::LGTV::LGTVWebOS; + +use FHEM::Meta; + +use GPUtils qw(GP_Import); + +#-- Run before package compilation +BEGIN { + #-- Export to main context with different name + GP_Import(qw( readingFnAttributes)); +} + +sub ::LGTV_WebOS_Initialize { goto &Initialize } + +sub Initialize { + my $hash = shift; + + # Provider + $hash->{ReadFn} = \&FHEM::Devices::LGTV::LGTVWebOS::Read; + $hash->{WriteFn} = \&FHEM::Devices::LGTV::LGTVWebOS::Write; + + # Consumer + $hash->{SetFn} = \&FHEM::Devices::LGTV::LGTVWebOS::Set; + $hash->{DefFn} = \&FHEM::Devices::LGTV::LGTVWebOS::Define; + $hash->{UndefFn} = \&FHEM::Devices::LGTV::LGTVWebOS::Undef; + $hash->{AttrFn} = \&FHEM::Devices::LGTV::LGTVWebOS::Attr; + $hash->{AttrList} = + "disable:1 " + . "channelGuide:1 " + . "pingPresence:1 " + . "wakeOnLanMAC " + . "wakeOnLanBroadcast " + . "wakeupCmd " + . "keepAliveCheckTime " + . $readingFnAttributes; + + return FHEM::Meta::InitMod( __FILE__, $hash ); +} + +1; + +__END__ + +=pod +=item device +=item summary Controls LG SmartTVs run with WebOS Operating System +=item summary_DE Steuert LG SmartTVs mit WebOS Betriebssystem + +=begin html + + +

LGTV_WebOS

+ + + +=end html + +=begin html_DE + + +

LGTV_WebOS

+