Skip to content

Commit 0eda9ad

Browse files
authored
Create rest_command.markdown
1 parent d13089e commit 0eda9ad

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: page
3+
title: "RESTful Command"
4+
description: "Instructions how to integrate REST commands into Home Assistant."
5+
date: 2016-12-27 00:00
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: restful.png
11+
ha_category: Automation
12+
ha_release: 0.36.0
13+
---
14+
15+
This component can expose regular rest commands as services. Services can be called from a [script] or in [automation].
16+
17+
[script]: /components/script/
18+
[automation]: /getting-started/automation/
19+
20+
To enable this switch, add the following lines to your `configuration.yaml` file:
21+
```yaml
22+
# Example configuration.yaml entry
23+
rest_command:
24+
```
25+
26+
Configuration variables:
27+
- **timeout** (*Optional*): Timeout for requests, default 10 seconds.

0 commit comments

Comments
 (0)