From 7bbc75bf6b0ad083fdd9d9dce8c678a9b4d63118 Mon Sep 17 00:00:00 2001 From: Serge Wagener Date: Tue, 15 Feb 2022 11:45:44 +0100 Subject: [PATCH] Added outlet --- README.md | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index babeb4d..637d0d6 100644 --- a/README.md +++ b/README.md @@ -169,13 +169,42 @@ This sensor is tripped if it detects motion in a room. ``` ### Contact sensor -*TODO* +This sensor shows the open / closed state of a contact (door, window, generic ...). + +#### Characteristics in addition to [common characteristics](#common-accessories-characteristics) +| Parameter | Possible values | Mandatory | Description | +|:-------------|:----------------|:----------|:---------------------------------| +| ContactState | \ | Yes | SHNG item to monitor for contact | + + +#### Example: +```json +{ + "type": "ContactSensor", + "name": "Window kitchen", + "ContactState": "EG.Kueche.Fenster" +} +``` ### Switch *TODO* ### Outlet -*TODO* +This sensor shows the state and switches a wall outlet. The outlet can be generic, a light, a fan, ... + +| Parameter | Possible values | Mandatory | Description | +|:----------|:----------------|:----------|:-------------------------------------| +| On | \ | Yes | SHNG item to switch outlet on or off | + + +#### Example: +```json +{ + "type": "Outlet", + "name": "Christmas tree", + "ContactState": "EG.Esszimmer.Steckdose" +} +``` ### Temperature sensor *TODO*