Openhab入門介紹

jopen 9年前發布 | 59K 次閱讀 網絡技術 openHAB

這兩年IOT概念一片紅火,apple的homekit,  google收購Nest, 下半年要發布os brillo, weave編程語言, 三星的the smart things, 還有各種框架平臺組織alljoyn, iotivity, iot of eclipse等等(http://postscapes.com 一個追蹤IOT行業情況,在http://postscapes.com/internet-of-things-award/winners/ 組織的一個每年投票 IOT awards,可以了解下里面當前IOT開源發展狀況), 國內的家電廠商,以及云平臺公司也在試圖建立自己的IOT標準,平臺,

鵝廠的qq物聯平臺, 阿里物聯平臺等等。我近段時間工作也涉及物聯網方面,目前在原型階段, 把當前開源的IOT平臺openhab拿來對比,總結下自己可以借用改進哈.

 

    直接從 http://www.openhab.org/features.html copy過來 openhab的介紹

More and more new cool devices and technologies arrive at our homes every day. But though they are all aimed at enhancing our lifestyle they all lack one important feature:  a common language  they could speak to each other to create a really automated and smart environment at home. The main goal of openHAB is to provide an integration platform to fix this issue。

What is openHAB?

openHAB is a software for integrating different home automation systems and technologies into one single solution that allows over-arching automation rules and that offers uniform user interfaces.

This means openHAB

  1.  is designed to be absolutely vendor-neutral as well as hardware/protocol-agnostic
  2.  can run on any device that is capable of running a JVM (Linux, Mac, Windows)(這個平臺都是用java寫的,需要跑個jvm,對于資源有限的承載硬件是負擔)
  3.  lets you integrate an abundance of different home automation technologies into one
  4.  has a powerful rule engine to fulfill all your automation needs
  5.  comes with different web-based UIs as well as native UIs for iOS and Android
  6.  is fully open source
  7.  is maintained by a passionate and growing community
  8.  is easily extensible to integrate with new systems and devices
  9.  provides APIs for being integrated in other systems
  10. </ol> </div>

     

    Considering the user perspective also means caring for  data privacy. With openHAB, all data (like sensor data or actuator commands) belongs to the user and it is up to him to decide, what data should potentially leave his house and where it is sent. Furthermore, there is no remote access possible, if it is not desired - everything works nicely within the intranet and does not even require an Internet connection. We therefore also like to call it the " Intranet of Things".

     

    It therefore assumes that the  sub-systems are setup and configured independently of openHAB as this is often a very specific and complex matter (including "pairing" processes, direct device links etc.). Instead, openHAB focuses on the " daily use" side of things and abstracts from the devices themselves

     

     

    A very important aspect of openHAB's architecture is its  modular design. It is very easy to add new features (like the integration with yet another system through a "binding") and you can  add and remove such features at runtime. This modular approach has been a huge enabler for the active community around openHAB with many engaged contributors.

     

     

    The openHAB project is split into two parts:  openhab runtime , which you will actually run on your server and which does the "real" work and  openhab designer which is more or less a configuration tool for the openhab runtime. It comes with user-friendly editors to configure your runtime, to define your UIs and to implement your rules

     

    The openHAB runtime is a set of OSGi bundles deployed on an OSGi framework (Equinox)

      Openhab入門介紹

    Every technology or device, social network or cloud platform integrated into openHAB is supported by a specific bundle. Those bundles are optional and pluggable, they can be added to your openHAB as soon as you need them.

    Bindings provide integration with different home automation technologies and devices while there are quite a lot of other bundles providing integration and communication with social networks, instant messaging, cloud IoT platfroms and much more

    openhab不僅僅能接入設備,它還能連接社交網絡,IM,云平臺,參考 http://www.openhab.org/features-tech.html </div>

    DropboxAsteriskNest推terSNMP等等,云平臺,設備,協議都可以作為bundle添加到openhab.

     

    openhab可以作為家庭智能網關中心, 通過它來操控家庭智能設備,各種交互。

     

    http://www.openhab.org/gettingstarted.html 可以使用demo來實際體驗下openhab, 部署簡單。

    參考 https://github.com/openhab/openhab/wiki/Hue-Binding,把hue燈接入,玩了一下, 感覺目前openhab是一個geek玩的,接入一個新的東西,流程需要編輯item, sitemap, 即需要手工設置設備實例信息。

     

    設備信息包括兩部分:1.設備的meta信息,2.設備的實例信息。

    eg: hue, 它有 on/off, bri, color等meta屬性,而實例信息包括:家庭中有幾個hub, 每個hub又有多少bulb, 它們叫什么名字等等。

    openhab把meta屬性包含在了jar包內,而實例信息只能手工填寫。
    </div>

    myopenhab( https://my.openhab.org)可以做遠程控制管理家庭設備,以及存儲用戶產生的數據(參考 https://my.openhab.org/docs/persistence)。

      Openhab入門介紹

     

    好的應用場景是這樣: 

    有一個服務器平臺openhab-cloud,  它與每個家庭的openhab連接。

    開發者添加新設備類型支持,提交bundle到cloud.

    當用戶有相應的設備,或感興趣的應用添加到家庭智能網關,可通過web,或客戶端方式搜索查詢是否支持,注冊(包括實例信息?), openhab-cloud就會推送相應的addon到openhab部署,包括item, sitemap自動更新, 當然還有像myopenhab那樣可以存儲用戶的數據,做展示和分析。


    來自:http://www.cnblogs.com/europelee/p/4690971.html

     本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
     轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
     本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!