-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrest_commands.yaml
27 lines (25 loc) · 957 Bytes
/
rest_commands.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
rest_command:
ambientika_authenticate:
url: "https://app.ambientika.eu:4521/users/authenticate"
method: POST
headers:
accept: "application/json"
payload: '{"username":"{{ username }}","password":"{{ password }}"}'
content_type: "application/json"
ambientika_change_mode:
url: "https://app.ambientika.eu:4521/device/change-mode"
method: POST
headers:
accept: "application/json"
Authorization: >
Bearer {{ states("input_text.ambientika_access_token") }}
payload: '{"deviceSerialNumber":"{{ serial }}","operatingMode":{{ mode }},"fanSpeed":{{ fan }},"humidityLevel":{{ humidity }},"lightSensorLevel":{{ light }}}'
content_type: "application/json"
ambientika_reset_filter:
url: '{{ rest_url }}'
method: GET
headers:
accept: "application/json"
Authorization: >
Bearer {{ states("input_text.ambientika_access_token") }}
content_type: "application/json"