mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Git additional Updates
This commit is contained in:
1 parent
d7a5d35f54
commit
02ba4e5d6f
3 files changed
+11
-10
No files matched your search
@@ -12,6 +12,14 @@ class GoogleHome {
|
||||
|
||||
//Google Compatibile Action Type
|
||||
$actionType = GoogleHomeDeviceTypes::getAction($subDeviceData['type']);
|
||||
|
||||
if (
|
||||
strpos($deviceData['name'], 'Světlo') !== false ||
|
||||
strpos($deviceData['name'], 'světlo') !== false
|
||||
) {
|
||||
$actionType = 'action.devices.types.LIGHT';
|
||||
}
|
||||
|
||||
$tempDevice = [
|
||||
'id' => (string) $subDeviceData['subdevice_id'],
|
||||
'type' => $actionType,
|
||||
|
||||
Reference in new issue
Block a user