mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-10 10:56:49 +00:00
add support for momentary beep/blink configuration options (#6016)
This commit is contained in:
parent
a80732c1f1
commit
b673a41b16
@ -74,7 +74,7 @@ devices:
|
|||||||
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.
|
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.
|
||||||
required: exclusive
|
required: exclusive
|
||||||
zone:
|
zone:
|
||||||
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.
|
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`.
|
||||||
required: exclusive
|
required: exclusive
|
||||||
type:
|
type:
|
||||||
description: Any [binary sensor](/components/binary_sensor/) class, typically `door`, `window`, `motion` or `smoke`.
|
description: Any [binary sensor](/components/binary_sensor/) class, typically `door`, `window`, `motion` or `smoke`.
|
||||||
@ -92,16 +92,25 @@ devices:
|
|||||||
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.
|
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.
|
||||||
required: exclusive
|
required: exclusive
|
||||||
zone:
|
zone:
|
||||||
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.
|
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`.
|
||||||
required: exclusive
|
required: exclusive
|
||||||
name:
|
name:
|
||||||
description: The name of the device used in the front end.
|
description: The name of the device used in the front end.
|
||||||
required: false
|
required: false
|
||||||
default: automatically generated
|
default: automatically generated
|
||||||
activation:
|
activation:
|
||||||
description: Either "low" or "high" to specify the state when the switch is turned on.
|
description: Either `low` or `high` to specify the state when the switch is turned on.
|
||||||
default: high
|
default: high
|
||||||
required: false
|
required: false
|
||||||
|
momentary:
|
||||||
|
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`.
|
||||||
|
required: false
|
||||||
|
pause:
|
||||||
|
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`.
|
||||||
|
required: false
|
||||||
|
repeat:
|
||||||
|
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.
|
||||||
|
required: false
|
||||||
{% endconfiguration%}
|
{% endconfiguration%}
|
||||||
|
|
||||||
#### {% linkable_title Configuration Notes %}
|
#### {% linkable_title Configuration Notes %}
|
||||||
@ -109,7 +118,7 @@ devices:
|
|||||||
- Either **pin** or **zone** is required for each actuator or sensor. Do not use both in the same definition.
|
- Either **pin** or **zone** is required for each actuator or sensor. Do not use both in the same definition.
|
||||||
- Pin `D8` or the `out` zone will only work when activation is set to high (the default).
|
- Pin `D8` or the `out` zone will only work when activation is set to high (the default).
|
||||||
|
|
||||||
## {% linkable_title Full configuration %}
|
## {% linkable_title Full Configuration %}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
@ -121,12 +130,25 @@ konnected:
|
|||||||
- zone: 1
|
- zone: 1
|
||||||
type: door
|
type: door
|
||||||
name: 'Front Door'
|
name: 'Front Door'
|
||||||
|
- zone: 2
|
||||||
|
type: smoke
|
||||||
|
name: 'Bedroom Smoke Detector'
|
||||||
- zone: 3
|
- zone: 3
|
||||||
type: motion
|
type: motion
|
||||||
name: 'Test Motion'
|
name: 'Test Motion'
|
||||||
switches:
|
switches:
|
||||||
- zone: out
|
- zone: out
|
||||||
name: siren
|
name: siren
|
||||||
|
- zone: 5
|
||||||
|
name: 'Beep Beep'
|
||||||
|
momentary: 65
|
||||||
|
pause: 55
|
||||||
|
repeat: 4
|
||||||
|
- zone: 5
|
||||||
|
name: Warning
|
||||||
|
momentary: 65
|
||||||
|
pause: 55
|
||||||
|
repeat: -1
|
||||||
- id: 438a38
|
- id: 438a38
|
||||||
binary_sensors:
|
binary_sensors:
|
||||||
- pin: 1
|
- pin: 1
|
||||||
@ -139,6 +161,9 @@ konnected:
|
|||||||
- pin: 5
|
- pin: 5
|
||||||
name: 'Garage Door'
|
name: 'Garage Door'
|
||||||
activation: low
|
activation: low
|
||||||
|
momentary: 500
|
||||||
|
- pin: 8
|
||||||
|
name: LED Light
|
||||||
```
|
```
|
||||||
|
|
||||||
### {% linkable_title Pin Mapping %}
|
### {% linkable_title Pin Mapping %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user