Git additional Updates

This commit is contained in:
JonatanRek
2020-05-15 19:48:53 +02:00
parent d7a5d35f54
commit 02ba4e5d6f
3 changed files with 11 additions and 10 deletions

View File

@@ -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,