fixed alert action
parent
08b8966241
commit
759a8c4967
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue