feat: build Schedule screen with Home/Away preset selection
This commit is contained in:
parent
1d3e537df4
commit
3bcba89fba
1 changed files with 56 additions and 1 deletions
|
|
@ -195,7 +195,62 @@ lvgl:
|
||||||
on_click:
|
on_click:
|
||||||
switch.toggle: relay_heat2
|
switch.toggle: relay_heat2
|
||||||
- id: page_schedule
|
- id: page_schedule
|
||||||
widgets: []
|
widgets:
|
||||||
|
- obj:
|
||||||
|
width: 100%
|
||||||
|
height: 510px
|
||||||
|
pad_all: 16
|
||||||
|
border_width: 0
|
||||||
|
outline_width: 0
|
||||||
|
scrollable: false
|
||||||
|
layout:
|
||||||
|
type: flex
|
||||||
|
flex_flow: column
|
||||||
|
flex_align_cross: center
|
||||||
|
flex_align_track: center
|
||||||
|
flex_align_main: space_evenly
|
||||||
|
widgets:
|
||||||
|
- label:
|
||||||
|
text: "Preset"
|
||||||
|
text_font: montserrat_28
|
||||||
|
- obj:
|
||||||
|
width: 100%
|
||||||
|
height: size_content
|
||||||
|
border_width: 0
|
||||||
|
outline_width: 0
|
||||||
|
scrollable: false
|
||||||
|
layout:
|
||||||
|
type: flex
|
||||||
|
flex_flow: row
|
||||||
|
flex_align_cross: center
|
||||||
|
flex_align_track: center
|
||||||
|
flex_align_main: space_evenly
|
||||||
|
widgets:
|
||||||
|
- button:
|
||||||
|
width: 300px
|
||||||
|
height: 100px
|
||||||
|
on_click:
|
||||||
|
climate.control:
|
||||||
|
id: main_thermostat
|
||||||
|
preset: home
|
||||||
|
widgets:
|
||||||
|
- label:
|
||||||
|
text: "Home"
|
||||||
|
text_font: montserrat_28
|
||||||
|
- button:
|
||||||
|
width: 300px
|
||||||
|
height: 100px
|
||||||
|
on_click:
|
||||||
|
climate.control:
|
||||||
|
id: main_thermostat
|
||||||
|
preset: away
|
||||||
|
widgets:
|
||||||
|
- label:
|
||||||
|
text: "Away"
|
||||||
|
text_font: montserrat_28
|
||||||
|
- label:
|
||||||
|
text: "Time-based scheduling runs in Home Assistant, not on this device."
|
||||||
|
text_font: montserrat_16
|
||||||
top_layer:
|
top_layer:
|
||||||
widgets:
|
widgets:
|
||||||
- obj:
|
- obj:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue