Skip to content

Commit

Permalink
Update stateroles.md - clarify buttons
Browse files Browse the repository at this point in the history
Clarify why buttons should have read attribute set to FALSE & suggestion to accomplish button events with ACK = TRUE
  • Loading branch information
DutchmanNL authored Nov 20, 2023
1 parent 4b21d93 commit 273e735
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/en/dev/stateroles.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 273e735

Please sign in to comment.