-
Notifications
You must be signed in to change notification settings - Fork 0
/
hottub_rest_sensors.yaml
44 lines (44 loc) · 1.11 KB
/
hottub_rest_sensors.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
sensor:
- platform: rest
name: hottub_online
resource: "https://mobileapi.lay-z-spa.co.uk/v1/gizwits/is_online"
headers:
Content-Type: application/x-www-form-urlencoded
method: POST
payload: !secret hottub_api_did
value_template: "{{ value_json.data }}"
- platform: rest
name: hottub_status
resource: "https://mobileapi.lay-z-spa.co.uk/v1/gizwits/status"
headers:
Content-Type: application/x-www-form-urlencoded
method: POST
payload: !secret hottub_api_did
value_template: "{{ value_json.data.attr.power }}"
json_attributes_path: "$.data.attr"
json_attributes:
- system_err2
- wave_appm_min
- heat_timer_min
- heat_power
- earth
- wave_timer_min
- system_err6
- system_err7
- system_err4
- system_err5
- heat_temp_reach
- system_err3
- system_err1
- system_err8
- system_err9
- filter_timer_min
- heat_appm_min
- power
- temp_set_unit
- filter_appm_min
- temp_now
- wave_power
- locked
- filter_power
- temp_set