mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Something
This commit is contained in:
1 parent
23aa83ec9a
commit
043cac1cba
1 file changed
+3
-1
@@ -34,15 +34,17 @@ class GoogleHomeApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$online = false;
|
$online = false;
|
||||||
|
$status = 'SUCCESS';
|
||||||
if (RecordManager::getLastRecord($deviceId['id'])['execuded'] == 1){
|
if (RecordManager::getLastRecord($deviceId['id'])['execuded'] == 1){
|
||||||
$online = true;
|
$online = true;
|
||||||
|
$status = 'ERROR';
|
||||||
}
|
}
|
||||||
|
|
||||||
$devices[] = [
|
$devices[] = [
|
||||||
$deviceId['id'] => [
|
$deviceId['id'] => [
|
||||||
'on' => $state,
|
'on' => $state,
|
||||||
'online' => $online,
|
'online' => $online,
|
||||||
'status'=> 'SUCCESS',
|
'status'=> $status,
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user