Skip to content
Permalink
Browse files

Update magichome.class.php

1) Добавлено включение света при выборе переключения на другой цвет.
2) Исключен черный из переключаемых.
  • Loading branch information...
directman66 committed Nov 26, 2018
1 parent 7b44a8e commit 5f993e6e04a7e7e12d8d3cdbe0ad50a751793928
Showing with 3 additions and 2 deletions.
  1. +3 −2 modules/magichome/magichome.class.php
@@ -320,7 +320,8 @@ function propertySetHandle($object, $property, $value) {
//sg('test.mh',$command.":".$value.":");
//sg('test.mh',$command.":".$value.":".$oldcolor);
if ($command=="command" && $value=='changecolor') {
$this->changecolordevice($deviceid);
$magichomeObject->turnon($deviceid);
$this->changecolordevice($deviceid);
}
@@ -1253,7 +1254,7 @@ function nextcolor($r,$g,$b){
else {
// $color='#FFFF00';
$textcolor='желтый';
$ncolor='000000';
$ncolor='909090';
}
}

0 comments on commit 5f993e6

Please sign in to comment.
You can’t perform that action at this time.