1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 12:22:20 +01:00

Add some components to the new testing framework (M part 2) (#6208)

This commit is contained in:
Keith Burzinski
2024-04-22 22:45:25 -05:00
committed by GitHub
parent 2b215fecc9
commit c0dc9c20fc
128 changed files with 2577 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
output:
- platform: esp8266_pwm
id: light_output_1
pin: 4
light:
- platform: monochromatic
name: Monochromatic Light
id: monochromatic_light
output: light_output_1
gamma_correct: 2.8
default_transition_length: 2s
effects:
- strobe:
- flicker:
- flicker:
name: My Flicker
alpha: 98%
intensity: 1.5%
- lambda:
name: My Custom Effect
update_interval: 1s
lambda: |-
static int state = 0;
state += 1;
if (state == 4)
state = 0;
- pulse:
transition_length: 10s
update_interval: 20s
min_brightness: 10%
max_brightness: 90%
- pulse:
name: pulse2
transition_length:
on_length: 10s
off_length: 5s
update_interval: 15s
min_brightness: 10%
max_brightness: 90%