From 273e7350bd547b815c030a407b46fa3f50b8fd12 Mon Sep 17 00:00:00 2001 From: Rafal Drozda Date: Mon, 20 Nov 2023 15:45:11 +0100 Subject: [PATCH] Update stateroles.md - clarify buttons Clarify why buttons should have read attribute set to FALSE & suggestion to accomplish button events with ACK = TRUE --- docs/en/dev/stateroles.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/en/dev/stateroles.md b/docs/en/dev/stateroles.md index 9a93c138a..712c3856b 100644 --- a/docs/en/dev/stateroles.md +++ b/docs/en/dev/stateroles.md @@ -24,6 +24,9 @@ in the [Type-detector repository](https://github.com/ioBroker/ioBroker.type-dete * `date` `common.type = number` - `epoch seconds * 1000` ## Sensor (booleans, read-only) +Buttons do not have a value and are only used to send an event (TRUE) when pressed, therefore the attribute read must be FALSE +Button events triggering onChange on an adapter should be confirmed with ACK = TRUE to show the event has been recognized and processed. + `common.type=boolean, common.write=false` * `sensor.window` - window opened-`true` or closed-`false`