Some tveeks
This commit is contained in:
parent
a1358c53fd
commit
3669fde596
@ -7,7 +7,7 @@ class GoogleHome {
|
|||||||
$devicesData = DeviceManager::getAllDevicesInRoom($roomData['room_id']);
|
$devicesData = DeviceManager::getAllDevicesInRoom($roomData['room_id']);
|
||||||
foreach ($devicesData as $deviceKey => $deviceData) {
|
foreach ($devicesData as $deviceKey => $deviceData) {
|
||||||
$traids = [];
|
$traids = [];
|
||||||
$attributes = null;
|
$attributes = [];
|
||||||
|
|
||||||
//Google Compatibile Action Type
|
//Google Compatibile Action Type
|
||||||
$actionType = GoogleHomeDeviceTypes::getAction($deviceData['type']);
|
$actionType = GoogleHomeDeviceTypes::getAction($deviceData['type']);
|
||||||
@ -22,7 +22,7 @@ class GoogleHome {
|
|||||||
|
|
||||||
$deviceAttributes = GoogleHomeDeviceTypes::getAttribute($subDeviceData['type']);
|
$deviceAttributes = GoogleHomeDeviceTypes::getAttribute($subDeviceData['type']);
|
||||||
if ($deviceAttributes != "") {
|
if ($deviceAttributes != "") {
|
||||||
$attributes = $deviceAttributes;
|
$attributes += $deviceAttributes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -113,6 +113,7 @@ class GoogleHomeDeviceTypes {
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
'media_apps' => [
|
'media_apps' => [
|
||||||
|
"availableApplications" => [
|
||||||
[
|
[
|
||||||
"key" => "kodi",
|
"key" => "kodi",
|
||||||
"names" => [
|
"names" => [
|
||||||
@ -120,18 +121,20 @@ class GoogleHomeDeviceTypes {
|
|||||||
"Kodi",
|
"Kodi",
|
||||||
],
|
],
|
||||||
"lang" => "en"
|
"lang" => "en"
|
||||||
]
|
],
|
||||||
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'media_inputs' => [
|
'media_inputs' => [
|
||||||
[
|
"availableApplications" => [
|
||||||
"key" => "pc",
|
"key" => "pc",
|
||||||
"names" => [
|
"names" => [
|
||||||
"name_synonym" => [
|
"name_synonym" => [
|
||||||
"PC",
|
"PC",
|
||||||
],
|
],
|
||||||
"lang" => "en"
|
"lang" => "en",
|
||||||
],
|
],
|
||||||
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
@ -159,4 +162,4 @@ class GoogleHomeDeviceTypes {
|
|||||||
static function getQueryJson($deviceType, $type){
|
static function getQueryJson($deviceType, $type){
|
||||||
return self::$wordBook[$type];
|
return self::$wordBook[$type];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user