-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from timia2109/feature/prod-templates
Feature/prod templates
- Loading branch information
Showing
17 changed files
with
200 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{{ func icon_data(sIconName, sText) }} | ||
{{ if (sText | string.strip | string.size ) > 0}} | ||
<HBox Gap="2"> | ||
<Icon IconName="{{sIconName}}" /> | ||
<Text Content="{{sText}}" /> | ||
</HBox> | ||
{{ end }} | ||
{{ if (sText | string.strip | string.size ) > 0}} | ||
<HBox Gap="2"> | ||
<Icon IconName="{{sIconName}}" /> | ||
<Text Content="{{sText | html.escape}}" /> | ||
</HBox> | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{ func timer() }} | ||
{{ | ||
start_time = hass.get_datetime "input_datetime.googletimerstart" | ||
end_time = hass.get_datetime "input_datetime.googletimerover" | ||
timer_text = hass.get_state "input_text.countdown_text" | ||
}} | ||
|
||
{{ if start_time.year < 2000 | ||
ret 0 | ||
end}} | ||
|
||
<VBox Gap="5"> | ||
<Text Content="{{ timer_text | html.escape }}" /> | ||
{{ icon_data "hourglass-start" (start_time | date.to_string "%T") }} | ||
{{ icon_data "hourglass-end" (end_time | date.to_string "%T") }} | ||
</VBox> | ||
|
||
{{ ret 1 }} | ||
|
||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{ | ||
state = hass.get_state "sensor.wohnzimmer_display_mode" | ||
}} | ||
{{ if state == "Normal" }} | ||
main?version={{ date.to_string date.now "%s" }} | ||
{{ else }} | ||
{{ state | string.downcase }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Screen Height="800" Width="480"> | ||
<Defaults TextSize="40" IconHeight="40" /> | ||
|
||
<Flexbox Direction="Vertical" AlignItems="Center"> | ||
<Margin All="15" /> | ||
|
||
<Icon IconName="person-circle-question" Height="200" /> | ||
<Text Content="Niemand da!" Font="ProductSansBold" Size="40" /> | ||
<Text Content="Der Bildschirm ist aus" /> | ||
</Flexbox> | ||
|
||
</Screen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<Screen Height="800" Width="480"> | ||
<Defaults TextSize="40" IconHeight="40" /> | ||
|
||
<Flexbox Direction="Vertical" AlignItems="Center"> | ||
<Margin All="15" /> | ||
|
||
<Icon IconName="house-night" Height="200" /> | ||
<Text Content="Nachtmodus aktiv!" Font="ProductSansBold" Size="40" /> | ||
<Text Content="Der Bildschirm ist aus" /> | ||
</Flexbox> | ||
|
||
</Screen> |
Oops, something went wrong.