-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalarm-clock-host.yaml
64 lines (56 loc) · 1.22 KB
/
alarm-clock-host.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
esphome:
name: daylight-alarm-clock-host
host:
substitutions:
name: "daylight-alarm-clock"
friendly_name: "Daylight alarm clock"
home_page: home_screen
background_color: "0x374E58"
border_color: "0x6a7a81"
primary_color: "0x2ec0ff"
text_sm: "16"
text_md: "20"
text_lg: "24"
text_xl: "64"
icons_sm: "20"
icons_md: "26"
icons_lg: "34"
display:
- platform: sdl
auto_clear_enabled: false
dimensions:
width: 480
height: 320
touchscreen:
platform: sdl
packages:
core: !include alarm-clock/core.yaml
ui: !include alarm-clock/ui.yaml
output:
- id: gpio_backlight_pwm
platform: template
type: float
write_action:
- logger.log: "Set some light"
light:
- id: display_backlight
name: Backlight
platform: monochromatic
output: gpio_backlight_pwm
restore_mode: ALWAYS_ON
- platform: rgb
id: light_daylight
name: "Light"
red: gpio_backlight_pwm
green: gpio_backlight_pwm
blue: gpio_backlight_pwm
on_turn_on:
- lvgl.widget.update:
id: ui_daylight_state
state:
checked: true
on_turn_off:
- lvgl.widget.update:
id: ui_daylight_state
state:
checked: false