Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

folgende Role funktioniert:

 

rule "rule_TVlight"
    when   
Item electrode6 changed from CLOSED to OPEN 
    then   
      	sendCommand(CO_TVlight, ON)
    end

 

aber wie bekomme ich echten "Multitouch" hin. Ich dachte so aber das geht nicht:

 

rule "rule_TVlight"
    when   
Item electrode6 changed from CLOSED to OPEN 
    then   
if (electrode4==OPEN) {
 	sendCommand(CO_TVlight, OFF)
	} else {
            	sendCommand(CO_TVlight, ON)
} 
    end

 

Ist das überhaupt vorgesehen? Wenn nicht, brauch ich ein Lösung wie: ein touch = ein und 5x touch in max 2s = off.

 

In C# würd ich das runtertippen, aber bei den Rules fehlt mir noch der Überblick über die Bibliotheken..

 

Danke für die Hilfe.

Geschrieben

Größere Chancen auf Antwort bei allgemeinen Fragen hast du in der openhab community (es gibt auch ein deutsches Forum, das gut besucht ist).

Doku findest du hier: https://github.com/openhab/openhab/wiki/Rules

und Beispiele hier: https://github.com/openhab/openhab/wiki/Samples-Rules

Grundsätzlich hilft es die Regeln mit dem Designer zu erstellen, dort hast etwas Syntax-Support.

 

Wenn dir python mehr liegt kannst du auch die Jsr223 Script Engine verwenden: https://github.com/openhab/openhab/wiki/Jsr223-Script-Engine

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.