############################################################################### # # Developed with love # # (c) 2022-2022 Copyright: Sebastian Schwarz # # 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::GoECharger; use strict; use warnings; use GPUtils qw(GP_Import GP_Export); require FHEM::Devices::GoE::GoECharger; ## Import der FHEM Funktionen #-- Run before package compilation BEGIN { # Import from main context GP_Import( qw( readingFnAttributes ) ); } #-- Export to main context with different name GP_Export( qw( Initialize ) ); sub Initialize { my $hash = shift; # Provider $hash->{WriteFn} = \&Write; # Consumer $hash->{SetFn} = 'FHEM::Devices::GoE::GoECharger::Set'; $hash->{DefFn} = 'FHEM::Devices::GoE::GoECharger::Define'; $hash->{UndefFn} = 'FHEM::Devices::GoE::GoECharger::Undef'; $hash->{DeleteFn} = 'FHEM::Devices::GoE::GoECharger::Delete'; $hash->{RenameFn} = 'FHEM::Devices::GoE::GoECharger::Rename'; $hash->{NotifyFn} = 'FHEM::Devices::GoE::GoECharger::Notify'; $hash->{AttrFn} = 'FHEM::Devices::GoE::GoECharger::Attr'; $hash->{AttrList} = 'disable:1 ' . 'interval ' . $readingFnAttributes; $hash->{parseParams} = 1; return FHEM::Meta::InitMod( __FILE__, $hash ); } 1; =pod =item device =item summary Modul to control go e charger =item summary_DE Modul zur Steuerung eines go e charger =begin html
define <name> GoECharger
define goe GoECharger
define <name> GoECharger
define goe GoECharger