[dss-developer] REST-API - Get/Set Value for blinds (KL220)

Troß, Michael michael.tross at digitalstrom.com
Mon Nov 19 09:35:59 CET 2018


Hi Christian,


as already mentioned, setting the values directly shall not be used for normal operations. Please use get/set output value commands only for a configuration process and store the final settings as scene, see "saveScene" command.


The GR-KL220 and GR-HKL230 supports the following Offset Values in getOutputValue:


Offset
        Size    Value

0       8 Bit   Current Position
2       16 Bit  Target Vertical Position
4       8 Bit   Target Lamella Angle


The setOutputValue command does not support current position (offset "0"), only the target positions.


Michael



http://developer.digitalstrom.org/Architecture/dss-json.pdf, p.69:

[cid:84f57078-96d2-40c8-85f7-c9a17b1d63bf]







________________________________
Von: dss-developer-bounces at forum.digitalstrom.org <dss-developer-bounces at forum.digitalstrom.org> im Auftrag von Christian Stüllein | SSE <christian.stuellein at sse-engineering.de>
Gesendet: Mittwoch, 14. November 2018 14:57
An: dss-developer at forum.digitalstrom.org
Betreff: [dss-developer] REST-API - Get/Set Value for blinds (KL220)

Hi,

I wonder what's the correct way to explicitly get/set the current device
values (position and angle) for blinds (like the KL220). I am able to
use scenes for that (call a scene, get the scene values for both
position and angle). I know, that scenes are the prefered way working
with the system, but some of our customers want to have the possibility
to set a value ecplicitly. This works fine for other devices (like
dimming lights), but not for the KL220. I have 2 problems here:

1) If I request the current value with the getOutputValue() command with
offset 0 - the position value is returned. But this value is scaled to
0..255 instead of the value given in the getSceneValue() command
(0..65538). But it seems that I also can get the same value with the
16-bit scaling when i use the offset 2 - is this correct?

2) Which offset I have to use in the getOutputValue() command to get the
angle? Or is there an other way requesting this? (Same question for
setOutputValue)


Thank you in advance


--


Mit freundlichen Grüßen
______________________________________________________________
Christian Stüllein

SSE - Stüllein Software Engineering
Friedrich-Hartung-Str. 16
64560 Riedstadt

Mobil: +49 (0)170 / 294 61 67
Tel:   +49 (0)6158 / 828 7707
Fax:   +49 (0)6158 / 828 7708

E-Mail: christian.stuellein at sse-engineering.de
Web: www.sse-engineering.de<http://www.sse-engineering.de>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum.digitalstrom.org/pipermail/dss-developer/attachments/20181119/8e4c9cc0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 11969 bytes
Desc: pastedImage.png
URL: <http://forum.digitalstrom.org/pipermail/dss-developer/attachments/20181119/8e4c9cc0/attachment-0001.png>


More information about the dss-developer mailing list