Merge PR #301: Add venetianblind interface

This commit is contained in:
Jenkins nymea 2020-06-26 10:23:15 +02:00
commit 09eb0cc8a6
11 changed files with 25 additions and 1 deletions

View File

@ -1,3 +1,4 @@
{
"description": "Simple awnings which can be opened and closed. Note that awnings operate inverted compared to other closables.",
"extends": "closable"
}

View File

@ -1,3 +1,4 @@
{
"description": "Simple blinds which can be opened and closed.",
"extends": "closable"
}

View File

@ -1,4 +1,5 @@
{
"description": "Interface for generic devices that can be opened and closed. The process of opening or closing can be interrupted by the stop action.",
"extends": "simpleclosable",
"actions": [
{

View File

@ -1,3 +1,4 @@
{
"description": "Awnings that support indicating their position and the moving state. Note that awnings operate inverted compared to other closables.",
"extends": ["awning", "extendedclosable"]
}

View File

@ -1,3 +1,4 @@
{
"description": "Blinds that support indicating their position and the moving state.",
"extends": ["blind", "extendedclosable"]
}

View File

@ -1,4 +1,5 @@
{
"description": "A more advanced form of devices that support opening and closing in a more fine grained manner. They can report whether the opening/closing is currently in progress and provide a percentage of the opening/closing position. 0% means fully opened, while 100% indicates the device is fully closed",
"extends": "closable",
"states": [
{

View File

@ -1,3 +1,4 @@
{
"description": "Advanced roller shutters that support indicating their position and the moving state.",
"extends": ["shutter", "extendedclosable"]
}

View File

@ -76,5 +76,6 @@
<file>powerswitch.json</file>
<file>barcodescanner.json</file>
<file>irrigation.json</file>
<file>venetianblind.json</file>
</qresource>
</RCC>

View File

@ -1,3 +1,4 @@
{
"extends": "simpleclosable"
"description": "Simple roller shutters which can be opened and closed.",
"extends": "closable"
}

View File

@ -1,4 +1,5 @@
{
"description": "Interface for very basic devices that support opening and closing.",
"actions": [
{
"name": "open"

View File

@ -0,0 +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. Note that the \"moving\" state should be true when either the percentage or the angle are moving.",
"extends": "extendedblind",
"states": [
{
"name": "angle",
"type": "int",
"unit": "Degree",
"minValue": "any",
"maxValue": "any",
"writable": true
}
]
}