Nikobus compatibility OH2

A item Nikobus output item (like a relay output) is configured like this:

Switch Relay_7 "light front door" {nikobus="7256:7"}

This switch item is manipulating directly relay output 7 of module 7256

To configure (= identify the button to the system) the Nikobus wall switch that controls that light you have to to this:

Switch BP22_1A "light front door" {nikobus="#N452CA1[7256-2]"}

With this you say to the system: "button adress #N452CA1 is manipulating the last part of outputs (relays 7 to 12) of switching module 7256. So when that button is pressed, the Nikobus binding reads out the state of outputs 7 to 12 of module 7256 so it can update the output state of the relay in Openhab.

So your items for the nikobus relay outputs are correct, but for the buttons are wrong.
you only can use “-1” or “-2” after the module address. “-1” for output 1 to 6 and “-2” for output 7 to 12.

ok, that is clear now (it only reflects on the “module”)

  Now, how can I achieve to reflect with the light bulb (on or off) which lights are on or off ?

  let's say I have a button that ON/OFF 3 lights, how do I reflect that in OH ? I need to identify a light based on its 'module' item, while in fact I have button that in one command handles multiples relays

Heel guys,

My system works fine and I use the habpanel to switch en dim my lights. butt now I wanted to fix the status update from the nikobus buttons in the habpanel, I got this working butt when I do this then my dim function in the habpanel doesn’t work anymore. I get this error :

2018-09-24 17:03:17.506 [WARN ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at ‘items/Led_woonkamer’ with an invalid status value ‘50’.
2018-09-24 17:03:23.306 [WARN ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at ‘items/Led_woonkamer’ with an invalid status value ‘15’.
2018-09-24 17:03:29.980 [WARN ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at ‘items/Led_woonkamer’ with an invalid status value ‘100’.

I putt this in items:

Switch Led_woonkamer “led woonkamer On”** {nikobus="#N1B568E[09CC-1]"}
Switch Led_woonkamer “led woonkamer Off”
**{nikobus="#N5B568E[09CC-1]"}
Dimmer Led_woonkamer {nikobus=“09CC:1”}

I hope u guys can help

Greetz jeroen

First of all but is not a butt :wink:

At first sight you have two switches and a dimmer with the same name. I would rename those. I think that is why it says the value sent to a switch is not correct.

Heej there thanks for the repley!
Hahah i’m sorry mine english is terreble!
Ok that sounds right, i will change it soon en let u know iff it helpt.
Greetz!

Hi there,

I have changed the settings you set. I have ride it out like the discription above.

/* Kantoor */
Dimmer NB_D1_07_Led_Kantoor {nikobus=“09CC:7”}

/* Badkamer */
Dimmer NB_D2_01_Led_Badkamer {nikobus=“5CFF:1”}

/* TWEEDE_ETAGE */

/* Hallen_Trappenhuis */
Switch NB_S1_03_Led_Hal_Bg {nikobus=“3786:3”}
Switch NB_S1_05_Led_Trap_Bg_1e {nikobus=“3786:5”}
Switch NB_S1_06_Led_Overloop_1e {nikobus=“3786:6”}
Switch NB_S2_02_Led_Trap_1e_2e {nikobus=“882E:2”}
Switch NB_S2_03_Led_Overloop_2e {nikobus=“882E:3”}

/* VENTILATIE */
Switch NB_S1_02_Afzuig_Toilet {nikobus=“3786:2”}

/* BUSDRUKKERS */
Switch RB_BP3_D_Alles_uit {Nikobus="#N493A8E"}

Switch RB_BP1_G_Led_Woonkamer_aan {nikobus="#N1B568E[09CC-1]"}
Switch RB_BP1_H_Led_Woonkamer_uit {nikobus="#N5B568E[09CC-1]"}

Now I dont have errors and I can see that I push a button on the wall butt in habbpanel it doesn’t change the state :frowning:

2018-10-25 09:36:35.945 [vent.ItemStateChangedEvent] - NB_S1_07_Sfeer_Dressoir changed from ON to OFF
==> /var/log/openhab2/openhab.log <==
2018-10-25 09:36:35.991 [DEBUG] [internal.core.NikobusCommandReceiver] - Received NikobusCommand [command=$0516, repeats=1]
2018-10-25 09:36:36.187 [DEBUG] [internal.core.NikobusCommandReceiver] - Received NikobusCommand [command=$0EFF37860053, repeats=1]
2018-10-25 09:37:12.482 [DEBUG] [internal.core.NikobusCommandReceiver] - Received NikobusCommand [command=#N9B568E, repeats=5]
2018-10-25 09:37:26.573 [DEBUG] [internal.core.NikobusCommandReceiver] - Received NikobusCommand [command=#NDB568E, repeats=6]
2018-10-25 09:37:27.076 [DEBUG] [internal.core.NikobusCommandReceiver] - Received NikobusCommand [command=#N5B568E, repeats=3]
2018-10-25 09:37:27.082 [DEBUG] [kobus.internal.core.NikobusInterface] - Sending : $101209CC43C744
==> /var/log/openhab2/events.log <==
2018-10-25 09:37:27.092 [vent.ItemStateChangedEvent] - RB_BP1_H_Led_Woonkamer_uit changed from NULL to ON
==> /var/log/openhab2/openhab.log <==
2018-10-25 09:37:27.127 [DEBUG] [internal.core.NikobusCommandReceiver] - Received NikobusCommand [command=$0512, repeats=1]
2018-10-25 09:37:27.716 [DEBUG] [internal.core.NikobusCommandReceiver] - Received NikobusCommand [command=$1C09CC00000000000000C048ED, repeats=1]
2018-10-25 09:37:28.180 [DEBUG] [internal.core.NikobusCommandReceiver] - Received NikobusCommand [command=#N1B568E, repeats=5]
2018-10-25 09:37:28.185 [DEBUG] [kobus.internal.core.NikobusInterface] - Sending : $101209CC43C744
==> /var/log/openhab2/events.log <==
2018-10-25 09:37:28.195 [vent.ItemStateChangedEvent] - RB_BP1_G_Led_Woonkamer_aan changed from NULL to ON
==> /var/log/openhab2/openhab.log <==
2018-10-25 09:37:28.229 [DEBUG] [internal.core.NikobusCommandReceiver] - Received NikobusCommand [command=$0512, repeats=1]
2018-10-25 09:37:28.824 [DEBUG] [internal.core.NikobusCommandReceiver] - Received NikobusCommand [command=$1C09CC00290000000000BDA2C8, repeats=1]
==> /var/log/openhab2/events.log <==
2018-10-25 09:38:42.079 [ome.event.ItemCommandEvent] - Item ‘NB_D1_01_Woonkamer_led’ received command 37
==> /var/log/openhab2/openhab.log <==
2018-10-25 09:38:42.088 [DEBUG] [kobus.internal.core.NikobusInterface] - Sending : $1E1509CC5F0000000000FF116B09
==> /var/log/openhab2/events.log <==
2018-10-25 09:38:42.101 [vent.ItemStateChangedEvent] - NB_D1_01_Woonkamer_led changed from 0 to 37
==> /var/log/openhab2/openhab.log <==
2018-10-25 09:38:42.150 [DEBUG] [internal.core.NikobusCommandReceiver] - Received NikobusCommand [command=$0515, repeats=1]
2018-10-25 09:38:42.341 [DEBUG] [internal.core.NikobusCommandReceiver] - Received NikobusCommand [command=$0EFF09CC00E3, repeats=1]

I hope you can see something for me

Greetz!!

To be honest, first of all I should split up your item file in two parts: one for all the physical buttons, one for the effective lightpoints/outlets. See it as the difference between inputs and outputs.

For ex:

/* VENTILATIE /
Switch NB_S1_02_Afzuig_Toilet {nikobus=“3786:2”}
-> is this an input or an output?
/
BUSDRUKKERS */
Switch RB_BP3_D_Alles_uit {Nikobus="#N493A8E"}
-> i think this is an input.

My naming strategy is like this

For buttons, as they are set in my nikobus software:

//	Type	Drukknop		"#knoppen	locatie							
//	Switch	BP1		4	garage kelderdeur							
Switch	BP1_A			{nikobus="#N9DCACA [B74F-1, B74F-2, 755C-1, 755C-2, C550-1, C550-2, 41F2]"}
Switch	BP1_B			{nikobus="#NDD6ACA[755C-1]"}
Switch	BP1_C			{nikobus="#N1D6ACA[755C-1]"}
Switch	BP1_D			{nikobus="#N5D6ACA[755C-1]"}

(never mind for switch BP_1A, it’s an all off switch in the nikobus. for the WAF and my heritage I choose to keep most of the basics my wife is used to in the nikobus, all the ‘specials’ and new things are in openhab)

For actors:

Switch	light_Zithoek_Centraal		"Living"	(Lights,GV_Living)		[ "Lighting" ]{ nikobus="B74F:10" }
Dimmer	light_Zithoek_Spots			"Living Spots"	(Lights,GV_Living)			[ "Lighting" ]{ nikobus="41F2:2" }
Switch	light_Zithoek_Schilderij 	"Living Schilderij"	(Lights,GV_Living)		[ "Lighting" ]{ nikobus="B74F:11" }
Switch	light_Eethoek_Centraal		"Eetplaats"		(Lights,GV_Living)		[ "Lighting" ]{ nikobus="B74F:8" }
Dimmer	light_Eethoek_Spots			"Eetplaats Spots"			(Lights,GV_Living)		[ "Lighting" ]	{ nikobus="41F2:1" }

On your habpanel I only have the state of the light and not the state of the button. I don’t care if the button is on or off, I want to see what the result is.

Can you post your habpanel code?

Next to that: I also have the issue that nikobus dimmers and habpanel don’t seem to be the best friends. I’ve kinda given up on that. Also the fact that in my household the phone/physical wall controls are the most used buttons. The specially placed tablet with fully kiosk is mostly appreciated for the android daydream family pics screensaver mode :smile:

Heej Bruno,

Sorry for my late response! it where a couple of busy weeks on my work and home so i could not find the time sorry.

I see how you mean i like the way youre strategy is and i will set the mine like that also!

Switch NB_S1_02_Afzuig_Toilet {nikobus=“3786:2”}
-> is this an input or an output?

This is an output on the switch

/ BUSDRUKKERS */
Switch RB_BP3_D_Alles_uit {Nikobus="#N493A8E"}
-> i think this is an input.

This is a real button on the wall so its a input

I dont know what you mean with that i only have the state of the buttons? what i do is the only way i know. can you tell me how to update the output?

hahaha that a wasted :stuck_out_tongue:
We more use the buttons an habpanel on the iPhone. And i have to say the dim function on it is working great butt not the update off it

here’s my habpanel code from the Phone. i’m still trying some things butt the status updates ar importend to me

{
“Telefoon”: {
“updatedTime”: “2018-11-10T07:22:25.056Z”,
“dashboards”: [
{
“id”: “Home”,
“name”: “1e etage”,
“widgets”: [
{
“name”: “Led kantoor”,
“sizeX”: 8,
“sizeY”: 5,
“item”: “NB_D1_07_Led_Kantoor”,
“type”: “slider”,
“row”: 1,
“col”: 4,
“floor”: 15,
“ceil”: 100,
“step”: 1,
“hidelimits”: true,
“hidepointer”: true
},
{
“name”: “Led kantoor switch”,
“sizeX”: 4,
“sizeY”: 5,
“item”: “NB_D1_07_Led_Kantoor”,
“type”: “switch”,
“row”: 1,
“col”: 0,
“hidelabel”: true,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “light”,
“icon_size”: 32
},
{
“name”: “Led wand slaapkamer switch”,
“sizeX”: 4,
“sizeY”: 5,
“item”: “NB_D1_03_Led_Wand”,
“type”: “switch”,
“row”: 6,
“col”: 0,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “light”,
“icon_size”: 32,
“hidelabel”: true,
“hideicon”: false,
“hideonoff”: true
},
{
“name”: “Led wand slaapkamer”,
“sizeX”: 8,
“sizeY”: 5,
“item”: “NB_D1_03_Led_Wand”,
“type”: “slider”,
“row”: 6,
“col”: 4,
“floor”: 15,
“ceil”: 100,
“step”: 1,
“hidelimits”: true,
“hidepointer”: true
}
],
“row”: 1,
“col”: 0,
“tile”: {
“backdrop_iconset”: “eclipse-smarthome-classic”,
“backdrop_icon”: “firstfloor”,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “firstfloor”,
“title_color”: “#99FF66
},
“sizeX”: 3,
“sizeY”: 1,
“$$hashKey”: “object:5294”
},
{
“id”: “Begaande grond”,
“name”: “Begaande grond”,
“widgets”: [
{
“name”: “Led woonkamer switch”,
“sizeX”: 4,
“sizeY”: 4,
“item”: “NB_D1_01_Woonkamer_Led”,
“type”: “switch”,
“row”: 0,
“col”: 0,
“hidelabel”: true,
“hideonoff”: true,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “light”,
“icon_size”: 32
},
{
“name”: “Led woonkamer”,
“sizeX”: 8,
“sizeY”: 4,
“item”: “NB_D1_01_Woonkamer_Led”,
“type”: “slider”,
“row”: 0,
“col”: 4,
“floor”: 15,
“ceil”: 100,
“step”: 1,
“hidelabel”: false,
“hidelimits”: true,
“hidepointer”: true,
“showticks”: false,
“showticksvalues”: false,
“inverted”: false,
“bigslider”: false,
“backdrop_center”: true
},
{
“name”: “Sfeer kast”,
“sizeX”: 8,
“sizeY”: 4,
“item”: “NB_D1_02_Sfeer_Kast”,
“type”: “slider”,
“row”: 4,
“col”: 4,
“floor”: 25,
“ceil”: 100,
“step”: 1,
“hidelimits”: true,
“hidepointer”: true
},
{
“name”: “Sfeer kast switch”,
“sizeX”: 4,
“sizeY”: 4,
“item”: “NB_D1_02_Sfeer_Kast”,
“type”: “switch”,
“row”: 4,
“col”: 0,
“hidelabel”: true,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “light”,
“icon_size”: 32,
“hideonoff”: true
},
{
“name”: “Led keuken”,
“sizeX”: 8,
“sizeY”: 4,
“item”: “NB_D1_05_Led_Keuken”,
“type”: “slider”,
“row”: 8,
“col”: 4,
“floor”: 15,
“ceil”: 100,
“step”: 1,
“hidelimits”: true,
“hidepointer”: true
},
{
“name”: “Led keuken switch”,
“sizeX”: 4,
“sizeY”: 4,
“item”: “NB_D1_05_Led_Keuken”,
“type”: “switch”,
“row”: 8,
“col”: 0,
“hidelabel”: true,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “light”,
“icon_size”: 32,
“hideonoff”: true
},
{
“name”: “Led eettafel switch”,
“sizeX”: 4,
“sizeY”: 4,
“item”: “NB_D1_04_Led_Eettafel”,
“type”: “switch”,
“row”: 12,
“col”: 0,
“hidelabel”: true,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “light”,
“icon_size”: 32,
“hideonoff”: true
},
{
“name”: “Led eettafel”,
“sizeX”: 8,
“sizeY”: 4,
“item”: “NB_D1_04_Led_Eettafel”,
“type”: “slider”,
“row”: 12,
“col”: 4,
“floor”: 15,
“ceil”: 100,
“step”: 1,
“hidelimits”: true,
“hidepointer”: true
},
{
“name”: “Led hal”,
“sizeX”: 4,
“sizeY”: 4,
“item”: “NB_S1_03_Led_Hal_Bg”,
“type”: “switch”,
“row”: 16,
“col”: 4,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “light”,
“icon_size”: 32,
“hidelabel”: false,
“hideonoff”: true
},
{
“name”: “Led bijkeuken”,
“sizeX”: 4,
“sizeY”: 4,
“item”: “NB_S1_04_Led_Bijkeuken”,
“type”: “switch”,
“row”: 16,
“col”: 8,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “light”,
“icon_size”: 32,
“hideonoff”: true
},
{
“name”: “Sfeer dressoir”,
“sizeX”: 4,
“sizeY”: 4,
“item”: “NB_S1_07_Sfeer_Dressior”,
“type”: “switch”,
“row”: 16,
“col”: 0,
“hideonoff”: true,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “light”,
“icon_size”: 32
}
],
“row”: 2,
“col”: 0,
“sizeX”: 3,
“sizeY”: 1,
“tile”: {
“backdrop_iconset”: “eclipse-smarthome-classic”,
“backdrop_icon”: “groundfloor”,
“backdrop_center”: false,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “groundfloor”,
“title_color”: “#66FF33
},
“$$hashKey”: “object:5295”
},
{
“id”: “Ventilatie”,
“name”: “Ventilatie”,
“widgets”: [
{
“name”: “Afzuig ventilatie toilet”,
“sizeX”: 12,
“sizeY”: 4,
“item”: “NB_S1_02_Afzuig_Toilet”,
“type”: “switch”,
“row”: 0,
“col”: 0,
“iconset”: “eclipse-smarthome-classic”
}
],
“row”: 4,
“col”: 0,
“sizeX”: 3,
“tile”: {
“backdrop_iconset”: “eclipse-smarthome-classic”,
“backdrop_icon”: “fan_box”,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “fan_box”,
“title_color”: “#99FF66
},
“$$hashKey”: “object:5296”
},
{
“id”: “2e etage”,
“name”: “2e etage”,
“widgets”: [
{
“name”: “Led overloop”,
“sizeX”: 4,
“sizeY”: 4,
“item”: “NB_S2_03_Led_Overloop_2e”,
“type”: “switch”,
“row”: 0,
“col”: 0,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “light”,
“icon_size”: 32,
“hideonoff”: true
}
],
“row”: 0,
“col”: 0,
“sizeX”: 3,
“tile”: {
“backdrop_iconset”: “eclipse-smarthome-classic”,
“backdrop_icon”: “attic”,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “attic”,
“title_color”: “#99FF66
},
“drawer”: {},
“header”: {},
“$$hashKey”: “object:5297”
},
{
“id”: “Hal”,
“name”: “Hal en trappenhuis”,
“widgets”: [
{
“name”: “Led trap bg/1e”,
“sizeX”: 12,
“sizeY”: 5,
“item”: “NB_S1_05_Led_Trap_Bg_1e”,
“type”: “switch”,
“row”: 0,
“col”: 0,
“backdrop_iconset”: “freepik-household”,
“backdrop_icon”: “stairs”,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “light”,
“icon_size”: “32”
},
{
“name”: “Led trap 1e/2e”,
“sizeX”: 12,
“sizeY”: 5,
“item”: “NB_S2_02_Led_Trap_1e_2e”,
“type”: “switch”,
“row”: 5,
“col”: 0,
“iconset”: “eclipse-smarthome-classic”,
“icon”: “light”,
“icon_size”: 32
}
],
“row”: 3,
“col”: 0,
“sizeX”: 3,
“sizeY”: 1,
“tile”: {
“backdrop_iconset”: “freepik-household”,
“backdrop_icon”: “stairs-1”,
“iconset”: “freepik-household”,
“icon”: “stairs-1”,
“title_color”: “#99FF66
},
“$$hashKey”: “object:5298”
}
],
“menucolumns”: 3,
“settings”: {
“theme”: “default”,
“panel_name”: “Home Sweet Home”
},
“customwidgets”: {
“blind-control-4way (1)”: {
“template”: “<div style=”\n \t\t\t\t font-size: 2.2em;\n \t\t\t\t font-family: Roboto, Helvetica, sans-serif;\n text-align: center;\n border: 0px; \n \t\t\t\t border-style: solid;\n border-color: red;\n display: flex;\n position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; \n \t\t\t\t “> \n<div style=“margin:5%; width:inherit”> \n\n <div class=“row” style=”\n border: 0px; \n \t\t\t\t border-style: solid;\n border-color: green;\n height: 10%;\n \t\t\t\t ">{{ngModel.name}}\n \n <div class=“row” style="background: rgba(0,0,0,0.5);\n border-radius: 10px;\n border: 1px;\n border-style: solid;\n border-color: rgb(100,100,100) ;\n margin-top: 8%; margin-left: 2%; margin-right:2%;\n height: 21%; \n text-align: center;\n ">\n \t\t\t<button class=“test” \n style= "border: none; \n background: rgba(0,0,0,0);\n outline:none;\n font-size: 1.2em;\n height: 100%;\n width: 100% " \n ng-click=“sendCmd(config.blind_name, config.value_one)”>\n {{config.label_one}}\n \n \n <div class=“row” style="background: rgba(0,0,0,0.5);\n border-radius: 10px;\n border: 1px;\n border-style: solid;\n border-color: rgb(100,100,100) ;\n margin-top: 4%; margin-left: 2%; margin-right:2%;\n height: 21%;\n text-align: center;\n ">\n \t\t\t<button class=“test” \n style= "border: none; background: rgba(0,0,0,0); outline:none;height: 100%; width: 100%; font-size: 1.2em; " \n ng-click=“sendCmd(config.blind_name, config.value_two)”>\n {{config.label_two}}\n \n \n <div class=“row” style="background: rgba(0,0,0,0.5);\n border-radius: 10px;\n border: 1px;\n border-style: solid;\n border-color: rgb(100,100,100) ;\n margin-top: 4%; margin-left: 2%; margin-right:2%;\n height: 21%;\n text-align: center;\n ">\n \t\t\t<button class=“test” \n style= "border: none; background: rgba(0,0,0,0); outline:none;height: 100%; width: 100% ;font-size: 1.2em; " \n ng-click=“sendCmd(config.blind_name,config.value_tree)”>\n {{config.label_tree}}\n \n \n\n <div class=“row” style="background: rgba(0,0,0,0.5);\n border-radius: 10px;\n border: 1px;\n border-style: solid;\n border-color: rgb(100,100,100) ;\n margin-top: 4%; margin-left: 2%; margin-right:2%;\n height: 21%;\n text-align: center;\n ">\n \t\t\t<button class=“test” \n style= “border: none; background: rgba(0,0,0,0); outline:none;height: 100%; width: 100%; font-size: 1.2em; " \n ng-click=“sendCmd(config.blind_name,config.value_four)”>\n {{config.label_four}}\n \n \n\n”,
“settings”: [
{
“type”: “item”,
“id”: “blind_name”,
“label”: “Blind Name”
},
{
“type”: “number”,
“id”: “value_one”,
“label”: “1st Value”
},
{
“type”: “string”,
“id”: “label_one”,
“label”: “1st Label”
},
{
“type”: “number”,
“id”: “value_two”,
“label”: “2nd Value”
},
{
“type”: “string”,
“id”: “label_two”,
“label”: “2nd Label”
},
{
“type”: “number”,
“id”: “value_tree”,
“label”: “3rd Value”
},
{
“type”: “string”,
“label”: “3rd Label”,
“id”: “label_tree”
},
{
“type”: “number”,
“id”: “value_four”,
“label”: “4th Value”
},
{
“type”: “string”,
“id”: “label_four”,
“label”: “4th Label”
}
],
“name”: “Blind-4way”
}
}
}
}

“I dont know what you mean with that i only have the state of the buttons? what i do is the only way i know. can you tell me how to update the output?”

Well I don’t track the state of the physical wall buttons, only of the output items like the lights.

Actually I don’t use habpanel any more, because the fastest IMHO is the basic ui on my phone. I’ll see if I can check the code anywhere this weekend…

Ok i’m quriuos how you do that!

Ok, yeah sometimes thats better. I still like habpanel on the phone, use it every day :wink:

That would be nice thanks!