mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 08:11:44 +00:00
46_TeslaPowerwall2AC: fix get data internal timer bug
git-svn-id: https://svn.fhem.de/fhem/trunk@15287 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
bcf3705f9a
commit
4e0fae8b19
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- bugfix: 46_TeslaPowerwall2AC: fix get data internal timer bug
|
||||||
- bugfix: 93_Log2Syslog: typo in commandref
|
- bugfix: 93_Log2Syslog: typo in commandref
|
||||||
- feature: global dnsHostsFile attribute added (Forum #78025)
|
- feature: global dnsHostsFile attribute added (Forum #78025)
|
||||||
- feature: 98_DOIFtools: add getter hsvColorGradient, returns a table of
|
- feature: 98_DOIFtools: add getter hsvColorGradient, returns a table of
|
||||||
|
@ -66,7 +66,7 @@ use HttpUtils;
|
|||||||
eval "use JSON;1" or $missingModul .= "JSON ";
|
eval "use JSON;1" or $missingModul .= "JSON ";
|
||||||
|
|
||||||
|
|
||||||
my $version = "0.2.0";
|
my $version = "0.2.2";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -144,7 +144,7 @@ sub TeslaPowerwall2AC_Define($$) {
|
|||||||
|
|
||||||
$attr{$name}{room} = "Tesla" if( !defined( $attr{$name}{room} ) );
|
$attr{$name}{room} = "Tesla" if( !defined( $attr{$name}{room} ) );
|
||||||
|
|
||||||
Log3 $name, 3, "TeslaPowerwall2AC ($name) - defined SmartPi Device with Host $host, Port $hash->{PORT} and Interval $hash->{INTERVAL}";
|
Log3 $name, 3, "TeslaPowerwall2AC ($name) - defined TeslaPowerwall2AC Device with Host $host, Port $hash->{PORT} and Interval $hash->{INTERVAL}";
|
||||||
|
|
||||||
$modules{TeslaPowerwall2AC}{defptr}{HOST} = $hash;
|
$modules{TeslaPowerwall2AC}{defptr}{HOST} = $hash;
|
||||||
|
|
||||||
@ -230,7 +230,8 @@ sub TeslaPowerwall2AC_Notify($$) {
|
|||||||
|
|
||||||
|
|
||||||
TeslaPowerwall2AC_Timer_GetData($hash) if( grep /^INITIALIZED$/,@{$events}
|
TeslaPowerwall2AC_Timer_GetData($hash) if( grep /^INITIALIZED$/,@{$events}
|
||||||
or grep /^DELETEATTR.$name.disable$/,@{$events} );
|
or grep /^DELETEATTR.$name.disable$/,@{$events}
|
||||||
|
or (grep /^DEFINED.$name$/,@{$events} and $init_done) );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -290,7 +291,7 @@ sub TeslaPowerwall2AC_Timer_GetData($) {
|
|||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
|
|
||||||
|
|
||||||
if( $init_done and defined($hash->{actionQueue}) and scalar(@{$hash->{actionQueue}}) == 0 ) {
|
if( defined($hash->{actionQueue}) and scalar(@{$hash->{actionQueue}}) == 0 ) {
|
||||||
if( not IsDisabled($name) ) {
|
if( not IsDisabled($name) ) {
|
||||||
while( my $obj = each %paths ) {
|
while( my $obj = each %paths ) {
|
||||||
unshift( @{$hash->{actionQueue}}, $obj );
|
unshift( @{$hash->{actionQueue}}, $obj );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user