Add a powerswitch interface

pull/185/head
Michael Zanetti 2019-07-04 21:03:32 +02:00
parent 7b4f317567
commit dd0f4c474c
2 changed files with 11 additions and 0 deletions

View File

@ -68,6 +68,7 @@
<file>navigationpad.json</file>
<file>extendednavigationpad.json</file>
<file>closablesensor.json</file>
<file>powerswitch.json</file>
</qresource>
<qresource prefix="/"/>
</RCC>

View File

@ -0,0 +1,10 @@
{
"extends": "button",
"description": "The powerswitch interface is used for smart power switches and just extends the simple button interface. Use this for switches that can be on or off.",
"states": [
{
"name": "power",
"type": "bool"
}
]
}