How to use Trigger-Channels? [message #1758762] |
Sun, 02 April 2017 11:53 |
Eclipse User |
|
|
|
Hi!
tl;dr:
I need to model buttons for a thing and according to the documentation the best way to do this is trigger channels.
I cant find any good examples for triggers, so could someone provide some code and xml as sample? I already added some xml
and in the Thing description the channel is shown but I cant link anything to it nor is it rendered in the control section in paper ui.
Background:
I'm developing a binding for my personal use: I recently build myselfe a home entertainment system with many devices.
I use lirc and a raspi to control them via ir commands. I could use the lirc server and connect it to openhab via a http binding,
but that doesnt fit all my needs, same goes for the exec binding: I want to model each of this devices as things. The usual items like SwitchItems and StringItems fit for most porpuses, but I also need to be able to use something just like buttons, which I can directly map to the ir remote command. Therefor I want to use trigger channels. Bonus question: Can I create my own Items by extending GenericItem and using a own ItemFactory? Would these items be rendered correctly in paper ui out of the box?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02378 seconds