-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.yml
43 lines (43 loc) · 1.44 KB
/
config.example.yml
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
--- !Config
# If using a Raspberry Pi and a CEC TV, prefer using CEC
cecEnabled: false
# If the display is controlled by a smart switch, can use a REST API to turn it off/on
# This example mostly follows a Home Assistant API call structure
# Will do a POST request with a JSON payload if "post_data" is set and a GET request otherwise
# If "check" is set, will perform a check first to find the state of the switch and only turn it off/on if necessary
# Will also occasionally check switch state if "check" is set
restEndpoint:
headers:
"Authorization": "Bearer TOKEN"
"content-type": "application/json"
check:
url: https://server.example/api/states/switch.example
return_like:
"entity_id": "switch.example"
"state": "on"
turn_on:
url: http://server.example/api/services/switch/turn_on
post_data:
"entity_id": "switch.example"
return_like:
- "entity_id": "switch.example"
"state": "on"
turn_off:
url: http://server.example/api/services/switch/turn_off
post_data:
"entity_id": "switch.example"
return_like:
- "entity_id": "switch.example"
"state": "off"
# Where to find the pictures, on Windows this can also be a network share, e.g. \\server\pics
basePath: /mnt/pics
# / on Linux, \ on Windows
pathSeparator: /
# Times at which to turn the display on or off
# If either is missing, display control is disabled
startTime:
hour: 8
minute: 0
stopTime:
hour: 23
minute: 59