Commit d9fd8332 authored by Peter Müller's avatar Peter Müller

Added Shutter device

parent 8b9a113e
###
# Pimatic PCF8574 Plugin
#
# Copyright (c) 2017 Peter Müller <peter@crycode.de> (https://crycode.de)
#
# Device config schema.
###
module.exports = {
title: "PCF8574 device config schemes"
......@@ -47,7 +55,7 @@ module.exports = {
PCF8574PresenceSensor: {
title: "PCF8574PresenceSensor config options"
type: "object"
extensions: ["xLink", "xClosedLabel", "xOpenedLabel"]
extensions: ["xLink", "xPresentLabel", "xAbsentLabel"]
properties:
PCF8574IC:
description: "The ID of PCF8574IC device to which this device is connected. This device must be created first. If the PCF8574IC device gets deleted, this PCF8574PresenceSensor device will be deleted too."
......@@ -83,4 +91,41 @@ module.exports = {
type: "boolean"
required: false
}
PCF8574Shutter: {
title: "PCF8574Shutter config options"
type: "object"
extensions: ["xConfirm", "xLink"]
properties:
up_PCF8574IC:
description: "The ID of PCF8574IC device to which the up direction of this device is connected. This device must be created first. If the PCF8574IC device gets deleted, this PCF8574Shutter device will be deleted too."
type: "string"
enum: []
up_pinNumber:
description: "The pin number at the PCF8574 IC for the up direction."
type: "integer"
enum: [0,1,2,3,4,5,6,7]
up_inverted:
description: "If the up pin should be handled inverted or not. (inverted means true=low and false=high)"
type: "boolean"
up_autoStopTime:
description: "Time in milliseconds after which moving up should stop automatically (e.g. 20000). Disabled if using default or 0."
type: "integer"
default: 0
down_PCF8574IC:
description: "The ID of PCF8574IC device to which the down direction of this device is connected. This device must be created first. If the PCF8574IC device gets deleted, this PCF8574Shutter device will be deleted too."
type: "string"
enum: []
down_pinNumber:
description: "The pin number at the PCF8574 IC for the down direction."
type: "integer"
enum: [0,1,2,3,4,5,6,7]
down_inverted:
description: "If the down pin should be handled inverted or not. (inverted means true=low and false=high)"
type: "boolean"
down_autoStopTime:
description: "Time in milliseconds after which moving down should stop automatically (e.g. 20000). Disabled if using default or 0."
type: "integer"
default: 0
}
}
###
# Pimatic PCF8574 Plugin
#
# Copyright (c) 2017 Peter Müller <peter@crycode.de> (https://crycode.de)
#
# Plugin config schema.
###
module.exports = {
title: "PCF8574 config options"
type: "object"
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment