Created
April 2, 2022 13:44
-
-
Save mikezter/0983a1f6531afefec308110397f2672c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
device_name: fensterled | |
esphome: | |
name: ${device_name} | |
esp8266: | |
board: esp01_1m | |
# Enable logging | |
logger: | |
baud_rate: 0 | |
# Enable Home Assistant API | |
api: | |
ota: | |
password: "472abb8935205e060d1e99ec3a3d5b2a" | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_password | |
use_address: 192.168.0.233 | |
# Enable fallback hotspot (captive portal) in case wifi connection fails | |
ap: | |
ssid: "Fensterled Fallback Hotspot" | |
password: "IYcCiynvU8Kn" | |
captive_portal: | |
output: | |
- platform: esp8266_pwm | |
id: red_channel | |
pin: GPIO5 | |
- platform: esp8266_pwm | |
id: green_channel | |
pin: GPIO13 | |
- platform: esp8266_pwm | |
id: blue_channel | |
pin: GPIO12 | |
light: | |
- platform: rgb | |
name: ${device_name} | |
id: ${device_name} | |
red: red_channel | |
green: green_channel | |
blue: blue_channel | |
effects: | |
- pulse: | |
name: "Fast Pulse" | |
transition_length: 0.5s | |
update_interval: 0.5s | |
- pulse: | |
name: "Slow Pulse" | |
transition_length: 1s | |
update_interval: 2s | |
- flicker: | |
- random: | |
name: "Slow Random Colors" | |
transition_length: 30s | |
update_interval: 30s | |
- random: | |
name: "Fast Random Colors" | |
transition_length: 4s | |
update_interval: 5s | |
- strobe: | |
name: Default Strobe | |
- strobe: | |
name: In Alarm | |
colors: | |
- state: True | |
brightness: 100% | |
white: 0% | |
red: 100% | |
blue: 0% | |
green: 0% | |
duration: 150ms | |
- state: False | |
duration: 100ms | |
- state: True | |
brightness: 100% | |
white: 0% | |
red: 100% | |
blue: 0% | |
green: 0% | |
duration: 150ms | |
- state: False | |
duration: 100ms | |
- state: True | |
brightness: 100% | |
white: 0% | |
red: 0% | |
blue: 100% | |
green: 0% | |
duration: 150ms | |
- state: False | |
duration: 100ms | |
- state: True | |
brightness: 100% | |
white: 0% | |
red: 0% | |
blue: 100% | |
green: 0% | |
duration: 150ms | |
- state: False | |
duration: 100ms | |
remote_receiver: | |
pin: | |
number: GPIO4 | |
inverted: true | |
dump: nec | |
binary_sensor: | |
- platform: remote_receiver | |
name: "Remote ON" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: ${device_name} | |
nec: | |
address: 0xFF00 | |
command: 0xF20D | |
- platform: remote_receiver | |
name: "Remote OFF" | |
internal: true | |
on_press: | |
then: | |
- light.turn_off: ${device_name} | |
nec: | |
address: 0xFF00 | |
command: 0xE01F | |
- platform: remote_receiver | |
name: "Remote BRIGHTUP" | |
internal: true | |
on_press: | |
then: | |
- light.dim_relative: | |
id: ${device_name} | |
relative_brightness: 5% | |
nec: | |
address: 0xFF00 | |
command: 0xF609 | |
- platform: remote_receiver | |
name: "Remote BRIGHTDOWN" | |
internal: true | |
on_press: | |
then: | |
- light.dim_relative: | |
id: ${device_name} | |
relative_brightness: -5% | |
nec: | |
address: 0xFF00 | |
command: 0xE21D | |
- platform: remote_receiver | |
name: "Remote RED" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 100% | |
green: 0% | |
blue: 0% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xE619 | |
- platform: remote_receiver | |
name: "Remote GREEN" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 0% | |
green: 100% | |
blue: 0% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xE41B | |
- platform: remote_receiver | |
name: "Remote BLUE" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 0% | |
green: 0% | |
blue: 100% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xEE11 | |
- platform: remote_receiver | |
name: "Remote RED1" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 100% | |
green: 25% | |
blue: 0% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xE817 | |
- platform: remote_receiver | |
name: "Remote RED2" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 100% | |
green: 50% | |
blue: 0% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xBF40 | |
- platform: remote_receiver | |
name: "Remote RED3" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 100% | |
green: 75% | |
blue: 0% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xF50A | |
- platform: remote_receiver | |
name: "Remote RED4" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 100% | |
green: 100% | |
blue: 0% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xE31C | |
- platform: remote_receiver | |
name: "Remote BLUE1" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 25% | |
green: 0% | |
blue: 100% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xE916 | |
- platform: remote_receiver | |
name: "Remote BLUE2" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 50% | |
green: 0% | |
blue: 100% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xFB04 | |
- platform: remote_receiver | |
name: "Remote BLUE3" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 75% | |
green: 0% | |
blue: 100% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xF10E | |
- platform: remote_receiver | |
name: "Remote BLUE4" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 100% | |
green: 0% | |
blue: 100% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xF00F | |
- platform: remote_receiver | |
name: "Remote GREEN1" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 0% | |
green: 100% | |
blue: 25% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xED12 | |
- platform: remote_receiver | |
name: "Remote GREEN2" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 0% | |
green: 100% | |
blue: 50% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xB34C | |
- platform: remote_receiver | |
name: "Remote GREEN3" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 0% | |
green: 100% | |
blue: 75% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xE11E | |
- platform: remote_receiver | |
name: "Remote GREEN4" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 0% | |
green: 100% | |
blue: 100% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xEB14 | |
- platform: remote_receiver | |
name: "Remote WHITE" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
red: 100% | |
green: 100% | |
blue: 100% | |
white: 0% | |
effect: None | |
nec: | |
address: 0xFF00 | |
command: 0xEA15 | |
- platform: remote_receiver | |
name: "Remote EFFECT1" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
effect: "Slow Random Colors" | |
nec: | |
address: 0xFF00 | |
command: 0xB24D | |
- platform: remote_receiver | |
name: "Remote EFFECT2" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
effect: "Fast Random Colors" | |
nec: | |
address: 0xFF00 | |
command: 0xFF00 | |
- platform: remote_receiver | |
name: "Remote EFFECT3" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
effect: "Slow Pulse" | |
nec: | |
address: 0xFF00 | |
command: 0xE51A | |
- platform: remote_receiver | |
name: "Remote EFFECT4" | |
internal: true | |
on_press: | |
then: | |
- light.turn_on: | |
id: ${device_name} | |
effect: "Fast Pulse" | |
nec: | |
address: 0xFF00 | |
command: 0xF30C | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment