mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[somfytahoma] Adding Moving channel to Rollershutter (#12605)
* Adding Moving channel to Rollershutter Signed-off-by: clinique <gael@lhopital.org>
This commit is contained in:
parent
b6fa985fa3
commit
3b77d114fc
@ -73,6 +73,7 @@ Please see the example below.
|
||||
| gate | gate_state | get state of your gate (open, closed, pedestrian) |
|
||||
| gate | gate_position | get position (0-100%) of your gate (where supported) |
|
||||
| roller shutter, shutter, screen, ven. blind, garage door, awning, pergola, curtain | control | device controller which reacts to commands UP/DOWN/ON/OFF/OPEN/CLOSE/MY/STOP + closure 0-100 |
|
||||
| roller shutter | moving | Indicates if the device is currently operating a command |
|
||||
| window | control | device controller which reacts to commands UP/DOWN/ON/OFF/OPEN/CLOSE/STOP + closure 0-100 |
|
||||
| silent roller shutter | silent_control | similar to control channel but in silent mode |
|
||||
| venetian blind, adjustable slats roller shutter, bioclimatic pergola | orientation | percentual orientation of the blind's slats, it can have value 0-100. For IO Homecontrol devices only (non RTS) |
|
||||
|
@ -187,6 +187,7 @@ public class SomfyTahomaBindingConstants {
|
||||
|
||||
// Roller shutter, Shutter, Awning, Screen, Blind, Garage door, Window, Curtain
|
||||
public static final String CONTROL = "control";
|
||||
public static final String MOVING = "moving";
|
||||
|
||||
// Adjustable slats roller shutter
|
||||
public static final String ROCKER = "rocker";
|
||||
@ -511,7 +512,9 @@ public class SomfyTahomaBindingConstants {
|
||||
THING_TYPE_HITACHI_DHW, THING_TYPE_HITACHI_ATWMC, THING_TYPE_RAINSENSOR, THING_TYPE_SHUTTER));
|
||||
|
||||
// somfy gateways
|
||||
public static Map<Integer, String> gatewayTypes = new HashMap<Integer, String>() {
|
||||
public static Map<Integer, String> gatewayTypes = new HashMap<>() {
|
||||
private static final long serialVersionUID = 7473481667820682573L;
|
||||
|
||||
{
|
||||
put(0, "VIRTUAL_KIZBOX");
|
||||
put(2, "KIZBOX_V1");
|
||||
|
@ -33,6 +33,7 @@ public class SomfyTahomaRollerShutterHandler extends SomfyTahomaBaseThingHandler
|
||||
public SomfyTahomaRollerShutterHandler(Thing thing) {
|
||||
super(thing);
|
||||
stateNames.put(CONTROL, "core:ClosureState");
|
||||
stateNames.put(MOVING, "core:MovingState");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -151,6 +151,8 @@ channel-type.somfytahoma.contact.label = Contact
|
||||
channel-type.somfytahoma.contact.description = A contact having OPEN/CLOSE state
|
||||
channel-type.somfytahoma.control.label = Control
|
||||
channel-type.somfytahoma.control.description = Device control (UP, DOWN, MY/STOP, closure 0-100%)
|
||||
channel-type.somfytahoma.moving.label = Moving
|
||||
channel-type.somfytahoma.moving.description = Indicates if the device is currently operating a command
|
||||
channel-type.somfytahoma.control_silent.label = Control (silent)
|
||||
channel-type.somfytahoma.control_silent.description = Device control (UP, DOWN, MY/STOP, closure 0-100%) (only for IO devices)
|
||||
channel-type.somfytahoma.current_heating_mode.label = Current Heating Mode
|
||||
|
@ -30,6 +30,13 @@
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="moving">
|
||||
<item-type>Switch</item-type>
|
||||
<label>Moving</label>
|
||||
<description>Indicates if the device is currently operating a command.</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="luminance">
|
||||
<item-type>Number:Illuminance</item-type>
|
||||
<label>Luminance</label>
|
||||
|
@ -11,6 +11,7 @@
|
||||
<label>Somfy Roller Shutter</label>
|
||||
<channels>
|
||||
<channel id="control" typeId="control"></channel>
|
||||
<channel id="moving" typeId="moving"></channel>
|
||||
</channels>
|
||||
<representation-property>url</representation-property>
|
||||
<config-description-ref uri="thing-type:somfytahoma:device"/>
|
||||
|
Loading…
Reference in New Issue
Block a user