From 2994c3db7aa9d7175d3b1fdb2b671743b668e80d Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Wed, 7 Oct 2020 17:30:33 +0200 Subject: [PATCH] Boolean and numeric exposes. https://github.com/Koenkk/zigbee2mqtt/issues/4466 --- docs/information/mqtt_topics_and_message_structure.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/information/mqtt_topics_and_message_structure.md b/docs/information/mqtt_topics_and_message_structure.md index 9b4b772b8a64c..86a11de7dcd21 100755 --- a/docs/information/mqtt_topics_and_message_structure.md +++ b/docs/information/mqtt_topics_and_message_structure.md @@ -290,6 +290,16 @@ Indicates a device exposes a switch. Example: `{"type":"switch"}` +#### Numeric +Indicates a device exposes a numeric value. Always contains `property`, optionally includes a `unit`. + +Example: `{"type":"numeric","property":"temperature","unit":"°C"}` + +#### Boolean +Indicates a device exposes a boolean value. Always contains `property`. + +Example: `{"type":"boolean","property":"occupancy"}` + ## zigbee2mqtt/bridge/groups Contains the groups. Whenever a group is added/removed or when devices are added/removed from a group this is republished.