[velux] tweak read me (#14196)
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
This commit is contained in:
committed by
GitHub
parent
0304d74f87
commit
72786df044
@@ -1,37 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* Copyright (c) 2010-2023 Contributors to the openHAB project
|
||||
*
|
||||
* See the NOTICE file(s) distributed with this work for additional
|
||||
* information.
|
||||
*
|
||||
* This program and the accompanying materials are made available under the
|
||||
* terms of the Eclipse Public License 2.0 which is available at
|
||||
* http://www.eclipse.org/legal/epl-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* OpenHAB rules for velux binding:
|
||||
* This rule simulates the push button behaviour.
|
||||
*
|
||||
* @author Guenther Schreiner - Initial contribution
|
||||
*/
|
||||
|
||||
rule "PushButton of group gV"
|
||||
when
|
||||
Item gV changed
|
||||
then
|
||||
// waiting a second.
|
||||
Thread::sleep(1000)
|
||||
// Foreach-Switch-is-ON
|
||||
gV.allMembers.filter( s | s.state == ON).forEach[i|
|
||||
// switching OFF
|
||||
i.sendCommand(OFF)
|
||||
]
|
||||
end
|
||||
|
||||
//
|
||||
// vim: syntax=Xtend vim: noai:ts=4:sw=4
|
||||
//
|
||||
// end-of-rules/velux.rules
|
||||
//
|
||||
@@ -1,62 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* Copyright (c) 2010-2023 Contributors to the openHAB project
|
||||
*
|
||||
* See the NOTICE file(s) distributed with this work for additional
|
||||
* information.
|
||||
*
|
||||
* This program and the accompanying materials are made available under the
|
||||
* terms of the Eclipse Public License 2.0 which is available at
|
||||
* http://www.eclipse.org/legal/epl-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* OpenHAB thing definition for velux binding:
|
||||
* define basic Velux bridge parameters
|
||||
*
|
||||
* This is a definition which corresponds to the output of th Bridge
|
||||
* during startup, i.e.
|
||||
*
|
||||
* [INFO ] [x.internal.handler.VeluxBridgeHandler] - Found velux actuators:
|
||||
* Product "#0" / SLIDER_SHUTTER (bridgeIndex=0,serial=56:32:14:5A:12:1C:05:5F,position=0000)
|
||||
* Product "#1" / SLIDER_SHUTTER (bridgeIndex=1,serial=53:09:40:5A:0C:23:0A:6E,position=0000)
|
||||
* Product "DG-M-Window" / SLIDER_WINDOW (bridgeIndex=3,serial=56:23:3E:26:0C:1B:00:10,position=C800)
|
||||
* Product "#2" / SLIDER_SHUTTER (bridgeIndex=2,serial=53:09:40:5A:0C:2A:05:64,position=0000)
|
||||
* Product "#4" / SWITCH (bridgeIndex=4,serial=Somfy-Switch,position=C800)
|
||||
* Product "#5" / SWITCH (bridgeIndex=5,serial=Somfy-Switch,position=C800)
|
||||
*
|
||||
* @author Guenther Schreiner - Initial contribution
|
||||
*/
|
||||
|
||||
//
|
||||
// Definition of Velux bridge velux:klf200:home
|
||||
//
|
||||
|
||||
Bridge velux:klf200:home [ ipAddress="192.168.45.9", tcpPort=51200, password="verySecret" ] {
|
||||
|
||||
// Velux scenes
|
||||
|
||||
Thing scene windowClosed [ sceneName="V_DG_Window_Mitte_000" ]
|
||||
Thing scene windowUnlocked [ sceneName="V_DG_Window_Mitte_005" ]
|
||||
Thing scene windowOpened [ sceneName="V_DG_Window_Mitte_100" ]
|
||||
Thing scene unknownScene [ sceneName="ThisIsADummySceneName" ]
|
||||
|
||||
// Velux IO-homecontrol devices
|
||||
|
||||
Thing window V_DG_M_W [ serial="56:23:3E:26:0C:1B:00:10" ]
|
||||
Thing rollershutter V_DG_M_S [ serial="56:23:3E:26:0C:1B:00:10" ]
|
||||
Thing rollershutter V_DG_W_S [ serial="53:09:40:5A:0C:2A:05:64" ]
|
||||
Thing rollershuffer V_DG_O_S [ serial="53:09:40:5A:0C:23:0A:6E" ]
|
||||
Thing actuator V_SWITCH1 [ name="#4" ]
|
||||
Thing actuator V_SWITCH2 [ name="#5" ]
|
||||
|
||||
// Virtual rollershutter
|
||||
|
||||
Thing vshutter V_WINDOW [ sceneLevels="0,V_DG_Window_Mitte_000#5,V_DG_Window_Mitte_005#100,V_DG_Window_Mitte_100" ]
|
||||
}
|
||||
|
||||
//
|
||||
// vim: syntax=Xtend vim: noai:ts=4:sw=4
|
||||
//
|
||||
// end-of-things/velux.things
|
||||
//
|
||||
@@ -1,22 +1,4 @@
|
||||
/**
|
||||
*
|
||||
* Copyright (c) 2010-2023 Contributors to the openHAB project
|
||||
*
|
||||
* See the NOTICE file(s) distributed with this work for additional
|
||||
* information.
|
||||
*
|
||||
* This program and the accompanying materials are made available under the
|
||||
* terms of the Eclipse Public License 2.0 which is available at
|
||||
* http://www.eclipse.org/legal/epl-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* OpenHAB item defintion for velux binding:
|
||||
* Velux Bridge and Devices
|
||||
*
|
||||
* @author Guenther Schreiner - Initial contribution
|
||||
*/
|
||||
|
||||
```java
|
||||
// Group for simulating push buttons
|
||||
|
||||
Group:Switch:OR(ON, OFF) gV "PushButton"
|
||||
@@ -58,9 +40,4 @@ Rollershutter V_DG_M_W2 "DG Fenster Bad [%d]" { channel="velux:klf200:home:V_DG
|
||||
Rollershutter V_DG_M_S "DG Bad [%d]" { channel="velux:klf200:home:V_DG_M_S" }
|
||||
Rollershutter V_DG_W_S "DG West [%d]" { channel="velux:klf200:home:V_DG_W_S" }
|
||||
Rollershutter V_DG_O_S "DG Ost [%d]" { channel="velux:klf200:home:V_DG_O_S" }
|
||||
|
||||
//
|
||||
// vim: syntax=Xtend vim: noai:ts=4:sw=4
|
||||
//
|
||||
// end-of-items/velux.items
|
||||
//
|
||||
```
|
||||
15
bundles/org.openhab.binding.velux/doc/rules.md
Normal file
15
bundles/org.openhab.binding.velux/doc/rules.md
Normal file
@@ -0,0 +1,15 @@
|
||||
```java
|
||||
// This rule simulates a push button behaviour.
|
||||
rule "PushButton of group gV"
|
||||
when
|
||||
Item gV changed
|
||||
then
|
||||
// waiting a second.
|
||||
Thread::sleep(1000)
|
||||
// Foreach-Switch-is-ON
|
||||
gV.allMembers.filter( s | s.state == ON).forEach[i|
|
||||
// switching OFF
|
||||
i.sendCommand(OFF)
|
||||
]
|
||||
end
|
||||
```
|
||||
@@ -1,22 +1,5 @@
|
||||
/**
|
||||
*
|
||||
* Copyright (c) 2010-2023 Contributors to the openHAB project
|
||||
*
|
||||
* See the NOTICE file(s) distributed with this work for additional
|
||||
* information.
|
||||
*
|
||||
* This program and the accompanying materials are made available under the
|
||||
* terms of the Eclipse Public License 2.0 which is available at
|
||||
* http://www.eclipse.org/legal/epl-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* OpenHAB sitemap definition for velux binding:
|
||||
* displays most of the Velux items
|
||||
*
|
||||
* @author Guenther Schreiner - Initial contribution
|
||||
*/
|
||||
|
||||
```perl
|
||||
sitemap velux label="Velux Environment"
|
||||
{
|
||||
Frame label="Velux Shutter and Window" {
|
||||
@@ -51,9 +34,4 @@ sitemap velux label="Velux Environment"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
// vim: syntax=Xtend vim: noai:ts=4:sw=4
|
||||
//
|
||||
// end-of-sitemap/velux.sitemap
|
||||
//
|
||||
```
|
||||
28
bundles/org.openhab.binding.velux/doc/things.md
Normal file
28
bundles/org.openhab.binding.velux/doc/things.md
Normal file
@@ -0,0 +1,28 @@
|
||||
```java
|
||||
//
|
||||
// Definition of Velux bridge velux:klf200:home
|
||||
//
|
||||
|
||||
Bridge velux:klf200:home [ ipAddress="192.168.45.9", tcpPort=51200, password="verySecret" ] {
|
||||
|
||||
// Velux scenes
|
||||
|
||||
Thing scene windowClosed [ sceneName="V_DG_Window_Mitte_000" ]
|
||||
Thing scene windowUnlocked [ sceneName="V_DG_Window_Mitte_005" ]
|
||||
Thing scene windowOpened [ sceneName="V_DG_Window_Mitte_100" ]
|
||||
Thing scene unknownScene [ sceneName="ThisIsADummySceneName" ]
|
||||
|
||||
// Velux IO-homecontrol devices
|
||||
|
||||
Thing window V_DG_M_W [ serial="56:23:3E:26:0C:1B:00:10" ]
|
||||
Thing rollershutter V_DG_M_S [ serial="56:23:3E:26:0C:1B:00:10" ]
|
||||
Thing rollershutter V_DG_W_S [ serial="53:09:40:5A:0C:2A:05:64" ]
|
||||
Thing rollershuffer V_DG_O_S [ serial="53:09:40:5A:0C:23:0A:6E" ]
|
||||
Thing actuator V_SWITCH1 [ name="#4" ]
|
||||
Thing actuator V_SWITCH2 [ name="#5" ]
|
||||
|
||||
// Virtual rollershutter
|
||||
|
||||
Thing vshutter V_WINDOW [ sceneLevels="0,V_DG_Window_Mitte_000#5,V_DG_Window_Mitte_005#100,V_DG_Window_Mitte_100" ]
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user