mirror of
https://github.com/esphome/esphome.git
synced 2024-12-11 14:49:20 +01:00
34 lines
858 B
YAML
34 lines
858 B
YAML
|
esphome:
|
||
|
on_boot:
|
||
|
then:
|
||
|
- http_request.get:
|
||
|
url: https://esphome.io
|
||
|
headers:
|
||
|
Content-Type: application/json
|
||
|
verify_ssl: false
|
||
|
on_response:
|
||
|
then:
|
||
|
- logger.log:
|
||
|
format: 'Response status: %d, Duration: %u ms'
|
||
|
args:
|
||
|
- status_code
|
||
|
- duration_ms
|
||
|
- http_request.post:
|
||
|
url: https://esphome.io
|
||
|
headers:
|
||
|
Content-Type: application/json
|
||
|
json:
|
||
|
key: value
|
||
|
verify_ssl: false
|
||
|
- http_request.send:
|
||
|
method: PUT
|
||
|
url: https://esphome.io
|
||
|
headers:
|
||
|
Content-Type: application/json
|
||
|
body: "Some data"
|
||
|
verify_ssl: false
|
||
|
|
||
|
http_request:
|
||
|
useragent: esphome/tagreader
|
||
|
timeout: 10s
|