mirror of
https://github.com/esphome/esphome.git
synced 2024-11-14 02:58:11 +01:00
22 lines
442 B
YAML
22 lines
442 B
YAML
|
tm1651:
|
||
|
id: tm1651_battery
|
||
|
clk_pin: 5
|
||
|
dio_pin: 4
|
||
|
|
||
|
esphome:
|
||
|
on_boot:
|
||
|
then:
|
||
|
- tm1651.set_level_percent:
|
||
|
id: tm1651_battery
|
||
|
level_percent: 50
|
||
|
- tm1651.set_level:
|
||
|
id: tm1651_battery
|
||
|
level: 5
|
||
|
- tm1651.set_brightness:
|
||
|
id: tm1651_battery
|
||
|
brightness: 2
|
||
|
- tm1651.turn_on:
|
||
|
id: tm1651_battery
|
||
|
- tm1651.turn_off:
|
||
|
id: tm1651_battery
|