Add a powerswitch interface
This commit is contained in:
parent
7b4f317567
commit
dd0f4c474c
@ -68,6 +68,7 @@
|
||||
<file>navigationpad.json</file>
|
||||
<file>extendednavigationpad.json</file>
|
||||
<file>closablesensor.json</file>
|
||||
<file>powerswitch.json</file>
|
||||
</qresource>
|
||||
<qresource prefix="/"/>
|
||||
</RCC>
|
||||
|
||||
10
libnymea/interfaces/powerswitch.json
Normal file
10
libnymea/interfaces/powerswitch.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user