initial push
This commit is contained in:
211
FHEM/73_GoECharger.pm
Normal file
211
FHEM/73_GoECharger.pm
Normal file
@ -0,0 +1,211 @@
|
||||
###############################################################################
|
||||
#
|
||||
# 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
|
||||
|
||||
<a name="GoECharger"></a>
|
||||
<h3>GoECharger</h3>
|
||||
<a name="GoEChargerdefine"></a>
|
||||
<b>Define</b>
|
||||
<ul><br>
|
||||
<code>define <name> GoECharger </code>
|
||||
<br><br>
|
||||
Example:
|
||||
<ul><br>
|
||||
<code>define goe GoECharger </code><br>
|
||||
</ul>
|
||||
<br><br>
|
||||
<a name="GoEChargerreadings"></a>
|
||||
<br><br>
|
||||
<b>Readings</b>
|
||||
<ul>
|
||||
<li>1st</li>
|
||||
<li>2nd</li>
|
||||
</ul>
|
||||
<br><br>
|
||||
<a name="GoEChargereset"></a>
|
||||
<b>set</b>
|
||||
<ul>
|
||||
<li>first</li>
|
||||
<li>secibd</li>
|
||||
</ul>
|
||||
<br><br>
|
||||
<a name="GoEChargereattributes"></a>
|
||||
<b>Attributes</b>
|
||||
<ul>
|
||||
<li>foo</li>
|
||||
<li>bar</li>
|
||||
</ul>
|
||||
</ul>
|
||||
|
||||
=end html
|
||||
=begin html_DE
|
||||
|
||||
<a name="GoECharger"></a>
|
||||
<h3>GoECharger</h3>
|
||||
<br>
|
||||
<a name="GoEChargerdefine"></a>
|
||||
<b>Define</b>
|
||||
<ul><br>
|
||||
<code>define <name> GoECharger</code>
|
||||
<br><br>
|
||||
Beispiel:
|
||||
<ul><br>
|
||||
<code>define goe GoECharger</code><br>
|
||||
</ul>
|
||||
<br><br>
|
||||
<a name="GoEChargerreadings"></a>
|
||||
<br><br>
|
||||
<b>Readings</b>
|
||||
<ul>
|
||||
<li>1st</li>
|
||||
<li>2nd</li>
|
||||
</ul>
|
||||
<br><br>
|
||||
<a name="GoEChargerset"></a>
|
||||
<b>set</b>
|
||||
<ul>
|
||||
<li>erstens </li>
|
||||
<li>zweitens</li>
|
||||
</ul>
|
||||
<br><br>
|
||||
<a name="GoEChargereattributes"></a>
|
||||
<b>Attributes</b>
|
||||
<ul>
|
||||
<li>foo</li>
|
||||
<li>bar</li>
|
||||
</ul>
|
||||
|
||||
</ul>
|
||||
|
||||
=end html_DE
|
||||
|
||||
=for :application/json;q=META.json 73_GoECharger.pm
|
||||
{
|
||||
"abstract": "Modul to control go e charger",
|
||||
"x_lang": {
|
||||
"de": {
|
||||
"abstract": "Modul zum bedienen des go e charger"
|
||||
}
|
||||
},
|
||||
"keywords": [
|
||||
"fhem-mod-device",
|
||||
"fhem-core",
|
||||
"goe",
|
||||
"goecharger",
|
||||
"Smart"
|
||||
],
|
||||
"release_status": "stable",
|
||||
"license": "GPL_2",
|
||||
"version": "v0.0.1",
|
||||
"author": [
|
||||
"Sebastian Schwarz <ema@il.local>"
|
||||
],
|
||||
"x_fhem_maintainer": [
|
||||
"BOFH"
|
||||
],
|
||||
"x_fhem_maintainer_github": [
|
||||
"NO ONE"
|
||||
],
|
||||
"prereqs": {
|
||||
"runtime": {
|
||||
"requires": {
|
||||
"FHEM": 5.00918799,
|
||||
"perl": 5.016,
|
||||
"Meta": 0,
|
||||
"HttpUtils": 0,
|
||||
"Encode": 0
|
||||
},
|
||||
"recommends": {
|
||||
},
|
||||
"suggests": {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
=end :application/json;q=META.json
|
||||
|
||||
=cut
|
Reference in New Issue
Block a user