mirror of
https://github.com/esphome/esphome.git
synced 2026-09-29 16:00:23 +00:00
[max6956] Use register_apply_action for set_brightness_global and set_brightness_mode (#19672)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: MAX6956 Actions
|
||||
on_press:
|
||||
- max6956.set_brightness_global: 10
|
||||
- max6956.set_brightness_global:
|
||||
id: max6956_1
|
||||
brightness_global: !lambda return 5;
|
||||
- max6956.set_brightness_mode:
|
||||
id: max6956_1
|
||||
brightness_mode: segment
|
||||
- max6956.set_brightness_mode:
|
||||
id: max6956_1
|
||||
brightness_mode: !lambda return max6956::GLOBAL;
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
|
||||
max6956: !include common.yaml
|
||||
actions: !include common-actions.yaml
|
||||
Reference in New Issue
Block a user