Compare commits
8 Commits
dev
...
patch-fixC
Author | SHA1 | Date | |
---|---|---|---|
|
01c237226a | ||
|
d604ef1baf | ||
|
d9a7ac4853 | ||
|
3a91b450c7 | ||
|
b0e048ef8a | ||
|
c2b4bd2ffc | ||
55ce39b8d3 | |||
40305d563d |
@ -1,8 +1,8 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
#
|
#
|
||||||
# Developed with Kate
|
# Developed with VSCodium and richterger perl plugin.
|
||||||
#
|
#
|
||||||
# (c) 2017-2021 Copyright: Marko Oldenburg (fhemdevelopment at cooltux dot net)
|
# (c) 2017-2023 Copyright: Marko Oldenburg (fhemdevelopment at cooltux dot net)
|
||||||
# All rights reserved
|
# All rights reserved
|
||||||
#
|
#
|
||||||
# This script is free software; you can redistribute it and/or modify
|
# This script is free software; you can redistribute it and/or modify
|
||||||
@ -56,49 +56,46 @@ package FHEM::TeslaPowerwall2AC;
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use FHEM::Meta;
|
|
||||||
use GPUtils qw(GP_Export);
|
|
||||||
|
|
||||||
|
use FHEM::Meta;
|
||||||
require FHEM::Devices::Tesla::Powerwall;
|
require FHEM::Devices::Tesla::Powerwall;
|
||||||
|
|
||||||
|
use GPUtils qw(GP_Import);
|
||||||
|
|
||||||
#-- Run before package compilation
|
#-- Run before package compilation
|
||||||
BEGIN {
|
BEGIN {
|
||||||
|
|
||||||
#-- Export to main context with different name
|
#-- Export to main context with different name
|
||||||
GP_Export(
|
GP_Import(qw( readingFnAttributes ));
|
||||||
qw(
|
|
||||||
Initialize
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub ::TeslaPowerwall2AC_Initialize { goto &Initialize }
|
||||||
|
|
||||||
sub Initialize {
|
sub Initialize {
|
||||||
|
|
||||||
my $hash = shift;
|
my $hash = shift;
|
||||||
|
|
||||||
$hash->{GetFn} = \&FHEM::Devices::Tesla::Powerwall::Get;
|
$hash->{GetFn} = \&FHEM::Devices::Tesla::Powerwall::Get;
|
||||||
$hash->{SetFn} = \&FHEM::Devices::Tesla::Powerwall::Set;
|
$hash->{SetFn} = \&FHEM::Devices::Tesla::Powerwall::Set;
|
||||||
$hash->{DefFn} = \&FHEM::Devices::Tesla::Powerwall::Define;
|
$hash->{DefFn} = \&FHEM::Devices::Tesla::Powerwall::Define;
|
||||||
$hash->{UndefFn} = \&FHEM::Devices::Tesla::Powerwall::Undef;
|
$hash->{UndefFn} = \&FHEM::Devices::Tesla::Powerwall::Undef;
|
||||||
$hash->{NotifyFn} = \&FHEM::Devices::Tesla::Powerwall::Notify;
|
$hash->{NotifyFn} = \&FHEM::Devices::Tesla::Powerwall::Notify;
|
||||||
$hash->{RenameFn} = \&FHEM::Devices::Tesla::Powerwall::Rename;
|
$hash->{RenameFn} = \&FHEM::Devices::Tesla::Powerwall::Rename;
|
||||||
|
|
||||||
$hash->{AttrFn} = \&FHEM::Devices::Tesla::Powerwall::Attr;
|
$hash->{AttrFn} = \&FHEM::Devices::Tesla::Powerwall::Attr;
|
||||||
$hash->{AttrList} =
|
$hash->{AttrList} =
|
||||||
'interval '
|
'interval '
|
||||||
. 'disable:1 '
|
. 'disable:1 '
|
||||||
. 'devel:1 '
|
. 'devel:1 '
|
||||||
. 'emailaddr '
|
. 'emailaddr '
|
||||||
. $::readingFnAttributes;
|
. $readingFnAttributes;
|
||||||
|
|
||||||
$hash->{parseParams} = 1;
|
$hash->{parseParams} = 1;
|
||||||
|
|
||||||
return FHEM::Meta::InitMod( __FILE__, $hash );
|
return FHEM::Meta::InitMod( __FILE__, $hash );
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
|
|
||||||
=pod
|
=pod
|
||||||
|
|
||||||
=item device
|
=item device
|
||||||
@ -199,9 +196,9 @@ sub Initialize {
|
|||||||
],
|
],
|
||||||
"release_status": "stable",
|
"release_status": "stable",
|
||||||
"license": "GPL_2",
|
"license": "GPL_2",
|
||||||
"version": "v2.0.0",
|
"version": "v2.1.0",
|
||||||
"author": [
|
"author": [
|
||||||
"Marko Oldenburg <leongaultier@gmail.com>"
|
"Marko Oldenburg <fhemdevelopment@cooltux.net>"
|
||||||
],
|
],
|
||||||
"x_fhem_maintainer": [
|
"x_fhem_maintainer": [
|
||||||
"CoolTux"
|
"CoolTux"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
UPD 2021-04-23_08:24:15 6944 FHEM/46_TeslaPowerwall2AC.pm
|
UPD 2023-11-11_18:10:27 6874 FHEM/46_TeslaPowerwall2AC.pm
|
||||||
UPD 2021-07-05_13:05:54 29269 lib/FHEM/Devices/Tesla/Powerwall.pm
|
UPD 2023-11-11_18:10:25 28434 lib/FHEM/Devices/Tesla/Powerwall.pm
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user