-
Notifications
You must be signed in to change notification settings - Fork 0
/
led.yaml
66 lines (55 loc) · 1.04 KB
/
led.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
esphome:
name: led
platform: ESP8266
board: d1_mini
wifi:
ssid: "jajo"
password: "Jans-n3tverk"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Led Fallback Hotspot"
password: "nDjJsfMXFW2q"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
#output:
# - platform: gpio
# pin: D1
# id: led_pin
output:
- platform: esp8266_pwm
pin: D1
frequency: 1000 Hz
id: pwm_output
# Example usage in a light
light:
- platform: monochromatic
output: pwm_output
name: "LED test2"
effects:
- flicker:
alpha: 95%
intensity: 10%
#switch:
#- platform: gpio
# pin: D1
# id: led_pin
# name: "Test LED"
#- platform: template
# name: "LED"
# optimistic: yes
# id: ledtemp
# turn_on_action:
# - while:
# condition:
# lambda: 'return true;'
# then:
# - switch.turn_on: led_pin
# - delay: 500ms
# - switch.turn_off: led_pin
# - delay: 500ms
# turn_off_action:
# - switch.turn_off: led_pin