From 272d738215303b63647477a8f48790ce10852bdd Mon Sep 17 00:00:00 2001 From: Davi Petris Date: Fri, 6 Nov 2020 00:05:18 -0300 Subject: [PATCH] added computer name examples to docs --- README.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dd80e38..45aece1 100644 --- a/README.md +++ b/README.md @@ -435,7 +435,15 @@ remote_id: remote_id action: remote_action ``` -For example: +- To specify which computer will receive the command, just add a `target` entry: + +```yaml +target: computer_name +remote_id: remote_id +action: remote_action +``` + +Example: This call will open Amazon Prime Video on my default browser. @@ -451,6 +459,22 @@ remote_id: Unified.AmazonPrimeVideo action: launch ``` +The same but specifying a computer by name: + +```yaml +target: PcMasterRace +remote_id: Unified.AmazonPrimeVideo +action: launch +``` + +If you didn't assign a computer name, the name will be same as computer ip, so: + +```yaml +target: 192.168.1.2 +remote_id: Unified.AmazonPrimeVideo +action: launch +``` + - For adding buttons on your home assistant lovelace, use `Manual Card` element with `call-service` action, like: ```yaml