mirror of
https://github.com/esphome/esphome.git
synced 2025-09-04 20:32:21 +01:00
Merge remote-tracking branch 'upstream/dev' into zwave_proxy
This commit is contained in:
@@ -4,49 +4,112 @@ from esphome.yaml_util import parse_yaml
|
|||||||
|
|
||||||
CONFIG = """
|
CONFIG = """
|
||||||
- obj:
|
- obj:
|
||||||
radius: 0
|
id: hello_world_card_
|
||||||
pad_all: 12
|
pad_all: 12
|
||||||
bg_color: 0xFFFFFF
|
bg_color: white
|
||||||
height: 100%
|
height: 100%
|
||||||
width: 100%
|
width: 100%
|
||||||
|
scrollable: false
|
||||||
widgets:
|
widgets:
|
||||||
- spinner:
|
- obj:
|
||||||
id: hello_world_spinner_
|
align: top_mid
|
||||||
align: center
|
outline_width: 0
|
||||||
indicator:
|
border_width: 0
|
||||||
arc_color: tomato
|
pad_all: 4
|
||||||
height: 100
|
scrollable: false
|
||||||
width: 100
|
height: size_content
|
||||||
spin_time: 2s
|
width: 100%
|
||||||
arc_length: 60deg
|
layout:
|
||||||
- label:
|
type: flex
|
||||||
id: hello_world_label_
|
flex_flow: row
|
||||||
text: "Hello World!"
|
flex_align_cross: center
|
||||||
|
flex_align_track: start
|
||||||
|
flex_align_main: space_between
|
||||||
|
widgets:
|
||||||
|
- button:
|
||||||
|
checkable: true
|
||||||
|
radius: 4
|
||||||
|
text_font: montserrat_20
|
||||||
|
on_click:
|
||||||
|
lvgl.label.update:
|
||||||
|
id: hello_world_label_
|
||||||
|
text: "Clicked!"
|
||||||
|
widgets:
|
||||||
|
- label:
|
||||||
|
text: "Button"
|
||||||
|
- label:
|
||||||
|
id: hello_world_title_
|
||||||
|
text: ESPHome
|
||||||
|
text_font: montserrat_20
|
||||||
|
width: 100%
|
||||||
|
text_align: center
|
||||||
|
on_boot:
|
||||||
|
lvgl.widget.refresh: hello_world_title_
|
||||||
|
hidden: !lambda |-
|
||||||
|
return lv_obj_get_width(lv_scr_act()) < 400;
|
||||||
|
- checkbox:
|
||||||
|
text: Checkbox
|
||||||
|
id: hello_world_checkbox_
|
||||||
|
on_boot:
|
||||||
|
lvgl.widget.refresh: hello_world_checkbox_
|
||||||
|
hidden: !lambda |-
|
||||||
|
return lv_obj_get_width(lv_scr_act()) < 240;
|
||||||
|
on_click:
|
||||||
|
lvgl.label.update:
|
||||||
|
id: hello_world_label_
|
||||||
|
text: "Checked!"
|
||||||
|
- obj:
|
||||||
|
id: hello_world_container_
|
||||||
align: center
|
align: center
|
||||||
|
y: 14
|
||||||
|
pad_all: 0
|
||||||
|
outline_width: 0
|
||||||
|
border_width: 0
|
||||||
|
width: 100%
|
||||||
|
height: size_content
|
||||||
|
scrollable: false
|
||||||
on_click:
|
on_click:
|
||||||
lvgl.spinner.update:
|
lvgl.spinner.update:
|
||||||
id: hello_world_spinner_
|
id: hello_world_spinner_
|
||||||
arc_color: springgreen
|
arc_color: springgreen
|
||||||
- checkbox:
|
layout:
|
||||||
pad_all: 8
|
type: flex
|
||||||
text: Checkbox
|
flex_flow: row_wrap
|
||||||
align: top_right
|
flex_align_cross: center
|
||||||
on_click:
|
flex_align_track: center
|
||||||
lvgl.label.update:
|
flex_align_main: space_evenly
|
||||||
id: hello_world_label_
|
|
||||||
text: "Checked!"
|
|
||||||
- button:
|
|
||||||
pad_all: 8
|
|
||||||
checkable: true
|
|
||||||
align: top_left
|
|
||||||
text_font: montserrat_20
|
|
||||||
on_click:
|
|
||||||
lvgl.label.update:
|
|
||||||
id: hello_world_label_
|
|
||||||
text: "Clicked!"
|
|
||||||
widgets:
|
widgets:
|
||||||
- label:
|
- spinner:
|
||||||
text: "Button"
|
id: hello_world_spinner_
|
||||||
|
indicator:
|
||||||
|
arc_color: tomato
|
||||||
|
height: 100
|
||||||
|
width: 100
|
||||||
|
spin_time: 2s
|
||||||
|
arc_length: 60deg
|
||||||
|
widgets:
|
||||||
|
- label:
|
||||||
|
id: hello_world_label_
|
||||||
|
text: "Hello World!"
|
||||||
|
align: center
|
||||||
|
- obj:
|
||||||
|
id: hello_world_qrcode_
|
||||||
|
outline_width: 0
|
||||||
|
border_width: 0
|
||||||
|
hidden: !lambda |-
|
||||||
|
return lv_obj_get_width(lv_scr_act()) < 300 && lv_obj_get_height(lv_scr_act()) < 400;
|
||||||
|
widgets:
|
||||||
|
- label:
|
||||||
|
text_font: montserrat_14
|
||||||
|
text: esphome.io
|
||||||
|
align: top_mid
|
||||||
|
- qrcode:
|
||||||
|
text: "https://esphome.io"
|
||||||
|
size: 80
|
||||||
|
align: bottom_mid
|
||||||
|
on_boot:
|
||||||
|
lvgl.widget.refresh: hello_world_qrcode_
|
||||||
|
|
||||||
- slider:
|
- slider:
|
||||||
width: 80%
|
width: 80%
|
||||||
align: bottom_mid
|
align: bottom_mid
|
||||||
|
@@ -12,7 +12,7 @@ platformio==6.1.18 # When updating platformio, also update /docker/Dockerfile
|
|||||||
esptool==5.0.2
|
esptool==5.0.2
|
||||||
click==8.1.7
|
click==8.1.7
|
||||||
esphome-dashboard==20250828.0
|
esphome-dashboard==20250828.0
|
||||||
aioesphomeapi==39.0.0
|
aioesphomeapi==39.0.1
|
||||||
zeroconf==0.147.0
|
zeroconf==0.147.0
|
||||||
puremagic==1.30
|
puremagic==1.30
|
||||||
ruamel.yaml==0.18.15 # dashboard_import
|
ruamel.yaml==0.18.15 # dashboard_import
|
||||||
|
Reference in New Issue
Block a user