Skip to content
Permalink
Browse files

Update magichome.class.php

  • Loading branch information...
directman66 committed Oct 5, 2018
1 parent 37083e6 commit 891d193a9d4686c2540ee1a62f5d828d132e5c09
Showing with 6 additions and 1 deletion.
  1. +6 −1 modules/magichome/magichome.class.php
@@ -270,7 +270,12 @@ function propertySetHandle($object, $property, $value) {
SQLUpdate('magichome_commands',$properties[$i]);
//sg('test.mycommand', "command:".$command." value:".$value." type:".$type);
if ($type=='AK001-ZJ100') {
// if ($type=='AK001-ZJ100') {
// if ($type=='AK001-ZJ100') {
//sg('test.substr', substr($type,0,8));
if (substr($type,0,8)=='AK001-ZJ') {
if ($command=='status'&& $value=='1') {
$magichomeObject->turnon($deviceid);
$magichomeObject->getinfo2($deviceid);

0 comments on commit 891d193

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