Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

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.

Installation


User Interfaces


Community

(link to openHAB forum)

Development



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.

Use case examples

Collections of Rules on a single page

Single Rules

Scripts


Release Notes

Clone this wiki locally