I’m trying to define rollershutter items for lcn-2-binding as described in the doc. Testing the item I’ve got this message from karaf:
21:29:16.467 [WARN ] [subhandler.LcnModuleMetaAckSubHandler] - S000M010: NACK received: Command not allowed by module's configuration
21:29:20.374 [WARN ] [subhandler.LcnModuleMetaAckSubHandler] - S000M010: NACK received: Command not allowed by module's configuration
21:29:24.399 [WARN ] [subhandler.LcnModuleMetaAckSubHandler] - S000M010: NACK received: Command not allowed by module's configuration
21:29:28.314 [WARN ] [nding.lcn.internal.connection.ModInfo] - S000M010: Module did not respond to command: A1DI100008
I guess, I cannot use the rollershuter-type for this module which is a 8-port relay. This module accepts UP, DOWN and STOP commands. How I can define those commands based on channels?
@rossko57: Thanks for your suggestions, it didn’t work as well. IMHO, specificing a profile is only needed, if you want to force an output channel as a specific output/channel type. If I select “rollershutterrelay” as channel, I assume the profile “lcn:rollershutterrelay” is selected implicitly. But I just guess, it might be wrong…
@fwolter: I noticed Issue 8680 has been fixed and I updated my openHab instance to 2.5.10. Unfortunately, invertUpDown still seems to be ignored.
I logged the DEBUG/TRACE output for my example with and without invertUpDown:
The LCN binding’s Rollershutter Channels don’t support Switch commands. I’m wondering how you would stop the shutter, when using a Switch. If you don’t need to stop the shutter, you could simply switch the direction relay.
A Rollershutter type Item will accept commands UP/DOWN/STOP (amongst others). It is of course up to any linked binding whether to do anything with those, or ignore them.
A Switch type widget in a sitemap performs a magic trick if you link to a Rollershutter type Item.
It presents buttons [UP] [STOP] [DOWN] andwhen you poke them, it issues those commands to the Item.
thanks for the hint. With OH-LCN-1 binding all rollershutter worked flawless so far. Nevertheless, I checked my LCN settings within LCN-PRO and all check-boxes are ticked.
I tried to set the Invert Up/Down switch in PaperUI but it does not save my settings (Error 409: Conflict). Since I used confinguration-files to configure OH, I cannot use PaperUI to overwrite/extend my settings.
Is there a way to set this parameter in a config file? Could this parameter exposed to the item decleration as well?
Making the parameter available via Items and Profiles would be possible, but I think this doesn’t reflect the real world, as the wiring is faulty not per Item, but for the whole Channel.
@HaBerry, I was fighting with text based configuration files as well. After several tries, I finally found the solution for setting the “invertState” parameter for binary sensors. This is what workes great for me:
@Maschine, thanks for the snippet and indeed it helps me to find a solution for my problem. Now I can handle my twisted wiring correctly…
@fwolter, sure. Please find a full Rollershutter Config-file-based example below. I’m pretty sure, we are not the only 2 guys, using config-files. I guess @timbms is using them as well?