Updated external content (Jenkins build 1038)

pull/1969/head
openHAB Build Server 2022-07-11 03:33:33 +00:00
parent c6c7d3863d
commit cf343ec1c4
5 changed files with 486 additions and 26 deletions

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@ id: lcn
label: LCN
title: LCN - Bindings
type: binding
description: "[Local Control Network (LCN)](https://www.lcn.eu) is a building automation system for small and very large installations."
description: "[Local Control Network (LCN)](https://www.lcn.eu) is a building automation system."
since: 3x
logo: images/addons/lcn.png
install: auto
@ -15,20 +15,22 @@ install: auto
# LCN Binding
[Local Control Network (LCN)](https://www.lcn.eu) is a building automation system for small and very large installations.
[Local Control Network (LCN)](https://www.lcn.eu) is a building automation system.
It is capable of controlling lights, shutters, access control etc. and can process data from several sensor types.
It has been introduced in 1992.
It was introduced in 1992.
A broad range of glass key panels, displays, remote controls, sensors and in- and outputs exist.
The system can handle up to 30,000 bus members, called modules.
LCN modules are available for DIN rail and in-wall mounting and feature versatile interfaces. The bus modules and most of the accessories are developed, manufactured and assembled in Germany.
LCN modules are available for DIN rail and in-wall mounting and feature versatile interfaces.
The bus modules and most of the accessories are developed, manufactured and assembled in Germany.
Bus members are inter-connected via a free wire in the standard NYM cable. Wireless components are available, though.
Bus members are inter-connected via a free wire in the standard NYM cable.
Wireless components are available, though.
![Illustration of the LCN product family](doc/overview.jpg)
This binding uses TCP/IP to access the LCN bus via the software LCN-PCHK (Windows/Linux) or the DIN rail device LCN-PKE.
**This means 1 unused LCN-PCHK license or a LCN-PKE is required**
This binding uses TCP/IP to access the LCN bus via the software LCN-PCHK (Windows/Linux) or the DIN rail device LCN-VISU.
**This means 1 unused LCN-PCHK license or a LCN-VISU is required**
## Supported Things
@ -36,8 +38,7 @@ This binding uses TCP/IP to access the LCN bus via the software LCN-PCHK (Window
Any LCN module that should be controlled or visualized, need to be added to openHAB as a *Thing*.
LCN modules with firmware versions 120612 (2008) and 170602 (2013) were tested with this binding.
No known features/changes that need special handling were added until now (2020).
LCN modules with firmware versions 120612 (2008), 170602 (2013) and 1F080A (2021) were tested with this binding.
Modules with older and newer firmware should work, too.
The module hardware types (e.g. LCN-SH, LCN-HU, LCN-UPP, ...) are compatible to each other and can therefore be handled all in the same way.
@ -54,13 +55,13 @@ See [Discover LCN Modules](#discover-lcn-modules).
### Bridge: LCN PCK Gateway
PCK is the protocol spoken over TCP/IP with a PCK gateway to communicate with the LCN bus.
Examples for PCK gateways are the *LCN-PCHK* software running on Windows or Linux and the DIN rail mounting device *LCN-PKE*.
Examples for PCK gateways are the *LCN-PCHK* software running on Windows or Linux and the DIN rail mounting device *LCN-VISU*.
For each LCN bus, interfaced to openHAB, a PCK gateway needs to be added to openHAB as a *Thing*.
Several PCK gateways can be added to openHAB to control multiple LCN busses in distinct locations.
The minimum recommended version is LCN-PCHK 2.8 (older versions will also work, but lack some functionality).
The minimum recommended version is LCN-PCHK 3.3 (older versions will also work, but lack some functionality).
Visit [https://www.lcn.eu](https://www.lcn.eu) for updates.
Thing Type ID: `pckGateway`
@ -145,14 +146,18 @@ If a special command is needed, the [Hit Key](#hit-key) action (German: "Sende T
| LCN Feature (English) | LCN Feature (German) | Channel | IDs | Type | Description |
|---------------------------------|----------------------------------|------------------------|------|--------------------------------|-------------------------------------------------------------------------------------------------------------------------------|
| Dimmer Output Control Single | Ausgang | output | 1-4 | Dimmer, Switch | Sets the dimming value of an output with a given ramp. |
| Dimmer Output Control Color | Ausgang Farbe | output | color | Color, Switch | Sets the outputs 1-4 to control an RGBW lamp. |
| Tunable White Mode | Tunable White Modus | output | tunablewhite | String | Sets the module's tunable white mode: `DISABLE`: Tunable white disabled. `OUTPUT1`: Output 1 is used for controlling. Output 2 is adjusted automatically. `BOTH`: Output 1 is used to control the brightness. Output 2 controls the temperature. |
| Relay | Relais | relay | 1-8 | Switch | Controls a relay and visualizes its state. |
| Visualize Binary Sensor | Binärsensor anzeigen | binarysensor | 1-8 | Contact | Visualizes the state of a binary sensor (special channel mapping for some devices). |
| LED Control | LED-Steuerung | led | 1-12 | Text (ON, OFF, BLINK, FLICKER) | Controls an LED and visualizes its current state. |
| Visualize Logic Operations | Logik Funktion anzeigen | logic | 1-4 | Text (NOT, OR, AND) | Visualizes the result of the logic operation. |
| Visualize Binary Sensor | Binärsensor anzeigen | binarysensor | 1-8 | Contact | Visualizes the state of a binary sensor (special channel mapping for some devices). |
| LED Control | LED-Steuerung | led | 1-12 | String | Controls an LED and visualizes its current state: `ON`, `OFF`, `BLINK`, `FLICKER` |
| Visualize Logic Operations | Logik Funktion anzeigen | logic | 1-4 | String | Visualizes the result of the logic operation: `NOT`, `OR`, `AND` |
| Motor/Shutter on Dimmer Outputs | Motor/Rollladen an Ausgängen | rollershutteroutput | 1-4 | Rollershutter | Control roller shutters on dimmer outputs |
| Motor/Shutter on Relays | Motor/Rollladen an Relais | rollershutterrelay | 1-4 | Rollershutter | Control roller shutters on relays |
| Motor/Shutter on Relays | Motor/Rollladen an Relais | rollershutterrelay | 1-4 | Rollershutter, Dimmer | Control position of roller shutters on relays (Supports UpDown, StopMove, Percent) |
| Shutter Slat Angle on Relays | Rollladenlamellen an Relais | rollershutterrelayslat | 1-4 | Rollershutter, Dimmer | Control slat angle of roller shutters on relays (Supports UpDown, StopMove, Percent) |
| Variables | Variable anzeigen | variable | 1-12 | Number | Sets and visualizes the value of a variable. |
| Regulator Set Setpoint | Regler Sollwert ändern | rvarsetpoint | 1-2 | Number | Sets and visualizes the setpoint of a regulator. |
| Regulator Set Mode | Reglerverhalten ändern | rvarmode | 1-2 | String | Sets the mode of the regulator: `HEATING` or `COOLING` |
| Regulator Lock | Regler sperren | rvarlock | 1-2 | Switch | Locks a regulator and visualizes its locking state. |
| Set Thresholds in Register 1 | Schwellwert in Register 1 ändern | thresholdregister1 | 1-4 | Number | Sets and visualizes a threshold in the given threshold register. |
| Set Thresholds in Register 2 | Schwellwert in Register 2 ändern | thresholdregister2 | 1-4 | Number | Sets and visualizes a threshold in the given threshold register. |
@ -173,8 +178,12 @@ If a special command is needed, the [Hit Key](#hit-key) action (German: "Sende T
| Access Control | Zutrittskontrolle | code#remotecontrolcode | | Trigger | Receive serial numbers from remote control |
| Remote Control Battery Low | Fernbedienung Batterie schwach | code#remotecontrolbatterylow | | Trigger | Triggered when the sending remote control has a low battery |
| Host Command (Send Keys) | Kommando an Host (Sende Tasten) | hostcommand#sendKeys | - | Trigger | Receive *send keys* command from LCN module |
| Operating Hours Counter Outputs | Betriebsstundenzähler Ausgänge | operatinghourscounter | output[1-4] | Number:Time | Visualize Operating Hours Counter for outputs |
| Operating Hours Counter Outputs (rel. Work) | Betriebsstundenzähler Ausgänge (rel. Arbeit) | operatinghourscounter | outputrelativework[1-4] | Number:Time | Visualize Operating Hours Counter for outputs (relative work) |
| Operating Hours Counter Relays | Betriebsstundenzähler Relais | operatinghourscounter | relay[1-8] | Number:Time | Visualize Operating Hours Counter for relays |
| Operating Hours Counter Binary Sensor | Betriebsstundenzähler Binärsensoren | operatinghourscounter | binarysensor[1-8] | Number:Time | Visualize Operating Hours Counter for binary sensors |
| Status Message | Statusmeldungen | - | - | - | Automatically done by openHAB Binding |
| Audio Beep | Audio Piepen | - | - | - | Not implemented |
| Audio Beep | Audio Piepen | N/A | N/A | N/A | Action: "beep" (see below) |
| Audio LCN-MRS | Audio LCN-MRS | - | - | - | Not implemented |
| Count/Compute | Zählen/Rechnen | - | - | - | Not implemented |
| DALI | DALI | - | - | - | Not implemented |
@ -195,7 +204,7 @@ If a special command is needed, the [Hit Key](#hit-key) action (German: "Sende T
| Lock Relays | Sperre Relais | - | - | - | Not implemented |
| Lock Thresholds | Sperre Schwellwerte | - | - | - | Not implemented |
| Motor Position | Motor Position | - | - | - | Not implemented |
| Relay Timer | Relais-Timer | N/A | N/A | N/A | Action: "startRelayTimer": Starts a relay timer for the given relay number with the given duration in milliseconds. |
| Relay Timer | Relais-Timer | N/A | N/A | N/A | Action: "startRelayTimer" (see below) |
| Send Keys Delayed | Sende Tasten verzögert | - | - | - | Not implemented |
| Set S0 Counters | S0-Zähler setzen | - | - | - | Not implemented |
| Status Command | Statuskommandos | - | - | - | Not implemented |
@ -430,10 +439,43 @@ when
then
val actions = getActions("lcn","lcn:module:b827ebfea4bb:17B4196847")
// relayNumber=3, duration=90
actions.startRelayTimer(3,90)
actions.startRelayTimer(3, 90)
end
```
### Beep
This *Action* realizes the LCN commmand "audio" (German: "Piepen").
It lets the beeper connected to the LCN module beep.
When programming an "audio" *Action*, the following parameters can be set:
*volume* - Sound volume in percent (if null, the previous volume will be used)<br />
*tonality* - The tonality as a String. You need to use quotes. See below.<br />
*count* - Number of beeps (max. 50)
Tonalities:
- "N"=push button hit (normal)
- "S"=special
- "1"=push button make
- "2"=push button break
- "3"=standard
- "4"=special
- "5"=special short
- "6"=error
- "7"=long
```
rule "Beep when dummy switch changed"
when
Item Dummy_Switch changed
then
val actions = getActions("lcn","lcn:module:b827ebfea4bb:b0b029b920")
// volume=100, tonality="6", count=2
actions.beep(100, "6", 2)
end
```
## Caveat and Limitations
@ -484,6 +526,7 @@ Switch M10_Relay1 {channel="lcn:module:b827ebfea4bb:S000M010:relay#1"}
// Roller Shutter on Relays 1+2
Rollershutter M10_RollershutterRelay1 {channel="lcn:module:b827ebfea4bb:S000M010:rollershutterrelay#1"}
Dimmer M10_RollershutterRelay1Slats {channel="lcn:module:68b8462b:S000M012:rollershutterrelayslat#1"}
// LEDs
String M10_LED1 {channel="lcn:module:b827ebfea4bb:S000M010:led#1"}
@ -560,6 +603,8 @@ sitemap lcn label="My home automation" {
// Roller Shutter on Relays
Default item=M10_RollershutterRelay1 label="Roller Shutter on Relay 1-2"
Dimmer item=M10_RollershutterRelay1 label="Roller Shutter Position on Relay 1-2"
Default item=M10_RollershutterRelay1Slats label="Roller Shutter Slat Angle on Relay 1-2"
// LEDs
Switch item=M10_LED1 label="LED 1" mappings=[ON=ON, OFF=OFF] // Don't display "Blink" or "Flicker"

View File

@ -0,0 +1,157 @@
---
id: mcd
label: MCD
title: MCD - Bindings
type: binding
description: "This binding allows you to send sensor events from your openHAB environment to the cloud application Managing Care Digital (MCD) by [C&S Computer und Software GmbH](https://www.managingcare.de/)."
since: 3x
install: manual
---
<!-- Attention authors: Do not edit directly. Please add your changes to the appropriate source repository -->
{% include base.html %}
# MCD Binding
This binding allows you to send sensor events from your openHAB environment to the cloud application Managing Care Digital (MCD) by [C&S Computer und Software GmbH](https://www.managingcare.de/).
MCD is the platform for inpatient and outpatient nursing services.
Our REST API allows you to send a variety of sensor events to the system and thus being able to connect your Ambient Assisted Living (AAL) or smart home environment to the documentation software of your nursing service.
Please note that a valid account is needed to access MCD and the Sensor API.
## Supported Things
There are two supported things: **MCD Bridge** and **MCD Sensor Thing**.
## Discovery
Discovery is not supported.
## Thing Configuration
This section shows the configuration parameters of both supported things.
### MCD Bridge
The MCD Bridge (`mcdBridge`) needs to be configured with your valid C&S MCD / sync API credentials.
| parameter | description |
|-----------|------------------------------------|
| userEmail | Email of account |
| userPassword | valid password for the given email |
### MCD Sensor Thing
Each sensor thing (`mcdSensor`) needs to be configured with the identical serial number, that is assigned to this sensor in MCD.
| parameter | description |
|----------------|------------------------------------|
| serialNumber | serial number of the sensor in MCD |
## Channels
The `mcdSensor` thing supports the following channels. To see the sensors' events, please visit [Managing Care Digital](https://cundsdokumentation.de/) and navigate to the dashboard.
| channel | type | description |
|-------------|--------|-----------------------------------------------|
| lastEvent | String | shows the last event that was sent with date and time |
| sendEvent | String | stateless channel for sending events to the API, see list below for valid commands |
The channel `sendEvent` accepts valid Sensor Event Definitions as well as the corresponding ID.
The following table contains all currently accepted Sensor Event Definitions that can be passed as String type commands.
As soon as new events are added to the API, you can use their ID, even if the Definition is not yet added to this list.
For more information about the API, you can have a look at the [C&S Sync API](https://cunds-syncapi.azurewebsites.net/ApiDocumentation).
| Valid String Type Commands |
|------------|
| BEDEXIT |
| BEDENTRY |
| FALL |
| CHANGEPOSITION |
| BATTERYSTATE |
| INACTIVITY |
| ALARM |
| OPEN |
| CLOSE |
| ON |
| OFF |
| ACTIVITY |
| CAPACITY |
| GAS |
| VITALVALUE |
| ROOMEXIT |
| ROOMENTRY |
| REMOVESENSOR |
| SITDOWN |
| STANDUP |
| INACTIVITYROOM |
| SMOKEALARM |
| HEAT |
| COLD |
| QUALITYAIR |
| ALARMAIR |
| ROOMTEMPERATURE |
| HUMIDITY |
| AIRPRESSURE |
| CO2 |
| INDEXUV |
| WEARTIME |
| FIRSTURINE |
| NEWDIAPER |
| DIAPERREMOVED |
| NOCONNECTION |
| LOWBATTERY |
| CONTROLLSENSOR |
| LYING |
| SPILLED |
| DAMAGED |
| GEOEXIT |
| GEOENTRY |
| WALKING |
| RESTING |
| TURNAROUND |
| HOMEEMERGENCY |
| TOILETFLUSH |
| DORSALPOSITION |
| ABDOMINALPOSITION |
| LYINGLEFT |
| LYINGRIGHT |
| LYINGHALFLEFT |
| LYINGHALFRIGHT |
| MOVEMENT |
| PRESENCE |
| NUMBERPERSONS |
| BRIGHTNESSZONE |
## Full Example
Here is an example for the textual configuration. You can of course use the Administration section of the GUI as well.
demo.things:
```
Bridge mcd:mcdBridge:exampleBridge [userEmail="your.email@examle.com", userPassword="your.password"]{
Thing mcd:mcdSensor:examlpeSensor [serialNumber="123"]
Thing mcd:mcdSensor:secondExamlpeSensor [serialNumber="456"]
}
```
demo.items:
```
String lastValue "Last Value" {channel="mcd:mcdSensor:examlpeSensor:lastValue"}
String sendEvent "Send Event" {channel="mcd:mcdSensor:examlpeSensor:sendEvent"}
```
demo.sitemap:
```
Text item=sendEvent
Text item=lastValue
```

View File

@ -5,7 +5,7 @@
<bridge-type id="pckGateway">
<label>LCN-PCHK Gateway</label>
<description>An LCN gateway speaking the PCK language. E.g. LCN-PCHK software or the DIN rail device LCN-PKE.</description>
<description>An LCN gateway speaking the PCK language. E.g. LCN-PCHK software or the DIN rail device LCN-VISU.</description>
<config-description-ref uri="thing-type:lcn:pckGateway"/>
</bridge-type>
@ -24,10 +24,12 @@
<channel-group typeId="leds" id="led"/>
<channel-group typeId="relays" id="relay"/>
<channel-group typeId="rollershutterrelays" id="rollershutterrelay"/>
<channel-group typeId="rollershutterrelayslats" id="rollershutterrelayslat"/>
<channel-group typeId="logics" id="logic"/>
<channel-group typeId="binarysensors" id="binarysensor"/>
<channel-group typeId="variables" id="variable"/>
<channel-group typeId="rvarsetpoints" id="rvarsetpoint"/>
<channel-group typeId="rvarmodes" id="rvarmode"/>
<channel-group typeId="rvarlocks" id="rvarlock"/>
<channel-group typeId="thresholdregisters1" id="thresholdregister1"/>
<channel-group typeId="thresholdregisters2" id="thresholdregister2"/>
@ -39,6 +41,7 @@
<channel-group typeId="keyslocktablec" id="keylocktablec"/>
<channel-group typeId="keyslocktabled" id="keylocktabled"/>
<channel-group typeId="codes" id="code"/>
<channel-group typeId="operatinghourscounters" id="operatinghourscounter"/>
<channel-group typeId="hostcommands" id="hostcommand"/>
</channel-groups>
<properties>
@ -91,6 +94,19 @@
<autoUpdatePolicy>veto</autoUpdatePolicy>
</channel-type>
<channel-type id="tunablewhite">
<item-type>String</item-type>
<label>Tunable White Mode</label>
<state>
<options>
<option value="DISABLE">Tunable White Disabled</option>
<option value="OUTPUT1">Control Output 1 (Output 2 is auto)</option>
<option value="BOTH">Output 1 Brightness/Output 2 Temperature</option>
</options>
</state>
<autoUpdatePolicy>recommend</autoUpdatePolicy><!-- There's no status message in LCN -->
</channel-type>
<channel-group-type id="outputs">
<label>Dimmer Outputs</label>
<channels>
@ -109,6 +125,7 @@
<channel typeId="color" id="color">
<label>RGB Color Control (Outputs 1-3)</label>
</channel>
<channel typeId="tunablewhite" id="tunablewhite"/>
</channels>
</channel-group-type>
@ -151,7 +168,7 @@
<channel-type id="rollershutter">
<item-type>Rollershutter</item-type>
<label>Roller Shutter</label>
<autoUpdatePolicy>veto</autoUpdatePolicy>
<autoUpdatePolicy>veto</autoUpdatePolicy><!-- The position messages come as the shutter moves -->
<config-description>
<parameter name="invertUpDown" type="boolean">
<label>Invert Up/Down</label>
@ -163,19 +180,37 @@
</channel-type>
<channel-group-type id="rollershutterrelays">
<label>Roller Shutter (Relay)</label>
<label>Shutter (Relay)</label>
<channels>
<channel typeId="rollershutter" id="1">
<label>Shutter 1-2</label>
<label>Position 1-2</label>
</channel>
<channel typeId="rollershutter" id="2">
<label>Shutter 3-4</label>
<label>Position 3-4</label>
</channel>
<channel typeId="rollershutter" id="3">
<label>Shutter 5-6</label>
<label>Position 5-6</label>
</channel>
<channel typeId="rollershutter" id="4">
<label>Shutter 7-8</label>
<label>Position 7-8</label>
</channel>
</channels>
</channel-group-type>
<channel-group-type id="rollershutterrelayslats">
<label>Shutter Slat Angle (Relay)</label>
<channels>
<channel typeId="rollershutter" id="1">
<label>Slat Angle 1-2</label>
</channel>
<channel typeId="rollershutter" id="2">
<label>Slat Angle 3-4</label>
</channel>
<channel typeId="rollershutter" id="3">
<label>Slat Angle 5-6</label>
</channel>
<channel typeId="rollershutter" id="4">
<label>Slat Angle 7-8</label>
</channel>
</channels>
</channel-group-type>
@ -378,6 +413,30 @@
</channels>
</channel-group-type>
<channel-type id="rvarmode" advanced="true">
<item-type>String</item-type>
<label>RVar Heating/Cooling</label>
<state>
<options>
<option value="HEATING">Heating</option>
<option value="COOLING">Cooling</option>
</options>
</state>
<autoUpdatePolicy>recommend</autoUpdatePolicy><!-- There's no status message in LCN -->
</channel-type>
<channel-group-type id="rvarmodes">
<label>RVar Heating/Cooling</label>
<channels>
<channel typeId="rvarmode" id="1">
<label>R1Var Mode</label>
</channel>
<channel typeId="rvarmode" id="2">
<label>R2Var Mode</label>
</channel>
</channels>
</channel-group-type>
<channel-type id="rvarlock" advanced="true">
<item-type>Switch</item-type>
<label>RVar Lock State</label>
@ -664,6 +723,90 @@
</channels>
</channel-group-type>
<channel-group-type id="operatinghourscounters">
<label>Operating Hours Counters</label>
<channels>
<channel typeId="operatinghourscounter" id="output1">
<label>Output 1</label>
</channel>
<channel typeId="operatinghourscounter" id="output2">
<label>Output 2</label>
</channel>
<channel typeId="operatinghourscounter" id="output3">
<label>Output 3</label>
</channel>
<channel typeId="operatinghourscounter" id="output4">
<label>Output 4</label>
</channel>
<channel typeId="operatinghourscounter" id="relay1">
<label>Relay 1</label>
</channel>
<channel typeId="operatinghourscounter" id="relay2">
<label>Relay 2</label>
</channel>
<channel typeId="operatinghourscounter" id="relay3">
<label>Relay 3</label>
</channel>
<channel typeId="operatinghourscounter" id="relay4">
<label>Relay 4</label>
</channel>
<channel typeId="operatinghourscounter" id="relay5">
<label>Relay 5</label>
</channel>
<channel typeId="operatinghourscounter" id="relay6">
<label>Relay 6</label>
</channel>
<channel typeId="operatinghourscounter" id="relay7">
<label>Relay 7</label>
</channel>
<channel typeId="operatinghourscounter" id="relay8">
<label>Relay 8</label>
</channel>
<channel typeId="operatinghourscounter" id="binarysensor1">
<label>Binary Sensor 1</label>
</channel>
<channel typeId="operatinghourscounter" id="binarysensor2">
<label>Binary Sensor 2</label>
</channel>
<channel typeId="operatinghourscounter" id="binarysensor3">
<label>Binary Sensor 3</label>
</channel>
<channel typeId="operatinghourscounter" id="binarysensor4">
<label>Binary Sensor 4</label>
</channel>
<channel typeId="operatinghourscounter" id="binarysensor5">
<label>Binary Sensor 5</label>
</channel>
<channel typeId="operatinghourscounter" id="binarysensor6">
<label>Binary Sensor 6</label>
</channel>
<channel typeId="operatinghourscounter" id="binarysensor7">
<label>Binary Sensor 7</label>
</channel>
<channel typeId="operatinghourscounter" id="binarysensor8">
<label>Binary Sensor 8</label>
</channel>
<channel typeId="operatinghourscounter" id="outputrelativework1">
<label>Output 1 Relative Work</label>
</channel>
<channel typeId="operatinghourscounter" id="outputrelativework2">
<label>Output 2 Relative Work</label>
</channel>
<channel typeId="operatinghourscounter" id="outputrelativework3">
<label>Output 3 Relative Work</label>
</channel>
<channel typeId="operatinghourscounter" id="outputrelativework4">
<label>Output 4 Relative Work</label>
</channel>
</channels>
</channel-group-type>
<channel-type id="operatinghourscounter" advanced="true">
<item-type>Number:Time</item-type>
<label>Operating Hours Counter</label>
<state readOnly="true"/>
</channel-type>
<channel-type id="sendKeys" advanced="true">
<kind>trigger</kind>
<label>Send Keys</label>

View File

@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="mcd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">
<!-- Thing and Bridge Types -->
<bridge-type id="mcdBridge">
<label>MCD Bridge</label>
<description>C&amp;S Managing Care Digital (MCD) account that is used to send data.</description>
<config-description>
<parameter name="userEmail" type="text" required="true">
<context>email</context>
<label>Email</label>
<description>Email of your MCD account.</description>
</parameter>
<parameter name="userPassword" type="text" required="true">
<context>password</context>
<label>Password</label>
<description>Password for your MCD account.</description>
</parameter>
</config-description>
</bridge-type>
<thing-type id="mcdSensor">
<supported-bridge-type-refs>
<bridge-type-ref id="mcdBridge"/>
</supported-bridge-type-refs>
<label>MCD Sensor</label>
<description>Sends data for one mcdSensor to MCD, the C&amp;S cloud application.</description>
<channels>
<channel id="lastValue" typeId="lastValue"/>
<channel id="sendEvent" typeId="sendEvent"/>
</channels>
<config-description>
<parameter name="serialNumber" type="text" required="true">
<label>Serial Number</label>
<description>Please enter the serial number of the sensor. It must match the serial number of this sensor in MCD.</description>
</parameter>
</config-description>
</thing-type>
<channel-type id="lastValue">
<item-type>String</item-type>
<label>Last Value</label>
<description>Shows time and value of the last sensor event (readonly).</description>
<state readOnly="true"/>
</channel-type>
<channel-type id="sendEvent">
<item-type>String</item-type>
<label>Send Event</label>
<description>A stateless channel for sending sensor events.</description>
<command>
<options>
<option value="BEDEXIT">Bed Exit</option>
<option value="BEDENTRY">Bed Entry</option>
<option value="FALL">Fall</option>
<option value="CHANGEPOSITION">Change Position</option>
<option value="BATTERYSTATE">Battery State</option>
<option value="INACTIVITY">Inactivity</option>
<option value="ALARM">Alarm</option>
<option value="OPEN">Open</option>
<option value="CLOSE">Close</option>
<option value="ON">On</option>
<option value="OFF">Off</option>
<option value="ACTIVITY">Activity</option>
<option value="CAPACITY">Capacity</option>
<option value="GAS">Gas</option>
<option value="VITALVALUE">Vital Value</option>
<option value="ROOMEXIT">Room Exit</option>
<option value="ROOMENTRY">Room Entry</option>
<option value="REMOVESENSOR">Remove Sensor</option>
<option value="SITDOWN">Sit Down</option>
<option value="STANDUP">Stand Up</option>
<option value="INACTIVITYROOM">Inactivity Room</option>
<option value="SMOKEALARM">Smoke Alarm</option>
<option value="HEAT">Heat</option>
<option value="COLD">Cold</option>
<option value="QUALITYAIR">Quality Air</option>
<option value="ALARMAIR">Alarm Air</option>
<option value="ROOMTEMPERATURE">Room Temperature</option>
<option value="HUMIDITY">Humidity</option>
<option value="AIRPRESSURE">Airpressure</option>
<option value="CO2">CO2</option>
<option value="INDEXUV">UV Index</option>
<option value="WEARTIME">Weartime</option>
<option value="FIRSTURINE">First Urine</option>
<option value="NEWDIAPER">New Diaper</option>
<option value="DIAPERREMOVED">Diaper Removal</option>
<option value="NOCONNECTION">No Connection</option>
<option value="LOWBATTERY">Low Battery</option>
<option value="CONTROLLSENSOR">Controll Sensor</option>
<option value="LYING">Lying</option>
<option value="SPILLED">Spilled</option>
<option value="DAMAGED">Damaged</option>
<option value="GEOEXIT">Geo Exit</option>
<option value="GEOENTRY">Geo Entry</option>
<option value="WALKING">Walking</option>
<option value="RESTING">Resting</option>
<option value="TURNAROUND">Turnaround</option>
<option value="HOMEEMERGENCY">Home Emergency</option>
<option value="TOILETFLUSH">Toilet Flush</option>
<option value="DORSALPOSITION">Dorsal Position</option>
<option value="ABDOMINALPOSITION">Abdominal Position</option>
<option value="LYINGLEFT">Lying Left</option>
<option value="LYINGRIGHT">Lying Right</option>
<option value="LYINGHALFLEFT">Lying Half Left</option>
<option value="LYINGHALFRIGHT">Lying Half Right</option>
<option value="MOVEMENT">Movement</option>
<option value="PRESENCE">Presence</option>
<option value="NUMBERPERSONS">Number Persons</option>
<option value="BRIGHTNESSZONE">Brightness Zone</option>
</options>
</command>
</channel-type>
</thing:thing-descriptions>