Skip to content

Commit

Permalink
added computer name examples to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DaviPtrs committed Nov 6, 2020
1 parent 59db143 commit 272d738
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
Expand Down

0 comments on commit 272d738

Please sign in to comment.