Some Fixes
This commit is contained in:
parent
78c29482a6
commit
a1358c53fd
@ -124,14 +124,16 @@ class GoogleHomeDeviceTypes {
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
'media_inputs' => [
|
'media_inputs' => [
|
||||||
|
[
|
||||||
"key" => "pc",
|
"key" => "pc",
|
||||||
"names" => [
|
"names" => [
|
||||||
"name_synonym" => [
|
"name_synonym" => [
|
||||||
"PC",
|
"PC",
|
||||||
],
|
],
|
||||||
"lang" => "en"
|
"lang" => "en"
|
||||||
]
|
],
|
||||||
]
|
],
|
||||||
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
static function getAction($deviceType){
|
static function getAction($deviceType){
|
||||||
@ -153,35 +155,8 @@ class GoogleHomeDeviceTypes {
|
|||||||
if (!isset(self::$attributeWordBook[$subDeviceType])) return;
|
if (!isset(self::$attributeWordBook[$subDeviceType])) return;
|
||||||
return self::$attributeWordBook[$subDeviceType];
|
return self::$attributeWordBook[$subDeviceType];
|
||||||
}
|
}
|
||||||
// static function getSyncObj($deviceBaseObj, $deviceType){
|
|
||||||
// switch ($deviceType) {
|
|
||||||
// case 'action.devices.types.LIGHT':
|
|
||||||
// case 'action.devices.types.OUTLET':
|
|
||||||
// $deviceBaseObj['traits'] = [
|
|
||||||
// 'action.devices.traits.OnOff'
|
|
||||||
// ];
|
|
||||||
// break;
|
|
||||||
// case 'action.devices.types.THERMOSTAT':
|
|
||||||
// $deviceBaseObj['traits'] = [
|
|
||||||
// 'action.devices.traits.TemperatureSetting',
|
|
||||||
// ];
|
|
||||||
// $deviceBaseObj['attributes'] = [
|
|
||||||
// "availableThermostatModes" => "off,heat",
|
|
||||||
// "thermostatTemperatureUnit" => "C",
|
|
||||||
// ];
|
|
||||||
// break;
|
|
||||||
// case 'action.devices.types.REMOTECONTROL':
|
|
||||||
// $deviceBaseObj['traits'] = [
|
|
||||||
// 'action.devices.traits.Volume',
|
|
||||||
// 'action.devices.traits.MediaState',
|
|
||||||
// 'action.devices.traits.OnOff',
|
|
||||||
// ];
|
|
||||||
// break;
|
|
||||||
// }
|
|
||||||
// return $deviceBaseObj;
|
|
||||||
// }
|
|
||||||
|
|
||||||
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