You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document proposed feature to publish device_descriptor and device_name in keyboard_remote events.
This information can be used in automation triggers so that different bluetooth remotes can control different devices/automations.
Pending acceptance of proposed change.
Copy file name to clipboardExpand all lines: source/_components/keyboard_remote.markdown
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ ha_iot_class: "Local Push"
15
15
16
16
Receive signals from a keyboard and use it as a remote control.
17
17
18
-
This component allows you to use a keyboard as remote control. It will fire `keyboard_remote_command_received` events which can then be used in automation rules.
18
+
This component allows you to use one or more keyboards as remote controls. It will fire `keyboard_remote_command_received` events which can then be used in automation rules.
19
19
20
20
The `evdev` package is used to interface with the keyboard and thus this is Linux only. It also means you can't use your normal keyboard for this because `evdev` will block it.
21
21
@@ -37,15 +37,17 @@ In case of presence of multiple devices of the same model, `device_descriptor` m
37
37
38
38
A list of possible device descriptors and names is reported in the debug log at startup when the device indicated in the configuration entry could not be found.
39
39
40
-
A full configuration for Keyboard Remote could look like the one below:
40
+
A full configuration for two Keyboard Remotes could look like the one below:
key_code: 107 # inspect log to obtain desired keycode
66
69
action:
67
70
service: light.turn_on
68
71
entity_id: light.all
69
72
```
73
+
`device_descriptor`or `device_name` may be specificed in the trigger so the automation will be fired only for that keyboard. This is especially useful if you wish to use several bluetooth remotes to control different devices. Omit them to ensure the same key triggers the automation for all keyboards/remotes.
70
74
71
75
## {% linkable_title Disconnections %}
72
76
This component manages disconnections and re-connections of the keyboard, for example in the case of a Bluetooth device that turns off automatically to preserve battery.
0 commit comments