fixed alert action
This commit is contained in:
parent
08b8966241
commit
759a8c4967
@ -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);
|
||||||
|
|||||||
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user