mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Add usage details
This commit is contained in:
parent
e1f4794689
commit
d0a2c8c52c
@ -12,7 +12,7 @@ ha_category: Other
|
||||
---
|
||||
|
||||
|
||||
The browser component provides a service to open urls in the default browser on the host machine.
|
||||
The `browser` component provides a service to open URLs in the default browser on the host machine.
|
||||
|
||||
To load this component, add the following lines to your `configuration.yaml`:
|
||||
|
||||
@ -21,8 +21,19 @@ To load this component, add the following lines to your `configuration.yaml`:
|
||||
browser:
|
||||
```
|
||||
|
||||
#### Service `browser/browse_url`
|
||||
#### {% linkable_title Service `browser/browse_url` %}
|
||||
|
||||
| Service data attribute | Optional | Description |
|
||||
| ---------------------- | -------- | ----------- |
|
||||
| `url` | no | The url to open
|
||||
|
||||
|
||||
### {% linkable_title Usage %}
|
||||
|
||||
To use this service, choose **Call Service** from the **Developer Tools**. Choose the service *browser/browse_url* from the list of **Available services:** and enter the URL into the **Service Data** field and hit **CALL SERVICE**.
|
||||
|
||||
```json
|
||||
{"url": "http://www.google.com"}
|
||||
```
|
||||
|
||||
This will open the given URL on the host machine.
|
||||
|
Loading…
x
Reference in New Issue
Block a user