Then I found out via the docs and a few examples that it should now probably continue in App.js:
const Homey = require(‘homey’);
class App extends Homey.App {
async onInit() {
//Write to the log
this.log('MyApp has been initialized');
//Supply the necessary information
const instance1_url = this.homey.settings.get('Instance1_URL');
const instance1_port = this.homey.settings.get('Instance1_PORT');
const instance1_api = this.homey.settings.get('Instance1_API');
const instance2_url = this.homey.settings.get('Instance2_URL');
const instance2_port = this.homey.settings.get('Instance2_PORT');
const instance2_api = this.homey.settings.get('Instance2_API');
…
That’s where I’m at now.
Now comes the question, how do I get rid of the error mentioned at the beginning, obviously I need a listener which listens if something happens but its implementation is not clear to me even after reading. I have tried many things and derived, but it has always remained with the error.
Therefore my request for a little push in the right direction
That code fixes the issue, if the error remains it’s either placed in the wrong location or you didn’t restart the app. I assume you’re also not getting the console log message?
Hi,
I think you mixed up flow arguments with tokens.
Flow arguments are the input elements in your flow card where the user inserts values you are using in your flow handler.
Flow tokens are returning parametersm the flow card passes back to the flow and you can use in following cards.
Please check if your flow handler is returning the defined tokens.
If you don’t need result tokens, you can remove them from your flow definition.
In general: The flow handler can return tokens (if defined) and in case of an error just throw an error. This will trigger the error output of your flow card (like your screenshot is showing).