From 5b1ed44613b3d1396ba73edeed37170c5da2603c Mon Sep 17 00:00:00 2001 From: tkdrob Date: Mon, 26 Apr 2021 09:35:45 -0400 Subject: [PATCH] Add selectors to ps4 services (#49702) Co-authored-by: Franck Nijhof --- homeassistant/components/ps4/services.yaml | 23 +++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/ps4/services.yaml b/homeassistant/components/ps4/services.yaml index e1af6543a65..fe7641357bf 100644 --- a/homeassistant/components/ps4/services.yaml +++ b/homeassistant/components/ps4/services.yaml @@ -1,9 +1,30 @@ send_command: + name: Send command description: Emulate button press for PlayStation 4. fields: entity_id: - description: Name(s) of entities to send command. + name: Entity + description: Name of entity to send command. + required: true example: "media_player.playstation_4" + selector: + entity: + integration: ps4 + domain: media_player command: + name: Command description: Button to press. + required: true example: "ps" + selector: + select: + options: + - "back" + - "down" + - "enter" + - "left" + - "option" + - "ps_hold" + - "ps" + - "right" + - "up"