Skip to content

Samples Scripts

dakalff edited this page Nov 26, 2013 · 6 revisions

Some useful Scripts for openHAB

Simple WakeUpLight

With this script you can simulate a simple WakeUP light. Just call it via a rule at a specified time

var Number wakeUpDimmer
    
    wakeUpDimmer=0
    while(wakeUpDimmer<100){
    	wakeUpDimmer=wakeUpDimmer+5
    	sendCommand(TestDimmer1,wakeUpDimmer)
    	Thread::sleep(20000)
    }

Just replace the item TestDimmer1 with your dimmer item. This script will increase the brightness by 5% every 20 seconds.

feature overview

Installation

Setup intro

Linux and OS X

Windows

FreeBSD


Configuration

Automation*

User Interfaces

Persistence


Community

(link to openHAB forum)

Development


Bindings


Application Integration

Misc


Samples

A good source of inspiration and tips from users gathered over the years. Be aware that things may have changed since they were written and some examples might not work correctly.

Please update the wiki if you do come across any out of date information.

Binding configurations

Use case examples

Item definition examples

Sitemap definition examples

Collections of Rules on a single page

Single Rules

Scripts

Syntax highlighting for external editors


Release Notes

Clone this wiki locally
You can’t perform that action at this time.