[somfytahoma] Adding Moving channel to Rollershutter (#12605)

* Adding Moving channel to Rollershutter

Signed-off-by: clinique <gael@lhopital.org>
This commit is contained in:
Gaël L'hopital 2022-04-19 19:17:14 +02:00 committed by GitHub
parent b6fa985fa3
commit 3b77d114fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 16 additions and 1 deletions

View File

@ -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) |

View File

@ -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");

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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"/>