@Jey-Cee
Danke. Der info.connection war für mich noch Neuland. Ich musste den noch in der io-package.json erst mal überhaupt hinzufügen.
"instanceObjects": [{
"_id": "info.connection",
"type": "state",
"common": {
"role": "indicator.connected",
"name": "If adapter configuration successfully validated",
"type": "boolean",
"read": true,
"write": false,
"def": false
},
"native": {}
}]
Nun geht es mit:
this.setState('info.connection', true, true); // change to green
this.setState('info.connection', false, true); // change to yellow