After finalized other part of coding, and finally realized what you tried to propose
I looked at flowcard emulation examples, but seems that still cannot get agrs right.
e.g. flowcard (same trouble with Device Cap app emulation)
Calculate trend for [[insight]] based on the last [[range]] [[unit]]
{
“id”: “homey:app:com.spkes.insightTrendsReloaded:calculateTrendWithoutToken”,
“args”: [
{
“type”: “autocomplete”,
“name”: “insight”,
“title”: “Insight”,
“placeholder”: null
},
{
“type”: “number”,
“name”: “range”,
“title”: “Time range”,
“min”: 1,
“value”: 15,
“placeholder”: null
},
{
“type”: “dropdown”,
“name”: “unit”,
“title”: “Time unit”,
“values”: [
{
“id”: “1”,
“title”: “Minutes”
},
{
“id”: “60”,
“title”: “Hours”
},
{
“id”: “1440”,
“title”: “Days”
}
],
“placeholder”: null
}
],
“droptoken”: null,
“duration”: false
}
Would like to emulate this card:
where sensor data in Insights:
result = await Homey.flow.runFlowCardAction({
uri: ‘homey:app:com.spkes.insightTrendsReloaded’,
id: ‘homey:app:com.spkes.insightTrendsReloaded:calculateTrendWithoutToken’,
args: {
insight: ‘XXXXXXXXX-467d-47ad-845d-0b248f66bf3a.measure_temperature’,
range: 1,
unit: 1440,},
});
log (result);
or others like
insight: ‘Eteinen Lämpö.Temperature °C’,
insight: ‘Eteinen Lämpö.Temperature’,
with same error:
Error: Timed out after 30000ms.
Any advice how to figure out what should I put in or where to look for?