Skip to main content



      Home
Home » Archived » Eclipse SmartHome » Tutorial Eclipse SmartHome
Tutorial Eclipse SmartHome [message #1701522] Mon, 13 July 2015 16:21 Go to next message
Eclipse UserFriend
Hello!

I am looking for a tutorial for starting the development of eclipse SmartHome.
I really don't understand it's architecture and now I ask you, if you know some good tutorials.

But before I start developing I have one more question: Is it possible to use or implement a OpenHab2 binding in Eclipse SmartHome?



I would be happy, if you could help me!



Marko
Re: Tutorial Eclipse SmartHome [message #1701669 is a reply to message #1701522] Tue, 14 July 2015 15:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi Makro,

it depends a bit on what you actually want to develop. If you want to develop a binding you can take a look at the binding tutorial: https://www.eclipse.org/smarthome/documentation/development/bindings/how-to.html

This chapter describes how you setup your IDE for Development of the Eclipse SmartHome framework: https://www.eclipse.org/smarthome/documentation/development/ide.html

If you just want to use Eclipse SmartHome for your own home automation use cases you better try openHAB2 directly.

In general every binding which was developed for openHAB2 is compatible to all other ESH-based solutions. But openHAB2 has some additional bundles, which are not part of ESH like the serial bundle. Please read this page for more information about binding development in openHAB2 vs ESH: https://github.com/openhab/openhab2/blob/master/docs/sources/development/bindings.md

Regards

Dennis
Re: Tutorial Eclipse SmartHome [message #1701872 is a reply to message #1701669] Thu, 16 July 2015 07:03 Go to previous message
Eclipse UserFriend
Thank you very much Dennis!

But I still have a question:

I defined some channels and channel types; So it's diplayed on the OpenHAB PaperUI.
But what's the Java command for updating data in for instance an String-item.
I followed some tutorials, but I don't get it.

I tried two different things..
My code:
updateState("Id", StringType.valueOf("test"));

and

updateState(channelUID, StringType.valueOf("test"));


Maybe you can help me.
Regardless
Marko
Previous Topic:Alarm clock binding
Next Topic:Charts/Pictures in OpenHAB2
Goto Forum:
  


Current Time: Sun Jul 13 21:16:08 EDT 2025

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

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

Back to the top