项目作者: hggh

项目描述 :
MagicMirror module to access OpenHAB Items with REST API
高级语言: JavaScript
项目地址: git://github.com/hggh/MMM-OpenHAB-Items.git
创建时间: 2020-11-07T17:56:30Z
项目社区:https://github.com/hggh/MMM-OpenHAB-Items

开源协议:MIT License

下载


Magic Mirror Module: OpenHAB Items

This is a module for Magic Mirror² to list OpenHAB Items on your Magic Mirror. It is designed for touch screens. But can also display values of Items from your OpenHAB. It uses the OpenHAB REST API.

Supported Items:

  • Rollershutter
  • Switch (does not show the current state of your switch. it will only toggle the switch)
  • Number (and Group:Number)

example1.png

Installation

Clone this repository in your modules folder, and install dependencies:

  1. cd ~/MagicMirror/modules # adapt directory if you are using a different one
  2. git clone https://github.com/hggh/MMM-OpenHAB-Items.git
  3. cd MMM-OpenHAB-Items
  4. npm install # this can take a while

Configuration

Add the module to your modules array in your config.js.

example configuration:

  1. {
  2. module: 'MMM-OpenHAB-Items',
  3. position: "top_right",
  4. header: "OpenHAB", // optional
  5. config: {
  6. url: "https://username:password@openhab.example/rest/items/",
  7. items: [
  8. {
  9. item_name: "TableLight",
  10. icon: "light",
  11. },
  12. {
  13. item_name: "Rolladen_Balkon",
  14. }
  15. ],
  16. }
  17. }