Hi Sascha,
> On 10.12.2015, at 09:09, Sascha Volkenandt <
sas...@akv-soft.de> wrote:
>
> works :-)
Nice to hear! :-)
> I've just noticed two strange behaviours (although they don't cause errors). Since I'm still having some trouble with my hardware I wasn't able to investigate yet if this is related to the localbutton or if it is a general behaviour:
>
> 1. My device (basic output, one button) shows up in the digitalSTROM web interface as "switchable", but in the device settings dialog I can only choose "active" and "deactivated" by radio-button, none of which is selected. When I select "deactivated", it shows up in the list as "deactivated" (ok), but when I select "active", the corresponding column in the list is empty. The device keeps working though.
Real dS terminal blocks have very specific modes, depending on the type of output. For the virtual devices, this was generalized, and a new pseudo-mode "active in default mode of the device" was added, but only recently. I guess there's a small problem in the configurator to display this new mode correctly. But as you said, the output works fine.
> 2. Even though the output is basic, it can be dimmed by a room switch (meaning the vdc sends values other than 0.0 and 100.0 to the device). Is this expected behaviour?
> If so, how should a non-dimmable device react, i.e. ignore these values or interpret everything other than 0.0 as 100%?
There's defined digitalSTROM behaviour for light outputs, i.e. the output must be on when the output value is higher than the outputSettings.onThreshold property. The idea is that by using different thresholds in a series of lights in a room, the overall room brightness can be "dimmed" even if the individual lights are switched - the more you dim up the more lights go on.
For other outputs, the vdcd implementation considers anything different than 0 as "on", and 0 as "off".
I checked the external devices implementation, and so far, the output mode was not properly applied, that's why you saw gradual values for a switched output.
I cleaned this up a bit. Now, if you init a "light" with "dimmable":false, your external device will see either 0 or 100 only. The same for "basic", but here the default mode is switched. You can set it "dimmable":true or "positional":true to allow it working gradually. Outputs that allow dimming can still be set to switched output in the dS configurator, to get the 0/100 behaviour.
At least, that's how it is meant to work, I haven't tested all details yet, but feel free to pull and try these changes from "luz" on github :-)
Lukas