Binding for input devices

68 views
Skip to first unread message

Jonas Sorgalla

unread,
May 5, 2015, 5:03:06 AM5/5/15
to open...@googlegroups.com

Hello everyone,

I am playing around with OH2 for a couple of days and by now I am very impressed with the elegance and simplicity of OH2 compared to OH1 and in general. To learn the basics I implemented two bindings for output devices which our students built.

Now I would like to implement a binding for an input device which generates lots of sensor data and sends them via UDP. My initial plan was to create a new DatagramSocket Thread, receive the data, do some mathematical magic and based on that send commands to the eventbus. Well and here is my problem: How to publish commands to the bus? In OH1 we had the concept of In, Out and InOut Bindings – how did this translate to OH2?

Hopefully the question is not to dumb and someone has a nice example :)

 

Jonas Sorgalla

University of Applied Science Dortmund

Kai Kreuzer

unread,
May 5, 2015, 5:17:30 AM5/5/15
to open...@googlegroups.com
Hi Jonas,

 How to publish commands to the bus? In OH1 we had the concept of In, Out and InOut Bindings – how did this translate to OH2?


Does this answer your question?

Best regards,
Kai

--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/42da60f7-d4f3-4c74-96a7-4fafc87f6ae5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Jonas Sorgalla

unread,
May 5, 2015, 6:09:35 AM5/5/15
to open...@googlegroups.com
Indeed it does!
But now I'm a little bit embarrassed that I was not able to find the solution myself ;)

Thx Kai!
Reply all
Reply to author
Forward
0 new messages