mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Rflink: added support for lights with toggle type (#2284)
* Update switch.rpi_rf.markdown updated to reflect the changes for supporting multiple codes being executed in a row * added toggle type and fire_event fix for typo removed additional incorrect underscore from fire_event * removed one more instance of fire_event with additional underscore
This commit is contained in:
parent
14ecb68bae
commit
7f66e700c2
@ -49,15 +49,15 @@ Configuration variables:
|
||||
- **devices** (*Optional*): A list of devices with their name to use in the frontend.
|
||||
- **new_devices_group** (*Optional*): Create group to add new/unknown devices to.
|
||||
- **device_defaults**: (*Optional*)
|
||||
- **fire_event_** (*Optional*): Set default `fire_event` for Rflink switch devices (see below).
|
||||
- **fire_event** (*Optional*): Set default `fire_event` for Rflink switch devices (see below).
|
||||
- **signal_repetitions** (*Optional*): Set default `signal_repetitions` for Rflink switch devices (see below).
|
||||
|
||||
Device configuration variables:
|
||||
|
||||
- **name** (*Optional*): Name for the device, defaults to Rflink ID.
|
||||
- **type** (*Optional*): Override automatically detected type of the light device, can be: switchable, dimmable or hybrid. See 'Light Types' below.
|
||||
- **type** (*Optional*): Override automatically detected type of the light device, can be: switchable, dimmable, hybrid or toggle. See 'Light Types' below.
|
||||
- **aliasses** (*Optional*): Alternative Rflink ID's this device is known by.
|
||||
- **fire_event_** (*Optional*): Fire an `button_pressed` event if this device is turned on or off (default: False).
|
||||
- **fire_event** (*Optional*): Fire an `button_pressed` event if this device is turned on or off (default: False).
|
||||
- **signal_repetitions** (*Optional*): Repeat every Rflink command this number of times (default: 1)
|
||||
|
||||
### {% linkable_title Light state %}
|
||||
@ -87,6 +87,7 @@ Light devices can come in different forms. Some only switch on and off, other su
|
||||
- *Hybrid*: This type sends a `dim` followed by an a `on` command; and `off` commands. This will make dimmable devices turn on at the requested dim level and on/off devices on. One caveat is this type is not compatible with signal repetition as multiple `on` signals will cause dimmers to go into disco mode.
|
||||
- *Switchable*: Device type that sends only `on` and `off` commands. It work for both on/off and dimmable type switches. However dimmables might have issues with signal repetition (see above).
|
||||
- *Dimmable*: Sends only `dim` and `off` commands. This does not work on on/off type devices as they don't understand the `dim` command. For dimmers this does not cause issues with signal repetitions.
|
||||
- *Toggle*: Device type that sends only `on` commands to turn on or off the device. Some switches like for example Livolo light switches use the same 'on' command to switch on and switch off the lights. If the light is on and 'on' gets sent, the light will turn off and if the light is off and 'on' gets sent, the light will turn on. If the device has an unknown state, it will assume it is off by default.
|
||||
|
||||
By default new lights are assigned the `switchable` type. Protocol supporting dimming are assigned the `hybrid` type. Currently only `newkaku` protocol is detected as dimmable. Please refer to Device Support to get your dimmers supported.
|
||||
|
||||
|
@ -35,8 +35,8 @@ switch:
|
||||
code_off: 133742
|
||||
living_room_light:
|
||||
protocol: 5
|
||||
code_on: 654321
|
||||
code_off: 654320
|
||||
code_on: 654321,565874,233555,149874
|
||||
code_off: 654320,565873,233554,149873
|
||||
signal_repetitions: 15
|
||||
```
|
||||
|
||||
@ -45,8 +45,8 @@ Configuration variables:
|
||||
- **gpio** (*Required*): GPIO to which the data line of the TX module is connected.
|
||||
- **switches:** (*Required*): The array that contains all switches.
|
||||
- **[entry]** (*Required*): Name of the switch. Multiple entries are possible.
|
||||
- **code_on** (*Required*): Decimal code to switch the device on.
|
||||
- **code_off** (*Required*): Decimal code to switch the device off.
|
||||
- **code_on** (*Required*): Decimal code(s) to switch the device on. To run multiple codes in a sequence, separate the individual codes with commas ','.
|
||||
- **code_off** (*Required*): Decimal code(s) to switch the device off. To run multiple codes in a sequence, separate the individual codes with commas ','.
|
||||
- **protocol** (*Optional*): RF Protocol (Default is `1`).
|
||||
- **pulselength** (*Optional*): Pulselength (Default is the protocol default).
|
||||
- **signal_repetitions** (*Optional*): Number of times to repeat transmission (default is 10, can increase to try to improve reliability).
|
||||
|
Loading…
x
Reference in New Issue
Block a user