Change selector and add translations in System Bridge send_keypress action (#171860)

This commit is contained in:
Manu
2026-05-26 21:30:51 +02:00
committed by GitHub
parent 23ecc311fd
commit 9db7b3d012
2 changed files with 130 additions and 1 deletions
@@ -57,7 +57,72 @@ send_keypress:
required: true
example: "audio_play"
selector:
text:
select:
options:
- backspace
- delete
- enter
- tab
- escape
- up
- down
- right
- left
- home
- end
- pageup
- pagedown
- f1
- f2
- f3
- f4
- f5
- f6
- f7
- f8
- f9
- f10
- f11
- f12
- command
- alt
- control
- shift
- right_shift
- space
- printscreen
- insert
- audio_mute
- audio_vol_down
- audio_vol_up
- audio_play
- audio_stop
- audio_pause
- audio_prev
- audio_next
- audio_rewind
- audio_forward
- audio_repeat
- audio_random
- numpad_0
- numpad_1
- numpad_2
- numpad_3
- numpad_4
- numpad_5
- numpad_6
- numpad_7
- numpad_8
- numpad_9
- lights_mon_up
- lights_mon_down
- lights_kbd_toggle
- lights_kbd_up
- lights_kbd_down
mode: dropdown
custom_value: true
translation_key: key
sort: false
send_text:
fields:
bridge:
@@ -179,6 +179,70 @@
}
},
"selector": {
"key": {
"options": {
"alt": "Alt",
"audio_forward": "Fast-Forward track",
"audio_mute": "Mute",
"audio_next": "Next track",
"audio_pause": "Pause media",
"audio_play": "Play media",
"audio_prev": "Previous track",
"audio_random": "Random track",
"audio_repeat": "Repeat track",
"audio_rewind": "Rewind track",
"audio_stop": "Stop media",
"audio_vol_down": "Volume down",
"audio_vol_up": "Volume up",
"backspace": "Backspace",
"command": "Command",
"control": "Control",
"delete": "Delete",
"down": "[%key:common::entity::button::down::name%]",
"end": "End",
"enter": "Enter",
"escape": "Escape",
"f1": "F1",
"f10": "F10",
"f11": "F11",
"f12": "F12",
"f2": "F2",
"f3": "F3",
"f4": "F4",
"f5": "F5",
"f6": "F6",
"f7": "F7",
"f8": "F8",
"f9": "F9",
"home": "[%key:common::entity::button::home::name%]",
"insert": "Insert",
"left": "[%key:common::entity::button::left::name%]",
"lights_kbd_down": "Keyboasrd backlight brightness down",
"lights_kbd_toggle": "Toggle keyboard backlight",
"lights_kbd_up": "Keyboard backlight brighness up",
"lights_mon_down": "Display brightness down",
"lights_mon_up": "Display brightness up",
"numpad_0": "NumPad 0",
"numpad_1": "NumPad 1",
"numpad_2": "NumPad 2",
"numpad_3": "NumPad 3",
"numpad_4": "NumPad 4",
"numpad_5": "NumPad 5",
"numpad_6": "NumPad 6",
"numpad_7": "NumPad 7",
"numpad_8": "NumPad 8",
"numpad_9": "NumPad 9",
"pagedown": "Page down",
"pageup": "Page up",
"printscreen": "Print screen",
"right": "[%key:common::entity::button::right::name%]",
"right_shift": "Shift right",
"shift": "Shift",
"space": "Space",
"tab": "Tab",
"up": "[%key:common::entity::button::up::name%]"
}
},
"power_command": {
"options": {
"hibernate": "Hibernate",