code style
This commit is contained in:
parent
4ff61d185d
commit
af48f115e0
@ -169,20 +169,21 @@ GP_Export(
|
|||||||
);
|
);
|
||||||
|
|
||||||
my %paths = (
|
my %paths = (
|
||||||
'statussoe' => 'system_status/soe',
|
'statussoe' => 'system_status/soe',
|
||||||
'aggregates' => 'meters/aggregates',
|
'aggregates' => 'meters/aggregates',
|
||||||
'meterssite' => 'meters/site',
|
'meterssite' => 'meters/site',
|
||||||
'meterssolar' => 'meters/solar',
|
'meterssolar' => 'meters/solar',
|
||||||
'siteinfo' => 'site_info',
|
'siteinfo' => 'site_info',
|
||||||
'sitename' => 'site_info/site_name',
|
'sitename' => 'site_info/site_name',
|
||||||
'sitemaster' => 'sitemaster',
|
'sitemaster' => 'sitemaster',
|
||||||
# 'powerwallsstop' => 'sitemaster/stop',
|
|
||||||
# 'powerwallsrun' => 'sitemaster/run',
|
# 'powerwallsstop' => 'sitemaster/stop',
|
||||||
'powerwalls' => 'powerwalls',
|
# 'powerwallsrun' => 'sitemaster/run',
|
||||||
'registration' => 'customer/registration',
|
'powerwalls' => 'powerwalls',
|
||||||
'status' => 'status',
|
'registration' => 'customer/registration',
|
||||||
'login' => 'login/Basic',
|
'status' => 'status',
|
||||||
'gridstatus' => 'system_status/grid_status',
|
'login' => 'login/Basic',
|
||||||
|
'gridstatus' => 'system_status/grid_status',
|
||||||
);
|
);
|
||||||
|
|
||||||
sub Initialize($) {
|
sub Initialize($) {
|
||||||
@ -520,17 +521,16 @@ sub ErrorHandling($$$) {
|
|||||||
1
|
1
|
||||||
);
|
);
|
||||||
|
|
||||||
readingsEndUpdate( $hash, 1 );
|
readingsEndUpdate( $hash, 1 );
|
||||||
}
|
}
|
||||||
#### End Error Handling
|
#### End Error Handling
|
||||||
|
|
||||||
InternalTimer( gettimeofday() + 3,
|
InternalTimer( gettimeofday() + 3, 'TeslaPowerwall2AC_Write', $hash )
|
||||||
'TeslaPowerwall2AC_Write', $hash )
|
|
||||||
if ( defined( $hash->{actionQueue} )
|
if ( defined( $hash->{actionQueue} )
|
||||||
and scalar( @{ $hash->{actionQueue} } ) > 0 );
|
and scalar( @{ $hash->{actionQueue} } ) > 0 );
|
||||||
|
|
||||||
Log3 $name, 4, "TeslaPowerwall2AC ($name) - Recieve JSON data: $data";
|
Log3 $name, 4, "TeslaPowerwall2AC ($name) - Recieve JSON data: $data";
|
||||||
|
|
||||||
ResponseProcessing( $hash, $param->{setCmd}, $data );
|
ResponseProcessing( $hash, $param->{setCmd}, $data );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user