-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrest_command.yaml
67 lines (67 loc) · 2.56 KB
/
rest_command.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
switchbot_device_command:
url: "https://api.switch-bot.com/v1.0/devices/{{ deviceId }}/commands"
method: post
content_type: "application/json"
headers:
Authorization: !secret switchbot_api
payload: '{"command": "{{ command }}","parameter": "{{ parameter }}"}'
switchbot_irdevice_command:
url: "https://api.switch-bot.com/v1.0/devices/{{ deviceId }}/commands"
method: post
content_type: "application/json"
headers:
Authorization: !secret switchbot_api
payload: '{"command": "{{ command }}","parameter": "default", "commandType": "customize"}'
pushcut_automation:
url: "https://api.pushcut.io/execute?shortcut=Home%20Assistant%20Automations"
method: post
headers:
authorization: !secret pushcut_api
accept: "application/json, text/html"
user-agent: "Mozilla/5.0 {{ useragent }}"
payload: '{"input": "{{ input }}"}'
content_type: "application/json; charset=utf-8"
alarm_clock_end_shortcut:
url: "https://api.pushcut.io/6i1205itekV-f_tA36bgZ/execute?shortcut=Morning%20Music"
grocy_manual_chore_due:
url: "http://192.168.4.209:9111/api/objects/chores/{{ choreId }}"
method: put
content_type: "application/json"
headers:
Authorization: !secret grocy_token
payload: '{"rescheduled_date": "{{ states(''sensor.grocy_in_15_minutes'')}}"}'
grocy_empty_tumble_dryer_due:
url: "http://192.168.4.209:9111/api/objects/chores/37"
method: put
content_type: "application/json"
headers:
Authorization: !secret grocy_token
payload: '{"rescheduled_date": "{{ now() + timedelta( minutes = 15 ) }}"}'
grocy_empty_washing_machine_due:
url: "http://192.168.4.209:9111/api/objects/chores/35"
method: put
content_type: "application/json"
headers:
Authorization: !secret grocy_token
payload: '{"rescheduled_date": "{{ now() + timedelta( minutes = 15 ) }}"}'
grocy_empty_dishwasher_due:
url: "http://192.168.4.209:9111/api/objects/chores/38"
method: put
content_type: "application/json"
headers:
Authorization: !secret grocy_token
payload: '{"rescheduled_date": "{{ now() + timedelta( minutes = 15 ) }}"}'
grocy_empty_robot_vacuum_due:
url: "http://192.168.4.209:9111/api/objects/chores/27"
method: put
content_type: "application/json"
headers:
Authorization: !secret grocy_token
payload: '{"rescheduled_date": "{{ now() + timedelta( minutes = 15 ) }}"}'
grocy_replace_dishwasher_cassette_due:
url: "http://192.168.4.209:9111/api/objects/chores/6"
method: put
content_type: "application/json"
headers:
Authorization: !secret grocy_token
payload: '{"rescheduled_date": "{{ now() + timedelta( minutes = 15 ) }}"}'