Add alarm and fire seonsor interfaces
This commit is contained in:
parent
45081ad64e
commit
6da1c70e5b
9
libnymea/interfaces/alarm.json
Normal file
9
libnymea/interfaces/alarm.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"description": "An interface for alarms, such as fire or intruder alarms.",
|
||||
"actions": [
|
||||
{
|
||||
"name": "alarm",
|
||||
"logged": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Used for things that have some sort of alert. For instance, light bulbs may be able to blink on alert actions, or speaker might be able to play an alert sound. Zigbee devices for example often provide alert actions to identify themselves.",
|
||||
"description": "Used for things that have some sort of alert. For instance, light bulbs may be able to blink on alert actions, or speaker might be able to play an alert sound.",
|
||||
"actions": [
|
||||
{
|
||||
"name": "alert"
|
||||
|
||||
11
libnymea/interfaces/firesensor.json
Normal file
11
libnymea/interfaces/firesensor.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"description": "An interface for fire/smoke sensors.",
|
||||
"extends": "sensor",
|
||||
"states": [
|
||||
{
|
||||
"name": "fireDetected",
|
||||
"type": "bool",
|
||||
"logged": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -93,5 +93,7 @@
|
||||
<file>heatpump.json</file>
|
||||
<file>smartgridheatpump.json</file>
|
||||
<file>simpleheatpump.json</file>
|
||||
<file>alarm.json</file>
|
||||
<file>firesensor.json</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
Reference in New Issue
Block a user