-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
yeelight_light_ceiling11.yaml
76 lines (66 loc) · 1.57 KB
/
yeelight_light_ceiling11.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
68
69
70
71
72
73
74
75
76
# merged configuration of:
# - https://github.com/syssi/esphome-yeelight-ceiling-light/blob/main/yeelight_light_ceiling15.yaml
# - https://github.com/jaddel/ESPHome-Configurations/blob/master/Devices/Ceiling%20Yeelight%20YLXD41YL/ceiling_yeelight_ylxd41xl.yaml
substitutions:
name: yeelight-light-ceiling11
esphome:
name: ${name}
min_version: 2024.10.0
esp32:
board: esp32doit-devkit-v1
framework:
type: esp-idf
sdkconfig_options:
CONFIG_FREERTOS_UNICORE: y
advanced:
ignore_efuse_mac_crc: true
ignore_efuse_custom_mac: true
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ota:
platform: esphome
logger:
level: DEBUG
api:
sensor:
- platform: adc
pin: GPIO36
name: "${name} adc1"
attenuation: 12db
- platform: adc
pin: GPIO32
name: "${name} adc2"
attenuation: 12db
output:
- platform: ledc
pin: GPIO19
id: output_warm
frequency: 4882Hz
- platform: ledc
pin: GPIO21
id: output_cold
frequency: 4882Hz
- platform: ledc
pin: GPIO23
id: output_nightlight
frequency: 19531Hz
light:
- platform: monochromatic
name: "${name}-nightlight"
id: night_light
output: output_nightlight
gamma_correct: 0.7
on_turn_on:
- light.turn_off: ceiling_light
- platform: cwww
name: "${name}"
id: ceiling_light
cold_white: output_cold
warm_white: output_warm
cold_white_color_temperature: 6500 K
warm_white_color_temperature: 2700 K
constant_brightness: true
gamma_correct: 0.4
on_turn_on:
- light.turn_off: night_light