mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
30_HUEBridge.pm: fixed handling of json boolean values
git-svn-id: https://svn.fhem.de/fhem/trunk@16310 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0d42fc2cd6
commit
e1fe302c6b
@ -1057,8 +1057,8 @@ HUEBridge_updateGroups($$)
|
||||
$readings{pct} += $current->{pct};
|
||||
$readings{sat} += $current->{sat};
|
||||
|
||||
$readings{on} |= $current->{on};
|
||||
$readings{reachable} |= $current->{reachable};
|
||||
$readings{on} |= ($current->{on}?'1':'0');
|
||||
$readings{reachable} |= ($current->{reachable}?'1':'0');
|
||||
|
||||
if( !defined($readings{alert}) ) {
|
||||
$readings{alert} = $current->{alert};
|
||||
@ -1095,7 +1095,7 @@ HUEBridge_updateGroups($$)
|
||||
$readings{pct} = 0;
|
||||
$readings{state} = 'off';
|
||||
}
|
||||
$readings{onoff} = $readings{on}?'1':'0';
|
||||
$readings{onoff} = $readings{on};
|
||||
delete $readings{on};
|
||||
|
||||
readingsBeginUpdate($chash);
|
||||
|
Loading…
x
Reference in New Issue
Block a user