-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathem-build-light.yaml
74 lines (64 loc) · 1.59 KB
/
em-build-light.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
# -------------------------------------
# ---- Implemented on EM Build notifier wooden slab ----
# -------------------------------------
substitutions:
devicename: em-build-light
esphome:
name: ${devicename}
platform: ESP8266
board: esp01_1m
wifi:
#power_save_mode: light # power reduced from 1.2w to 0.8w
#fast_connect: true
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
hidden: True
manual_ip:
static_ip: !secret ip_em_build_light
gateway: !secret ip_gateway
subnet: 255.255.255.0
domain: .homelan
ap: # Enable fallback hotspot (captive portal) in case wifi connection fails
ssid: "${devicename} Hotspot"
password: !secret password
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
reboot_timeout: 0s # Dont reboot..
encryption:
key: !secret encryption_key
services:
- service: set_pixel
variables:
range_from: int
range_to: int
red: int
green: int
blue: int
then:
- light.addressable_set:
id: light1
range_from: !lambda 'return range_from;'
range_to: !lambda 'return range_to;'
red: !lambda 'return red / 100.0;'
green: !lambda 'return green / 100.0;'
blue: !lambda 'return blue / 100.0;'
ota:
password: !secret password
web_server:
port: 80
auth:
username: admin
password: !secret password
light:
- platform: fastled_spi
id: light1
chipset: APA102
data_pin: GPIO12
clock_pin: GPIO13
num_leds: 14
rgb_order: BGR
name: ${devicename} Light