@ds82/openhab

0.0.1-beta1 • Public • Published

@ds82/openhab

This is a helper library with the goal to extend and improve the default openhab3 javascript rule syntax.

Install

Switch to the conf/automation/js/ folder of openhab3 and install this library using npm:

npm install @ds82/openhab

Usage

After successful installation you can start writing rules using this library.

const {
  addRule,
  timeTrigger,
  forceOn,
} = require("@ds82/openhab");


addRule(
  "Dim lights at 19.30",
  function () {
    forceOn("Upstairs_Floor_Nightmode");
  },
  [timeTrigger("0 30 19 ? * *")]
);

Documentation

Find the documentation of this library at https://ds82.github.io/openhab/index.html

Readme

Keywords

none

Package Sidebar

Install

npm i @ds82/openhab

Weekly Downloads

0

Version

0.0.1-beta1

License

ISC

Unpacked Size

42.4 kB

Total Files

27

Last publish

Collaborators

  • ds82