From a7a266d470451520dafcf646fa9695ad20a249ab Mon Sep 17 00:00:00 2001 From: Serge Wagener Date: Tue, 15 Feb 2022 12:01:56 +0100 Subject: [PATCH] Added switch --- README.md | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 637d0d6..b56a682 100644 --- a/README.md +++ b/README.md @@ -187,10 +187,24 @@ This sensor shows the open / closed state of a contact (door, window, generic .. ``` ### Switch -*TODO* +This accessory can monitor and change the on/off state of something. It is very similar to an outlet. + +| Parameter | Possible values | Mandatory | Description | +|:----------|:----------------|:----------|:----------------------------------------| +| On | \ | Yes | SHNG item to switch something on or off | + + +#### Example: +```json +{ + "type": "Switch", + "name": "Music living-room", + "On": "EG.Stube.Radio" +} +``` ### Outlet -This sensor shows the state and switches a wall outlet. The outlet can be generic, a light, a fan, ... +This accessory can monitor and change the on/off state of a wall outlet. The outlet can be generic, a light, a fan, ... | Parameter | Possible values | Mandatory | Description | |:----------|:----------------|:----------|:-------------------------------------| @@ -202,12 +216,26 @@ This sensor shows the state and switches a wall outlet. The outlet can be generi { "type": "Outlet", "name": "Christmas tree", - "ContactState": "EG.Esszimmer.Steckdose" + "On": "EG.Esszimmer.Steckdose" } ``` ### Temperature sensor -*TODO* +This sensor show the actual temperature + +| Parameter | Possible values | Mandatory | Description | +|:-------------------|:----------------|:----------|:-------------------------------------| +| CurrentTemperature | \ | Yes | SHNG item to monitor for temperature | + + +#### Example: +```json +{ + "type": "TemperatureSensor", + "name": "Temperature WC", + "CurrentTemperature": "EG.WC.Temperatur" +} +``` ### Thermostat *TODO*