Skip to content

Commit b673a41

Browse files
heythisisnateballoob
authored andcommitted
add support for momentary beep/blink configuration options (home-assistant#6016)
1 parent a80732c commit b673a41

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

source/_components/konnected.markdown

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ devices:
7474
description: The number corresponding to the _IO index_ of the labeled pin on the NodeMCU dev board. See the [NodeMCU GPIO documentation](https://nodemcu.readthedocs.io/en/master/en/modules/gpio/) for more details. Valid values are 1, 2, 5, 6, 7 and 9.
7575
required: exclusive
7676
zone:
77-
description: The number corresponding to the labeled zone on the [Konnected Alarm Panel](https://konnected.io) board. Valid values are 1, 2, 3, 4, 5 and 6.
77+
description: The number corresponding to the labeled zone on the [Konnected Alarm Panel](https://konnected.io) board. Valid values are `1`, `2`, `3`, `4`, `5` and `6`.
7878
required: exclusive
7979
type:
8080
description: Any [binary sensor](/components/binary_sensor/) class, typically `door`, `window`, `motion` or `smoke`.
@@ -92,24 +92,33 @@ devices:
9292
description: The number corresponding to the _IO index_ of the labeled pin on the NodeMCU dev board. See the [NodeMCU GPIO documentation](https://nodemcu.readthedocs.io/en/master/en/modules/gpio/) for more details. Valid values are 1, 2, 5, 6, 7 and 8.
9393
required: exclusive
9494
zone:
95-
description: The number corresponding to the labeled zone on the [Konnected Alarm Panel](https://konnected.io) board or the word `out` to specify the dedicated ALARM/OUT terminal on the Konnected board. Valid values are 1, 2, 3, 4, 5 and out.
95+
description: The number corresponding to the labeled zone on the [Konnected Alarm Panel](https://konnected.io) board or the word `out` to specify the dedicated ALARM/OUT terminal on the Konnected board. Valid values are `1`, `2`, `3`, `4`, `5` and `out`.
9696
required: exclusive
9797
name:
9898
description: The name of the device used in the front end.
9999
required: false
100100
default: automatically generated
101101
activation:
102-
description: Either "low" or "high" to specify the state when the switch is turned on.
102+
description: Either `low` or `high` to specify the state when the switch is turned on.
103103
default: high
104104
required: false
105+
momentary:
106+
description: Duration of the momentary pulse in milliseconds. To make a half-second momentary contact using a relay for a garage door opener, set this value to `500`.
107+
required: false
108+
pause:
109+
description: Time of the pause between pulses in milliseconds when also used with _momentary_ and _repeat_. To make a door chime "beep" with piezo buzzer, set this value to `55`, set _momentary_ to `65`, and _repeat_ to `3` or `4`.
110+
required: false
111+
repeat:
112+
description: Number of times to repeat a momentary pulse. Set to `-1` to make an infinite repeat. This is useful as an alarm or warning when used with a piezo buzzer.
113+
required: false
105114
{% endconfiguration%}
106115

107116
#### {% linkable_title Configuration Notes %}
108117

109118
- Either **pin** or **zone** is required for each actuator or sensor. Do not use both in the same definition.
110119
- Pin `D8` or the `out` zone will only work when activation is set to high (the default).
111120

112-
## {% linkable_title Full configuration %}
121+
## {% linkable_title Full Configuration %}
113122

114123
```yaml
115124
# Example configuration.yaml entry
@@ -121,12 +130,25 @@ konnected:
121130
- zone: 1
122131
type: door
123132
name: 'Front Door'
133+
- zone: 2
134+
type: smoke
135+
name: 'Bedroom Smoke Detector'
124136
- zone: 3
125137
type: motion
126138
name: 'Test Motion'
127139
switches:
128140
- zone: out
129141
name: siren
142+
- zone: 5
143+
name: 'Beep Beep'
144+
momentary: 65
145+
pause: 55
146+
repeat: 4
147+
- zone: 5
148+
name: Warning
149+
momentary: 65
150+
pause: 55
151+
repeat: -1
130152
- id: 438a38
131153
binary_sensors:
132154
- pin: 1
@@ -139,6 +161,9 @@ konnected:
139161
- pin: 5
140162
name: 'Garage Door'
141163
activation: low
164+
momentary: 500
165+
- pin: 8
166+
name: LED Light
142167
```
143168

144169
### {% linkable_title Pin Mapping %}

0 commit comments

Comments
 (0)