fixed alert action

This commit is contained in:
Boernsman 2020-11-03 15:41:04 +01:00
parent 08b8966241
commit 759a8c4967
2 changed files with 4 additions and 6 deletions

View File

@ -59,7 +59,6 @@ void IntegrationPluginBose::init()
void IntegrationPluginBose::setupThing(ThingSetupInfo *info) void IntegrationPluginBose::setupThing(ThingSetupInfo *info)
{ {
if (info->thing()->thingClassId() == soundtouchThingClassId) { if (info->thing()->thingClassId() == soundtouchThingClassId) {
QString ipAddress; QString ipAddress;
@ -298,6 +297,7 @@ void IntegrationPluginBose::executeAction(ThingActionInfo *info)
PlayInfoObject playInfo; PlayInfoObject playInfo;
playInfo.url = alertUrl.toString(); playInfo.url = alertUrl.toString();
playInfo.appKey = m_consumerKey; playInfo.appKey = m_consumerKey;
playInfo.services = "nymea";
playInfo.volume = action.param(soundtouchAlertActionVolumeParamTypeId).value().toInt(); playInfo.volume = action.param(soundtouchAlertActionVolumeParamTypeId).value().toInt();
playInfo.reason = action.param(soundtouchAlertActionMessageParamTypeId).value().toString(); playInfo.reason = action.param(soundtouchAlertActionMessageParamTypeId).value().toString();
QUuid requestId = soundTouch->setSpeaker(playInfo); QUuid requestId = soundTouch->setSpeaker(playInfo);

View File

@ -266,9 +266,7 @@
"defaultValue": "Notification", "defaultValue": "Notification",
"allowedValues": [ "allowedValues": [
"Doorbell", "Doorbell",
"Warning", "Notification"
"Noification",
"Error"
] ]
}, },
{ {
@ -276,7 +274,7 @@
"name": "message", "name": "message",
"displayName": "Display message", "displayName": "Display message",
"type": "QString", "type": "QString",
"defaultValue": "None" "defaultValue": ""
}, },
{ {
"id": "8527bff6-811f-41f5-a098-e4b356e2463c", "id": "8527bff6-811f-41f5-a098-e4b356e2463c",
@ -285,7 +283,7 @@
"type": "int", "type": "int",
"minValue": 10, "minValue": 10,
"maxValue": 70, "maxValue": 70,
"defaultValue": "30" "defaultValue": "40"
} }
] ]
} }