1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-18 09:43:47 +01:00

Add trigger for http actions to receive the status code (#1599)

This commit is contained in:
Jesse Hills
2021-03-22 16:26:10 +13:00
committed by GitHub
parent 8f1eb77e05
commit af3273d930
4 changed files with 35 additions and 3 deletions

View File

@@ -49,6 +49,12 @@ esphome:
Content-Type: application/json
body: 'Some data'
verify_ssl: false
on_response:
then:
- logger.log:
format: 'Response status: %d'
args:
- status_code
build_path: build/test1
packages: