forked from digiblur/ESPHome_LOHAS_LED
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lohas_color.yaml
70 lines (61 loc) · 1.33 KB
/
lohas_color.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
## LOHAS RGBW Smart Bulb with ESPHome
esphome:
name: lohas_color1
platform: ESP8266
# Remove this line below if you do not want the bulb to remember the last on/off color state
esp8266_restore_from_flash: true
board: esp01_1m
includes:
- copychan.h
Change the WiFi SSID and Password below and remove this line to clear the error
wifi:
ssid: 'SampleSSID'
password: 'SamplePassword'
# Enable logging
logger:
# Enable Home Assistant API
api:
# Enable MQTT if you are using it over the HA API
#mqtt:
# broker: '192.168.1.x'
# username: 'MQTT_User'
# password: 'MQTT_Password'
ota:
my9231:
data_pin: GPIO13
clock_pin: GPIO15
num_channels: 6
num_chips: 2
output:
- platform: my9231
id: output_blue
channel: 3
- platform: my9231
id: output_red
channel: 5
- platform: my9231
id: output_green
channel: 4
- platform: my9231
id: output_cw1
channel: 1
- platform: my9231
id: output_cw2
channel: 2
- platform: custom
type: float
lambda: |-
auto *copy = new CopyOutput();
copy->channel_a = id(output_cw1);
copy->channel_b = id(output_cw2);
return {copy};
outputs:
- id: cw
light:
- platform: rgbw
name: "Lohas Color1"
default_transition_length: 0s
red: output_red
green: output_green
blue: output_blue
white: cw