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
Homey.manager('flow').on('condition. never called
RobinVanKekem
Member
in Archive
Building an app for Weather Underground. My Homey.manager('flow').on('condition. is never called? Any prerequisite before it's being called? Code snippet: Homey.manager('flow').on('condition.temp_above', function(callback, args){
// only continue when above a specific threshold
Homey.log("temp above");
Homey.log("temp: " + temp_c_int);
Homey.log("value: " + args.value);
var should_proceed = (temp_c_int > args.value);
callback(null, should_proceed); // err, result
});
This discussion has been closed.
Comments
Figured it out, stupid me: I have to fire the triggers myself, duh!
The below code will fire both conditions as triggers.
Although I don't have any experience outside Android Studio for Android development it looks like Athom did a really nice and stable development environment.
Only wish the error messages sometimes are a bit low on info.