Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
* Fix for processing big number of devices
* Availability status fix
  • Loading branch information
sergejey committed Nov 8, 2021
1 parent 1c1d0e4 commit 7d8ee8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/cycle_zigbeedev.php
Expand Up @@ -149,7 +149,7 @@ function procmsg($topic, $msg) {
if (!isset($topic) || !isset($msg)) return false;
echo date("Y-m-d H:i:s") . " Received from {$topic} ($did, $from_hub): $msg\n";
if (function_exists('callAPI')) {
callAPI('/api/module/zigbeedev','GET',array('topic'=>$topic,'did'=>$did, 'msg'=>$msg,'hub'=>$from_hub));
callAPI('/api/module/zigbeedev','POST',array('topic'=>$topic,'did'=>$did, 'msg'=>$msg,'hub'=>$from_hub));
} else {
$zigbeedev_module->processMessage($topic, $did, $msg, $from_hub);
}
Expand Down
4 changes: 3 additions & 1 deletion templates/zigbeedev/zigbeedevices_search_admin.html
Expand Up @@ -61,12 +61,14 @@
</td>
<td>[#TITLE#]</td>
<td class="[#availability#]">
[#if IS_HUB!="1" && TITLE!="Coordinator"#]
[#if IS_HUB!="1" && TITLE!="Coordinator" && availability!=""#]
[#if availability=='online'#]
<span class="label label-success">Online</span>
[#else#]
<span class="label label-danger">Offline</span>
[#endif#]
[#else#]
n/a
[#endif#]
</td>
<td class="[#BATTERY_WARN#]">
Expand Down

0 comments on commit 7d8ee8a

Please sign in to comment.