Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » how to get a command or event von OpenHAB 2 ?(how to get a command or event von OpenHAB 2 ?)
how to get a command or event von OpenHAB 2 ? [message #1710429] Tue, 06 October 2015 15:10 Go to next message
Alex Kamdem Mambou is currently offline Alex Kamdem MambouFriend
Messages: 17
Registered: October 2015
Junior Member
Hello,
I am a beginner,
I want to know how to retrieve a command or event (in eclipse smarthome) when I change its status to PaperUI (from openHAB2).
what is the method that allows to recover a command or an event caused by the change of state of the user interface
Thank you for your answers
Re: how to get a command or event von OpenHAB 2 ? [message #1710430 is a reply to message #1710429] Tue, 06 October 2015 15:13 Go to previous messageGo to next message
Kai Kreuzer is currently offline Kai KreuzerFriend
Messages: 673
Registered: December 2011
Senior Member
Hi Alex,

if you want to know how to do it in Java code see https://www.eclipse.org/smarthome/documentation/concepts/events.html#receive-events.
If you want to receive events through the REST API, see https://www.eclipse.org/smarthome/documentation/features/rest.html#server-sent-events-sse.

Hope this helps!
Kai
Re: how to get a command or event von OpenHAB 2 ? [message #1710563 is a reply to message #1710430] Wed, 07 October 2015 14:41 Go to previous message
Alex Kamdem Mambou is currently offline Alex Kamdem MambouFriend
Messages: 17
Registered: October 2015
Junior Member
Thank you for your reply Kai but his two links did not help me.
In fact I had already traveled these two links without result.
for example when I implements the receive-method of EventSubscriber
that takes the parameter-Event. I wonder how this parameter Event is loaded .
Is there a method "getEvent" to loading.
I also have the same problem with itemCommande
sorry for my bad English. I hope to make me understand
Thanks for your help
Previous Topic:Supported Commands/States for A Given Item Type String in BaseThingHandler
Next Topic:Aliasing supported-bridge-type-refs
Goto Forum:
  


Current Time: Fri Apr 19 17:05:40 GMT 2024

Powered by FUDForum. Page generated in 0.02410 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top