RFLink Light
The rflink
integration supports devices that use RFLink gateway firmware
First, you have to set up your RFLink hub.
After configuring the RFLink hub, lights will be automatically discovered and added.
RFLink binary_sensor/switch/light ID’s are composed of: protocol, id, switch/channel. For example: newkaku_0000c6c2_1
.
Once the ID of a light is known, it can be used to configure the light in HA, for example to add it to a different group or configure a nice name.
Configuring devices as a light:
# Example configuration.yaml entry
light:
- platform: rflink
devices:
NewKaku_02a48800_0: {}
newkaku_0000c6c2_1: {}
Ansluta_ce30_0: {}
Maclean_0d82_01: {}
Configuration Variables
The defaults for the devices.
Automatically add new/unconfigured devices to Home Assistant if detected.
A list of lights.
RFLink ID of the device
Override automatically detected type of the light device, can be: switchable, dimmable, hybrid or toggle. See Light Types below.
Fire a button_pressed
event if this device is turned on or off.
Light state
Initially the state of a light is unknown. When the light is turned on or off (via frontend or remote) the state is known and will be shown in the frontend.
Sometimes a light is controlled by multiple remotes, each remote has its own code programmed in the light. To allow tracking of the state when switched via other remotes add the corresponding remote codes as aliases:
# Example configuration.yaml entry
light:
- platform: rflink
devices:
newkaku_0000c6c2_1:
aliases:
- newkaku_000000001_2
- kaku_000001_a
Any on/off command from any alias ID updates the current state of the light. However when sending a command through the frontend only the primary ID is used.
Light types
Light devices can come in different forms. Some only switch on and off, other support dimming. Dimmable devices might not always respond nicely to repeated on
command as they turn into a pulsating state until on
is pressed again (for example KlikAanKlikUit). The RFLink integration support three types of lights to make things work in every situation:
-
Hybrid: This type sends a
dim
followed by an anon
command; andoff
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 multipleon
signals will cause dimmers to go into disco mode. -
Switchable: Device type that sends only
on
andoff
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
andoff
commands. This does not work on on/off type devices as they don’t understand thedim
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.
Hiding/ignoring lights
Lights are added automatically when the RFLink gateway intercepts a wireless command in the ether. To prevent cluttering the frontend use any of these methods:
- Disable automatically adding of unconfigured new sensors (set
automatic_add
tofalse
). - Hide unwanted devices using customizations
- Ignore devices on a platform level
Device support
See device support
Additional configuration examples
Multiple lights with signal_repetitions
and custom names
# Example configuration.yaml entry
light:
- platform: rflink
device_defaults:
fire_event: true
signal_repetitions: 2
automatic_add: true
devices:
NewKaku_02a48800_0:
name: Kitchen
type: hybrid
newkaku_0000c6c2_1:
name: Living room
aliases:
- newkaku_000000001_2
- kaku_000001_a
Ansluta_ce30_0:
name: Kitchen Under Counter Lights
Maclean_0d82_01:
name: Bedroom Lamp