Some quick fix
This commit is contained in:
parent
3669fde596
commit
cdcddffc69
@ -9,7 +9,7 @@ class UsersApi extends ApiController{
|
|||||||
foreach ($users as $key => $user) {
|
foreach ($users as $key => $user) {
|
||||||
$response[] = [
|
$response[] = [
|
||||||
"userName" => $user['username'],
|
"userName" => $user['username'],
|
||||||
"homeStatus" => ($user['at_home']) ? true : false,
|
"homeStatus" => ($user['at_home'] == 'true') ? true : false,
|
||||||
"avatarUrl" => UserManager::getAvatarUrl($user['user_id']),
|
"avatarUrl" => UserManager::getAvatarUrl($user['user_id']),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ class GoogleHomeDeviceTypes {
|
|||||||
'control-light' => 'action.devices.types.LIGHT',
|
'control-light' => 'action.devices.types.LIGHT',
|
||||||
'control-socket' => 'action.devices.types.OUTLET',
|
'control-socket' => 'action.devices.types.OUTLET',
|
||||||
'control-temp' => 'action.devices.types.THERMOSTAT',
|
'control-temp' => 'action.devices.types.THERMOSTAT',
|
||||||
'control-media' => 'action.devices.types.REMOTECONTROL',
|
'control-media' => 'action.devices.types.REMOTE',
|
||||||
];
|
];
|
||||||
|
|
||||||
private static $traidWordBook = [
|
private static $traidWordBook = [
|
||||||
@ -101,7 +101,7 @@ class GoogleHomeDeviceTypes {
|
|||||||
'volumeDefaultPercentage' => 6,
|
'volumeDefaultPercentage' => 6,
|
||||||
'volumeMaxLevel' => 100,
|
'volumeMaxLevel' => 100,
|
||||||
'levelStepSize' => 2,
|
'levelStepSize' => 2,
|
||||||
'commandOnlyVolume' => false,
|
'commandOnlyVolume' => true,
|
||||||
],
|
],
|
||||||
'media_status'=> [
|
'media_status'=> [
|
||||||
'transportControlSupportedCommands' => [
|
'transportControlSupportedCommands' => [
|
||||||
|
Loading…
Reference in New Issue
Block a user