Skip to content

Commit

Permalink
Zigate is RX ON when idle => fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tcharp38 committed Jun 24, 2024
1 parent 08d37d7 commit 3a6088d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion core/class/Abeille.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2415,6 +2415,8 @@ public static function createRuche($dest) {
$zigbee['groups'] = [];
if (!isset($zigbee['groups']['01']))
$zigbee['groups']['01'] = '';
$zigbee['mainsPowered'] = 1;
$zigbee['rxOnWhenIdle'] = 1;
$eqLogic->setConfiguration('ab::zigbee', $zigbee);

$eqLogic->setStatus('lastCommunication', date('Y-m-d H:i:s'));
Expand Down Expand Up @@ -2886,7 +2888,7 @@ public static function createDevice($action, $dev) {
$zigbee['macCapa'] = $dev['macCapa'];
}
}
if (isset($zigbee['macCapa'])) {
if (isset($zigbee['macCapa']) && ($zigbee['macCapa'] != '')) {
$mc = hexdec($zigbee['macCapa']);
$zigbee['mainsPowered'] = ($mc >> 2) & 0b1; // 1=mains-powered
$zigbee['rxOnWhenIdle'] = ($mc >> 3) & 0b1; // 1=Receiver enabled when idle
Expand Down
5 changes: 3 additions & 2 deletions docs/fr_FR/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# ChangeLog

- Analyse réseau: Corrections.
- Modèles d'équipement: 'Time-Time' est de retour mais 'Time-TimeStamp' définitivement supprimé.
- Corrections: Analyse réseau.
- Corrections: Modèles d'équipement: 'Time-Time' est de retour mais 'Time-TimeStamp' définitivement supprimé.
- Corrections: Status interne Zigate n'est pas 'rxOnWhenIdle'.

## 240622-BETA-2

Expand Down

0 comments on commit 3a6088d

Please sign in to comment.