Home Assistant web services
Go to file
dependabot[bot] de154dc590
Bump @cloudflare/workers-types from 4.20240502.0 to 4.20240512.0 (#518)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-20 09:29:41 +02:00
.devcontainer Bump node from 16 to 20 (#416) 2023-10-09 14:36:13 +02:00
.github Bump actions/checkout from 4.1.5 to 4.1.6 (#516) 2024-05-20 09:07:05 +02:00
src Remove newsletter proxy (#445) 2023-12-08 14:39:54 +01:00
tests Remove newsletter proxy (#445) 2023-12-08 14:39:54 +01:00
.gitignore feat(assist): add put wake word training endpoint (#368) 2023-08-21 15:07:35 +02:00
.nvmrc Bump node from 16 to 20 (#416) 2023-10-09 14:36:13 +02:00
LICENSE Add LICENSE (#22) 2021-06-03 10:01:25 -07:00
README.md Remove newsletter proxy (#445) 2023-12-08 14:39:54 +01:00
package.json Bump @cloudflare/workers-types from 4.20240502.0 to 4.20240512.0 (#518) 2024-05-20 09:29:41 +02:00
tsconfig.json Add initial worker (#1) 2021-05-14 08:50:44 +02:00
webpack.config.js Add initial worker (#1) 2021-05-14 08:50:44 +02:00
wrangler.toml feat(assist): add put wake word training endpoint (#368) 2023-08-21 15:07:35 +02:00
yarn.lock Bump @cloudflare/workers-types from 4.20240502.0 to 4.20240512.0 (#518) 2024-05-20 09:29:41 +02:00

README.md

services.home-assistant.io

Home Assistant web services running on CloudFlare workers

whoami

IP Based GEO lookup

Adress structure

[schema]://services.home-assistant.io/whoami/v1/[key]

placeholder required description
schema True Use http or https
key False Return a single key from the regular JSON response as text.

Examples

curl -sSL https://services.home-assistant.io/whoami/v1
{
  "ip": "1.2.3.4",
  "city": "Gotham",
  "continent": "Earth",
  "country": "XX",
  "currency": "XXX",
  "latitude": "12.34567",
  "longitude": "12.34567",
  "postal_code": "12345",
  "region_code": "00",
  "region": "Gotham",
  "timezone": "Earth/Gotham",
  "iso_time": "2021-05-12T11:29:15.752Z",
  "timestamp": 1620818956
}
curl -sSL https://services.home-assistant.io/whoami/v1/ip
1.2.3.4

assist

Services used for assist.

Upload wake word training data

curl --location --request PUT 'https://services.home-assistant.io/assist/wake_word/training_data/upload?distance=[distance]&speed=[speed]&wake_word=[name]' \
--header 'Content-Type: audio/webm' \
--data '@/data/file.webm'