Hi guys & girls,
I have this script, which starts a flowcard “send a push confirmation to userX”;
it works well, but it times out after 30s already when there’s not been a response yet.
However, the ‘real’ flowcard “send a push confirmation to userX” times out after 30 minutes (which seems reasonable).
Any thoughts?
Error: at Timeout._onTimeout (/node_modules/athom-api/dist/index.js:1:1318770)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)
Code:
const response = await Homey.flow.runFlowCardCondition({
uri: 'homey:manager:mobile',
id: 'push_confirm',
args: {
user: {
athomId: 'myUserAthomID'
},
text: 'Test push confirmation from HomeyScript test-push_confirmation.js'
},
});
// This is used to catch the Yes or No returned by user
const obj = response;
const params = new URLSearchParams(obj).toString();
let result = params.slice(49,54)
//console.log("Result: " + result);
if ( result == "false" ) {
return(false)
}
else
return(true)
}