fix digital pin and not commited changes in esp os node v3

This commit is contained in:
unknown
2019-12-19 23:15:44 +01:00
parent ded59cc24a
commit 2d7db196dd
2 changed files with 21 additions and 19 deletions

View File

@@ -73,14 +73,14 @@ class Home extends Template
break;
case 'light':
$replacementTrue = 'Light';
$replacementFalse = 'Dark';
$operator = '==';
$breakValue = 1;
if ($lastValue != 1 || $lastValue != 0) { //Digital Light Senzor
$operator = '<';
$breakValue = 810;
}
$replacementTrue = 'Light';
$replacementFalse = 'Dark';
$operator = '==';
$breakValue = 1;
if ($lastValue != 1 && $lastValue != 0) { //Digital Light Senzor
$operator = '<';
$breakValue = 810;
}
break;
case 'water':