Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions device_services/generic/output_binary_switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ Output binary switch service acts as an on/off switch for wall-plugs, relays, si

## Interfaces

| Type | Interface | Value type | Description |
|------|-----------------------|------------|----------------------------------------------------------------------------------|
| in | cmd.binary.get_report | null | Requests report of the binary state. |
| in | cmd.binary.set | bool | Sets the binary state. |
| out | evt.binary.report | bool | Reports `true` when the switch is **on** and `false` when the switch is **off**. |
| Type | Interface | Value type | Description |
|------|------------------------------|------------|----------------------------------------------------------------------------------|
| in | cmd.binary.get_report | null | Requests report of the binary state. |
| in | cmd.binary.set | bool | Sets the binary state. |
| out | evt.binary.report | bool | Reports `true` when the switch is **on** and `false` when the switch is **off**. |
| in | cmd.default_state.get_report | null | Requests report of the default binary state after power up. |
| in | cmd.default_state.set | bool | Sets the binary state default binary state after power up. |
| out | evt.default_state.report | bool | Reports binary state after power up - `true` then **on**, `false` when **off**. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add it to parameters service @BudzikM


## Examples

Expand Down Expand Up @@ -48,4 +51,4 @@ Output binary switch service acts as an on/off switch for wall-plugs, relays, si
"uid": "90bfaa87-a9cf-4b8d-97a0-69faf543f6bb",
"topic": "pt:j1/mt:evt/rt:dev/rn:zigbee/ad:1/sv:out_bin_switch/ad:4_1"
}
```
```