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.
Issue with triggering multiple triggers
jjtbsomhorst
Member
in Developers
Hi All,
I've been working on a little app that will give Homey the ability to react on the start of television programs on dutch television. But there is a little problem I'm currently facing which I can't seem to solve myself. The source for this app can be found here: https://github.com/jjtbsomhorst/eu.jeroensomhorst.tvgids/tree/beta.
In the flowprocessor class I've added a setinterval that is used to check to see if something needs to be done every minute. On line 81 of that file you can see how I do this. The problem is this. Whenever I do something like this:
<code>
</code>
aka, adding another trigger nothing seems to work anymore.. No crashes, no messages from Homey simple just no triggering of anything. When I remove the extra trigger all seems to work again.
Can anyone help me with why triggering multiple triggers would cause this to happen?
I've been working on a little app that will give Homey the ability to react on the start of television programs on dutch television. But there is a little problem I'm currently facing which I can't seem to solve myself. The source for this app can be found here: https://github.com/jjtbsomhorst/eu.jeroensomhorst.tvgids/tree/beta.
In the flowprocessor class I've added a setinterval that is used to check to see if something needs to be done every minute. On line 81 of that file you can see how I do this. The problem is this. Whenever I do something like this:
<code>
console.log("trigger program_start trigger");
this.manager.trigger("program_start",state,args);
console.log("trigger any_program_start trigger");
this.manager.trigger('any_program_start',state,args);
aka, adding another trigger nothing seems to work anymore.. No crashes, no messages from Homey simple just no triggering of anything. When I remove the extra trigger all seems to work again.
Can anyone help me with why triggering multiple triggers would cause this to happen?