Replace password with bearer token

This commit is contained in:
Fabian Affolter 2018-12-30 22:32:09 +01:00
parent 561a0c5c23
commit 1ed2343f86
No known key found for this signature in database
GPG Key ID: E23CD2DD36A4397F

View File

@ -38,7 +38,8 @@ The same will work for automations.
Using the [REST API](https://developers.home-assistant.io/docs/en/external_api_rest.html) to send a message to a given topic.
```bash
$ curl -X POST -H "x-ha-access: YOUR_PASSWORD" \
$ curl -X POST \
-H "Authorization: Bearer ABCDEFGH" \
-H "Content-Type: application/json" \
-d '{"payload": "Test message from HA", "topic": "home/notification"}' \
http://IP_ADDRESS:8123/api/services/mqtt/publish