From 24ecbf4f79f630cc40439125bceaa058f7e18181 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Tue, 9 Jun 2020 14:59:11 +0200 Subject: [PATCH] int precision is enough for the angle Co-authored-by: Christian Fetzer --- libnymea/interfaces/venetianblind.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libnymea/interfaces/venetianblind.json b/libnymea/interfaces/venetianblind.json index 51a3fa17..2facc9c9 100644 --- a/libnymea/interfaces/venetianblind.json +++ b/libnymea/interfaces/venetianblind.json @@ -1,13 +1,14 @@ { - "description": "Venetian blinds that can be tilted. Venetian blinds must support an angle and specify the minimum and maximum supported angle. For instance, if a venetian blinds supports tilting from horizontal to vertical by 90°, the minValue should be set to 0° and the maxValue to 90°. For venetian blinds that support tilting both direction, that is, a total of 180°, the minValue should be -90° and the maxValue should be 90°. 0° is always the horizontal position.", + "description": "Venetian blinds that can be tilted. Venetian blinds must support an angle and specify the minimum and maximum supported angle. For instance, if a venetian blinds supports tilting from horizontal to vertical by 90°, the minValue should be set to 0° and the maxValue to 90°. For venetian blinds that support tilting both direction, that is, a total of 180°, the minValue should be -90° and the maxValue should be 90°. 0° is always the horizontal position. Note that the \"moving\" state should be true when either the percentage or the angle are moving.", "extends": "extendedblind", "states": [ { "name": "angle", - "type": "double", - "unit": "UnitDegree", + "type": "int", + "unit": "Degree", "minValue": "any", - "maxValue": "any" + "maxValue": "any", + "writable": true } ] }