20260326
This commit is contained in:
18
esphome/widgets/light/light_state.yaml
Normal file
18
esphome/widgets/light/light_state.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
text_sensor:
|
||||
- platform: homeassistant
|
||||
id: ${widget_name}_light_rgb_state
|
||||
entity_id: "${light_entity}"
|
||||
on_value:
|
||||
|
||||
- if:
|
||||
condition:
|
||||
lambda: 'return x == "on";'
|
||||
then:
|
||||
- lvgl.label.update:
|
||||
id: ${widget_name}_light_on
|
||||
text_color: color_amber
|
||||
else:
|
||||
- lvgl.label.update:
|
||||
id: ${widget_name}_light_on
|
||||
text_color: color_steel_blue
|
||||
|
||||
Reference in New Issue
Block a user