Add alarm and fire seonsor interfaces

This commit is contained in:
Michael Zanetti 2022-05-31 17:16:42 +02:00
parent 45081ad64e
commit 6da1c70e5b
4 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,9 @@
{
"description": "An interface for alarms, such as fire or intruder alarms.",
"actions": [
{
"name": "alarm",
"logged": true
}
]
}

View File

@ -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"

View File

@ -0,0 +1,11 @@
{
"description": "An interface for fire/smoke sensors.",
"extends": "sensor",
"states": [
{
"name": "fireDetected",
"type": "bool",
"logged": true
}
]
}

View File

@ -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>