This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed
Issue triggering flows from app
I'm trying to trigger flows that use my "when" card. I have defined it as follows:
"flow": {
"triggers": [
{
"id": "activity_changed",
"title": {
"en": "Activity changed",
"nl": "Activiteit gewijzigd"
},
"tokens": [
{
"name": "activity",
"title": {
"en": "activity",
"nl": "activiteit"
}
}
]
}
]
}
And I emit the event from app.js like this:
Homey.manager("flow").trigger("activity_changed", { activity: activity.name });
Somehow it seems my "when" card never gets triggered.
Any suggestions are greatly appreciated!
This discussion has been closed.
Comments
Are you sure the trigger code is run and activity.name has a value?
https://github.com/athombv/homey/issues/271