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

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

No files matched your search

+8 -8
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':