summaryrefslogtreecommitdiffstats
path: root/esphome/config/hoblight.yaml
blob: 31c4494bfaa2431720b805943d2a38c54c62e759 (plain)
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
esphome:
  name: hoblight
  platform: ESP8266
  board: esp01_1m

# Enable logging
logger:
  # make RXD / TXD available
  baud_rate: 0

# Enable Home Assistant API
api:
  password: !secret api_password

# OTA
ota:
  password: !secret ota_password

# WiFi Credentials
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Hoblight Fallback Hotspot"
    password: !secret wifi_ap_password

captive_portal:

light:
  - platform: cwww
    id: dining_table
    name: "Dining Table"
    cold_white: pwm_w
    warm_white: pwm_b
    cold_white_color_temperature: 6536 K
    warm_white_color_temperature: 2000 K
  - platform: color_temperature
    name: "Hob"
    color_temperature: pwm_rxd
    brightness: pwm_gpio0
    cold_white_color_temperature: 6536 K
    warm_white_color_temperature: 2000 K

output:
  #- platform: esp8266_pwm
  #  pin: GPIO12
  #  frequency: 1000 Hz
  #  id: pwm_r

  #- platform: esp8266_pwm
  #  pin: GPIO15
  #  frequency: 1000 Hz
  #  id: pwm_g

  - platform: esp8266_pwm
    pin: GPIO14
    frequency: 1000 Hz
    id: pwm_b

  - platform: esp8266_pwm
    pin: GPIO4
    frequency: 1000 Hz
    id: pwm_w

  - platform: esp8266_pwm
    pin: GPIO0
    frequency: 2000 Hz
    id: pwm_gpio0

  #- platform: esp8266_pwm
  #  pin: GPIO1
  #  frequency: 2000 Hz
  #  id: pwm_txd

  - platform: esp8266_pwm
    pin: GPIO3
    frequency: 2000 Hz
    id: pwm_rxd

binary_sensor:
  - platform: gpio
    pin: GPIO5
    id: light_0_touch