-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvspace-logo.yaml
129 lines (116 loc) · 2.68 KB
/
vspace-logo.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
esphome:
name: vspace-logo
friendly_name: vspace_logo
includes:
- light_effects.h
on_boot:
then:
- light.turn_on:
id: inner_strip
brightness: 100%
red: 100%
green: 100%
blue: 100%
- light.turn_on:
id: rim_strip
brightness: 50%
red: 0%
green: 100%
blue: 50%
effect: "Sine"
esp8266:
board: huzzah
# Enable logging
logger:
hardware_uart: UART1
# Enable Home Assistant API
api:
encryption:
key: "+p5LV+KTeHkISiXVReysu3dYTBbS6aqCDojCiEeDdXk="
mqtt:
broker: mqtt.int.vspace.one
ota:
platform: esphome
password: "8fd5374e68bff81e309da69b0b102ebf"
#status_led:
# pin: GPIO2
web_server:
ota: False
local: True
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 10.0.8.18
subnet: 255.255.252.0
gateway: 10.0.8.1
dns1: 10.0.8.1
dns2: 1.1.1.1
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Vspace-Logo Fallback Hotspot"
password: "Gp4sfpJWpOfU"
captive_portal:
binary_sensor:
- platform: status
id: onlinesatatus
name: "vspace_logo online"
light:
- platform: neopixelbus
type: GRB
variant: WS2811
pin: GPIO3
num_leds: 63
id: rim_strip
name: "vspace_logo rim"
method:
type: esp8266_dma
effects:
- addressable_rainbow:
name: "Rainbow"
speed: 10
width: 63
- addressable_lambda:
name: "Pride"
lambda: "pride_circle(it, pride_flag,6);"
- addressable_lambda:
name: "Traaa"
lambda: "pride_circle(it, trans_flag,5);"
- addressable_lambda:
name: "Enby"
lambda: "pride_circle(it, enby_flag,4);"
- addressable_lambda:
name: "Sine"
update_interval: 10ms
lambda: |-
sine_effect(it, current_color);
- platform: neopixelbus
type: GRB
variant: WS2811
pin: GPIO1
num_leds: 60
id: inner_strip
name: "vspace_logo inner"
method:
type: esp8266_uart
bus: 0
async: true
effects:
- addressable_rainbow:
name: "Rainbow"
speed: 10
width: 60
- addressable_lambda:
name: "Pride"
lambda: "pride_circle(it, pride_flag,6);"
- addressable_lambda:
name: "Traaa"
lambda: "pride_circle(it, trans_flag,5);"
- addressable_lambda:
name: "Enby"
lambda: "pride_circle(it, enby_flag,4);"
- addressable_lambda:
name: "Sine"
update_interval: 10ms
lambda: |-
sine_effect(it, current_color);