fixed alert action

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

View File

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