Skip to content

Commit

Permalink
Update lightmanager.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jan 4, 2024
1 parent a3f44c3 commit fa31ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/class/lightmanager.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function getMotionState() {
}
$value = jeedom::evaluateExpression($motion['cmdMotion']);
log::add('lightmanager', 'debug', $this->getHumanName() . ' ' . $motion['cmdMotion'] . ' result : ' . $value);
if ($motion['invert'] != 1) {
if (isset($motion['invert']) && $motion['invert'] == 1) {
$value = 1 - $value;
}
if ($value == 1) {
Expand Down

0 comments on commit fa31ed5

Please sign in to comment.