[SOLVED] Niko home control 2 binding, From local to cloud (from things to items)


I found the binding for Niko home control 2 https://community.openhab.org/t/niko-home-control-ii/44586/122 because i want to use Amazon Alexa for turning on my lights, dimmers en rollerschutters in the future. The binding works just fine, but i have only one problem:

With the binding i found all my lights as ‘things’. I installed the cloud connector so i can use it with Alexa, but this needs items… not ‘things’.

I searched the net for hours, but i’m not a programmer and new to Openhab, so i can’t figure out how to combine the binding to the Cloud connector which uses ‘Items’.

I think, if anyone can provide me an example of the code i need to use, i can work out the same thing for my lights.

Can anyone help with this? Thanks in advance.

EVERYTHING in OH needs Items not just Things. I’m going to guess you have simple mode enabled. Disable this and you will find a new Items entry under Configuration in PaperUI.

Now unfortunately, in order to use these Items with Alexa, you need to apply tags to them. PaperUI doesn’t support adding tags to Items. So you have two choices, Delete these Items ad define your Items in .items files (see https://www.openhab.org/docs/configuration/items.html). Or you can install the REST API Docs from the Misc tab under Add-ons and add the tags through the docs (go down to the Items section).

Thank you very much, i was on minimal mode…

I managed to link items to things, they appear in the OH app on my tablet and i can switch lights on/off in the app. So far, so good.

Only problem now, myopenhab.org stays offline. I’m positively sure i entered the correct keys, rebooted several times, deleted and recreated an account but it stays offline. I searched everywhere, but i cant find the problem. One strange thing, in the official guide i needed to set the url on https://myopenhab.org/ but when i installed the addon it automatically starts on https://myopenhab.org/443. I tried both, but nothing works…

What do you mean by “it automatically starts”. The server isn’t controlled by you. You are connecting to a remove server located at https://myopenhab.org.

Do you mean https://myopenhab.org:443? Because that is essentially the same address as the one without the :443.

I meant: is set by default on :443. I didn’t know it was the same thing.

Do you think i need to install or change something that isn’t in the official tutorial?

I did exactly the same steps, but i didnt configure the settings in the file conf/services/openhabcloud.cfg. I think this isn’t necessary to link OH on my system to myopenhab.org?

You shouldn’t have to do anything at all. I have no idea what to recommend at this point.

Thought so, that’s probably why i can’t find extra information on the net. It seems not a lot of people have this issue. Thanks for the help.

Just one question, is it possible that it has something to do that i don’t run OH in the console, but just started it with command: sudo service openhab2 start, so it runs in the background?

That shouldn’t matter for this.

Turned out i hadn’t the latest version of Java. Online now. Thx again.