Permalink
Browse files

Update zigbee2mqtt.class.php

  • Loading branch information...
directman66 committed Jan 13, 2019
1 parent 56c55da commit 1d7a50b67a1922861993f234b808883805236988
Showing with 5 additions and 1 deletion.
  1. +5 −1 modules/zigbee2mqtt/zigbee2mqtt.class.php
@@ -374,7 +374,11 @@ function processMessage($path, $value) {
}
}
setGlobal($rec['LINKED_OBJECT'].'.'.$rec['LINKED_PROPERTY'], $value, array($this->name=>'0'));
if ($value=='ON') $newvalue=1;
if ($value=='OFF') $newvalue=0;
setGlobal($rec['LINKED_OBJECT'].'.'.$rec['LINKED_PROPERTY'], $newvalue, array($this->name=>'0'));
}
if ($rec['LINKED_OBJECT'] && $cmd_rec['LINKED_METHOD']) {
callMethod($rec['LINKED_OBJECT'] . '.' . $rec['LINKED_METHOD'], $rec['VALUE']);

0 comments on commit 1d7a50b

Please sign in to comment.