Skip to content

Instantly share code, notes, and snippets.

@iBobik
Created March 15, 2021 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iBobik/23acab8733c992c921cdc934a45a8f91 to your computer and use it in GitHub Desktop.
Save iBobik/23acab8733c992c921cdc934a45a8f91 to your computer and use it in GitHub Desktop.
H801 controller (ESP8266), esphome config
esphome:
name: $device_name
platform: ESP8266
board: esp01_1m
light:
- platform: cwww
id: light_1
name: $human_name
cold_white: output_w1
warm_white: output_w2
cold_white_color_temperature: 9000 K
warm_white_color_temperature: 2300 K
default_transition_length: 100ms
- platform: cwww
id: light_2
name: $human_name 2
cold_white: output_blue
warm_white: output_red
cold_white_color_temperature: 9000 K
warm_white_color_temperature: 2300 K
default_transition_length: 100ms
# Periferies of RGB controller H801: https://tinkerman.cat/post/closer-look-h801-led-wifi-controller
output:
- platform: esp8266_pwm
pin: 12
frequency: 1000 Hz
id: output_blue
- platform: esp8266_pwm
pin: 13
frequency: 1000 Hz
id: output_green
- platform: esp8266_pwm
pin: 15
frequency: 1000 Hz
id: output_red
- platform: esp8266_pwm
pin: 14
frequency: 1000 Hz
id: output_w1
- platform: esp8266_pwm
pin: 4
frequency: 1000 Hz
id: output_w2
binary_sensor:
- platform: gpio
pin:
number: 3
mode: INPUT_PULLUP
inverted: true
name: "Button on RX/GPIO2"
on_press:
then:
- light.toggle: light_1
- platform: gpio
pin:
number: 0
mode: INPUT_PULLUP
inverted: true
name: "Button on GPIO0"
on_press:
then:
- light.toggle: light_2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment