When you run example-flowcard-list.js
in Homeyscript, it generates all And and Then flowcards of your installed apps, which you can use in HS.
I searched for chronograph for instance:
Start or replace timer [[namedd]] / [[name]] with a duration of [[time]] [[unit]]
{
"uri": "homey:app:nl.fellownet.chronograph",
"id": "timer_start_v2",
"args": [
{
"name": "namedd",
"required": false,
"type": "autocomplete",
"title": "Pick",
"placeholder": "Pick or type"
},
{
"name": "name",
"required": false,
"title": "Name",
"type": "text",
"placeholder": "Type a name"
},
{
"name": "time",
"title": "Duration",
"type": "text"
},
{
"name": "unit",
"title": "Unit",
"type": "dropdown",
"values": [
{
"id": "seconds",
"title": "seconds"
},
{
"id": "minutes",
"title": "minutes"
},
{
"id": "hours",
"title": "hours"
},
{
"id": "days",
"title": "days"
}
]
}
]
}
An example of how to use it, this sends a push message:
Homey.flow.runFlowCardAction({
uri: 'homey:manager:mobile',
id: 'push_text',
args: {
user: {
//name: 'John Doe', // optional, the 'id' and 'athomId' are key here
id: '6bxxxxx-xxxxxxx-xxxxx-xxxx-xxxx-xxx',
athomId: '5fxxxxxxxxxxxxxxxxxx',
},
text: 'Test push notification from HomeyScript test_pushmessage.js'
},
});
return(true);