WIP status light and battery level

This commit is contained in:
2026-02-05 20:08:19 +01:00
parent d8ff6b6f90
commit 42fbbd6982

View File

@@ -9,6 +9,12 @@ esphome:
- priority: 300
then:
- dfplayer.set_volume: 10
- light.turn_on:
id: status_led
brightness: 60%
red: 100%
green: 0%
blue: 100%
esp8266:
board: d1_mini_lite
@@ -197,6 +203,27 @@ light:
# ---------------------- Battery level sensor ----------------------
sensor:
- platform: adc
pin: A0
name: "Battery level"
icon: 'mdi:battery'
update_interval: 1min
#unit_of_measurement: "%"
#raw: true
#filters:
# - clamp:
# min_value: 500.0
# max_value: 850.0
# - calibrate_linear:
# - 500.0 -> 0.0
# - 850.0 -> 100.0
# - min:
# send_first_at: 3
# ---------------------- REMOVE FROM THERE TO END OF FILE WHEN TESTING FINISHED ----------------------
api: