sebastianschwarz-patch-bridge_hash #8
@ -833,9 +833,6 @@ sub WriteReadings {
|
|||||||
$v = encode_utf8($v);
|
$v = encode_utf8($v);
|
||||||
readingsBulkUpdateIfChanged( $hash, $t, $v );
|
readingsBulkUpdateIfChanged( $hash, $t, $v );
|
||||||
}
|
}
|
||||||
|
|
||||||
readingsBulkUpdateIfChanged( $hash, 'zones',
|
|
||||||
scalar( @{ $decode_json->{zones} } ) );
|
|
||||||
}
|
}
|
||||||
elsif ($decode_json->{id} ne $hash->{helper}{locations_id}
|
elsif ($decode_json->{id} ne $hash->{helper}{locations_id}
|
||||||
&& ref( $decode_json->{abilities} ) eq 'ARRAY'
|
&& ref( $decode_json->{abilities} ) eq 'ARRAY'
|
||||||
@ -859,11 +856,7 @@ sub WriteReadings {
|
|||||||
{name} . '-' . $t,
|
{name} . '-' . $t,
|
||||||
$v
|
$v
|
||||||
)
|
)
|
||||||
if (
|
if ($decode_json->{abilities}[0]{properties}[$properties]{name} !~ /ethernet_status|wifi_status/ );
|
||||||
$decode_json->{abilities}[0]{properties}[$properties]
|
|
||||||
{name} ne 'ethernet_status'
|
|
||||||
|| $decode_json->{abilities}[0]{properties}
|
|
||||||
[$properties]{name} ne 'wifi_status' );
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(
|
(
|
||||||
@ -890,8 +883,10 @@ sub WriteReadings {
|
|||||||
elsif ( $decode_json->{abilities}[0]{properties}
|
elsif ( $decode_json->{abilities}[0]{properties}
|
||||||
[$properties]{name} eq 'wifi_status' )
|
[$properties]{name} eq 'wifi_status' )
|
||||||
{
|
{
|
||||||
|
#TODO: read valies if bridge connected to wifi
|
||||||
readingsBulkUpdateIfChanged( $hash,
|
readingsBulkUpdateIfChanged( $hash,
|
||||||
'wifi_status-ssid', $v->{ssid} );
|
'wifi_status-ssid', $v->{ssid} )
|
||||||
|
if (ref($v->{ssid}) ne 'HASH');
|
||||||
readingsBulkUpdateIfChanged( $hash,
|
readingsBulkUpdateIfChanged( $hash,
|
||||||
'wifi_status-mac', $v->{mac} );
|
'wifi_status-mac', $v->{mac} );
|
||||||
readingsBulkUpdateIfChanged( $hash,
|
readingsBulkUpdateIfChanged( $hash,
|
||||||
@ -1297,7 +1292,6 @@ sub DeletePassword {
|
|||||||
<li>name - Name of your Garden – Default „My Garden“</li>
|
<li>name - Name of your Garden – Default „My Garden“</li>
|
||||||
<li>state - State of the Bridge</li>
|
<li>state - State of the Bridge</li>
|
||||||
<li>token - SessionID</li>
|
<li>token - SessionID</li>
|
||||||
<li>zones - </li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<br><br>
|
<br><br>
|
||||||
<a name="GardenaSmartBridgeset"></a>
|
<a name="GardenaSmartBridgeset"></a>
|
||||||
@ -1359,7 +1353,6 @@ sub DeletePassword {
|
|||||||
<li>name - Name für das Grundstück – Default „My Garden“</li>
|
<li>name - Name für das Grundstück – Default „My Garden“</li>
|
||||||
<li>state - Status der Bridge</li>
|
<li>state - Status der Bridge</li>
|
||||||
<li>token - SessionID</li>
|
<li>token - SessionID</li>
|
||||||
<li>zones - </li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<br><br>
|
<br><br>
|
||||||
<a name="GardenaSmartBridgeset"></a>
|
<a name="GardenaSmartBridgeset"></a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user