init upload
This commit is contained in:
22
sonoff-m5/backlight.yaml
Normal file
22
sonoff-m5/backlight.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
# NOTE: This file is not a stand-alone package. It is part of
|
||||
# a 'root' device template and expects the substitutions that
|
||||
# are hereby referenced to be defined by its parent.
|
||||
|
||||
output:
|
||||
# Physical GPIO PWM for off-state background brightness
|
||||
# This pin controls the background brightness for all LEDs
|
||||
# physically attached to the relays
|
||||
- platform: ledc
|
||||
id: pwm_output
|
||||
pin: GPIO18
|
||||
frequency: 1000 Hz
|
||||
|
||||
light:
|
||||
|
||||
# HA UI connection to the background brightness (PWM) pin
|
||||
- platform: monochromatic
|
||||
output: pwm_output
|
||||
name: "Background Brightness"
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
icon: 'mdi:led-outline'
|
||||
entity_category: 'config'
|
||||
Reference in New Issue
Block a user