I set up the binding successfully just a few days ago, it should work. From your error message, I’d say that the URL you entered in the pairing process is wrong.
After a period of ilnes iám trying to get developing again on this binding. Finding my way back I have the same problem with my development environement.
What I see is that the binding is working with OH 4.2.0 but its acting strange with OH 4.3.1
Can you set the binding on debug mode. So there is more info from the log
Alex I hope you feel better!
I’m currently running OH 4.3.4 but have to restart the binding multiple times a day. Most of the times is starts working after the restart.
//---------------------------------------------------------------------------
rules.JSRule({
//---------------------------------------------------------------------------
name: "Herstart Onecta Account Thing",
description: "Schakel de Onecta Thing uit en na 5 seconden weer in",
triggers: [
triggers.TimeOfDayTrigger("02:03:00"),
triggers.TimeOfDayTrigger("06:03:00"),
triggers.TimeOfDayTrigger("12:03:00"),
triggers.TimeOfDayTrigger("20:03:00") ],
execute: function(event) {
var thing = things.getThing("onecta:account:9c000d1c2c");
if (thing) {
thing.setEnabled(false);
setTimeout( () => {
thing.setEnabled(true);
}, 5000);
} else {
console.log("Onecta", "Thing niet gevonden!");
}
}
});
Hi @signo,
the code goes wrong at the point where it processes the received data. if you turn on the rawdata the received data should appear in the log.
Maybe then we can see more what is going wrong.
And in addition to this. You have to be in Incognito all the time following the instructions. It took me hours to find this out. I got the exact same errors while trying to pair the account.