Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
code refactor and added #30 support for hap
Browse files Browse the repository at this point in the history
  • Loading branch information
treban committed Jul 8, 2019
1 parent 1af1f3c commit a6e5456
Show file tree
Hide file tree
Showing 2 changed files with 421 additions and 564 deletions.
116 changes: 95 additions & 21 deletions device-config-schema.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ module.exports = {
type: "integer"
default: 60
required: false
backupfolder:
description: "backupfolder"
type: "string"
default: null
required: false
},
RaspBeeMotionSensor: {
title: "RaspBee MotionSensor"
type: "object"
extensions: ["xAttributeOptions"]
properties:
deviceID:
description: "Raspbee device id"
type: "integer"
required: true
resetTime:
description: "Reset time in seconds"
type: "integer"
Expand All @@ -35,53 +36,109 @@ module.exports = {
default: []
items:
type: "integer"
supportsBattery:
description: "does this sensor have a battery?"
type: "boolean"
default: false
supports:
description: "Feature List"
type: "array"
default: []
items:
type: "string"
},
RaspBeeContactSensor: {
title: "RaspBee ContactSensor"
type: "object"
extensions: ["xConfirm", "xLink", "xClosedLabel", "xOpenedLabel", "xAttributeOptions"]
properties:
deviceID:
description: "Raspbee device id"
type: "integer"
required: true
resetTime:
description: "Optional auto reset time in milli seconds"
type: "integer"
default: 0
inverted:
description: "Invert open/close state of contact device."
sensorIDs:
description: "All the ids of the sensors"
type: "array"
default: []
items:
type: "integer"
supportsBattery:
description: "does this sensor have a battery?"
type: "boolean"
default: false
supports:
description: "Feature List"
type: "array"
default: []
items:
type: "string"
},
RaspBeeLightSensor: {
title: "RaspBee LightSensor"
type: "object"
properties:
deviceID:
description: "Raspbee device id"
type: "integer"
required: true
sensorIDs:
description: "All the ids of the sensors"
type: "array"
default: []
items:
type: "integer"
supportsBattery:
description: "does this sensor have a battery?"
type: "boolean"
default: false
supports:
description: "Feature List"
type: "array"
default: []
items:
type: "string"
},
RaspBeeSwitchSensor: {
title: "RaspBee SwitchSensor"
type: "object"
properties:
deviceID:
description: "Raspbee device id"
type: "integer"
resetTime:
description: "Auto reset time in milliseconds"
type: "integer"
default: 100
default: false
sensorIDs:
description: "All the ids of the sensors"
type: "array"
default: []
items:
type: "integer"
supportsBattery:
description: "does this sensor have a battery?"
type: "boolean"
default: false
supports:
description: "Feature List"
type: "array"
default: []
items:
type: "string"
},
RaspBeeWaterSensor: {
title: "RaspBee WaterSensor"
type: "object"
properties:
deviceID:
description: "Raspbee device id"
type: "integer"
sensorIDs:
description: "All the ids of the sensors"
type: "array"
default: []
items:
type: "integer"
supportsBattery:
description: "does this sensor have a battery?"
type: "boolean"
default: false
supports:
description: "Feature List"
type: "array"
default: []
items:
type: "string"
},
RaspBeeRemoteControlNavigator: {
title: "RaspBee MotionSensor"
Expand Down Expand Up @@ -192,6 +249,7 @@ module.exports = {
sensorIDs:
description: "All the ids of the sensors"
type: "array"
default: []
items:
type: "integer"
supportsBattery:
Expand Down Expand Up @@ -229,6 +287,22 @@ module.exports = {
description: "pressure acronym"
type: "string"
default: "P"
powerAcronym:
description: "power acronym"
type: "string"
default: "P"
currentAcronym:
description: "power acronym"
type: "string"
default: "I"
voltageAcronym:
description: "voltage acronym"
type: "string"
default: "U"
consumtionAcronym:
description: "consumtion acronym"
type: "string"
default: "W"
resetTime:
description: "Auto reset time in milliseconds"
type: "integer"
Expand Down
Loading

0 comments on commit a6e5456

Please sign in to comment.