Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jimz011 authored Mar 12, 2020
1 parent 53adbde commit 113f33f
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 62 deletions.
81 changes: 25 additions & 56 deletions packages/homekit_infused/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -582,21 +582,9 @@ automation:
entity_id:
- input_text.heat_all_temperature
value: 22
- service: input_text.set_value
data:
entity_id:
- input_text.button_name_font_size
value: 12px
- service: input_text.set_value
data:
entity_id:
- input_text.button_state_font_size
value: 10px
- service: input_text.set_value
- service: automation.trigger
data:
entity_id:
- input_text.button_label_font_size
value: 10px
entity_id: automation.reset_font_size
- service: input_text.set_value
data:
entity_id:
Expand Down Expand Up @@ -625,21 +613,22 @@ automation:
entity_id: input_select.icon_selector
to: 'nothing'
action:
- service: input_text.set_value
- service: input_select.select_option
data:
entity_id:
- input_text.button_name_font_size
value: 12px
- service: input_text.set_value
- input_select.name_font_size_selector
option: 12px
- service: input_select.select_option
data:
entity_id:
- input_text.button_state_font_size
value: 10px
- input_select.state_font_size_selector
- input_select.label_font_size_selector
- input_select.badge_font_size_selector
option: 10px
- service: input_text.set_value
data:
entity_id:
- input_text.button_label_font_size
value: 10px
entity_id: input_text.font_family
value: Helvetica


- alias: 'reset button badge sensors'
Expand Down Expand Up @@ -702,48 +691,28 @@ automation:
- alias: 'themes'
initial_state: 'true'
trigger:
- platform: state
entity_id: input_boolean.day_night_cycle
- platform: state
entity_id: input_select.theme_selector
- platform: state
entity_id: input_select.theme_selector_day
- platform: state
entity_id: input_select.theme_selector_night
- platform: homeassistant
event: start
- platform: state
entity_id: sun.sun
- platform: state
entity_id: sensor.anniversary_anniversary
to: '0'
- platform: state
entity_id: sensor.anniversary_valentines_day
to: '0'
action:
- service: frontend.set_theme
data_template:
name: >
{% if is_state('input_select.theme_selector', 'Silver') %}
Silver
{% elif is_state('input_select.theme_selector', 'Space Gray') %}
Space Gray
{% elif is_state('input_select.theme_selector', 'Sweet Pink') %}
Sweet Pink
{% elif is_state('input_select.theme_selector', 'Valentine') %}
Valentine
{% elif is_state('input_select.theme_selector', 'Home Assistant') %}
Home Assistant
{% elif is_state('input_select.theme_selector', 'Orange Delight') %}
Orange Delight
{% elif is_state('input_select.theme_selector', 'Slate') %}
Slate
{% elif is_state('input_select.theme_selector', 'Paper') %}
Paper
{% elif (is_state('sensor.anniversary_anniversary', '0')) and (is_state('input_select.theme_selector', 'Auto')) %}
Valentine
{% elif (is_state('sensor.anniversary_valentines_day', '0')) and (is_state('input_select.theme_selector', 'Auto')) %}
Valentine
{% elif (is_state('sun.sun', 'above_horizon')) and (is_state('input_select.theme_selector', 'Auto')) %}
Silver
{% elif (is_state('sun.sun', 'below_horizon')) and (is_state('input_select.theme_selector', 'Auto')) %}
Space Gray
{% elif is_state('input_select.theme_selector', 'Auto') %}
Space Gray
{% if (is_state('sun.sun', 'above_horizon')) and (is_state('input_boolean.day_night_cycle', 'on')) %}
{{ states('input_select.theme_selector_day') }}
{% elif (is_state('sun.sun', 'below_horizon')) and (is_state('input_boolean.day_night_cycle', 'on')) %}
{{ states('input_select.theme_selector_night') }}
{% else %}
{{ states('input_select.theme_selector') }}
{% endif %}
# Box Shadow Selector
Expand Down Expand Up @@ -836,6 +805,6 @@ sensor:
- platform: scrape
name: HKI Latest Version
resource: https://jimz011.github.io/homeassistant/version
resource: https://jimz011.github.io/homekit-infused/version
select: ".current-version h1"
value_template: '{{ value.split(":")[1] }}'
2 changes: 1 addition & 1 deletion packages/homekit_infused/hki_current_version.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
input_text:
hki_current_version:
initial: 2.0.0
initial: 2.0.0b7
4 changes: 3 additions & 1 deletion packages/homekit_infused/hki_input_booleans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -509,4 +509,6 @@ input_boolean:
header_advanced_mode_custom_a:
header_advanced_mode_custom_b:
header_advanced_mode_custom_c:
header_advanced_mode_custom_d:
header_advanced_mode_custom_d:

day_night_cycle:
90 changes: 89 additions & 1 deletion packages/homekit_infused/hki_input_selects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,31 @@ input_select:
- Space Gray
- Sweet Pink
- Valentine
- Auto

theme_selector_day:
name: Theme Selector Day
options:
- Home Assistant
- Orange Delight
- Paper
- Silver
- Slate
- Space Gray
- Sweet Pink
- Valentine

theme_selector_night:
name: Theme Selector Night
options:
- Home Assistant
- Orange Delight
- Paper
- Silver
- Slate
- Space Gray
- Sweet Pink
- Valentine

# Border Radius used in border-radius templates,
# you can adjust border size to be selected here
border_radius:
Expand Down Expand Up @@ -237,6 +260,71 @@ input_select:
- Italiano
- Nederlands
- Portuguesebrasil

name_font_size_selector:
options:
- 7px
- 8px
- 9px
- 10px
- 11px
- 12px
- 13px
- 14px
- 15px
- 16px
- 17px
- 18px
- 19px
- 20px

label_font_size_selector:
options:
- 7px
- 8px
- 9px
- 10px
- 11px
- 12px
- 13px
- 14px
- 15px
- 16px
- 17px
- 18px
- 19px
- 20px

state_font_size_selector:
options:
- 7px
- 8px
- 9px
- 10px
- 11px
- 12px
- 13px
- 14px
- 15px
- 16px
- 17px
- 18px
- 19px
- 20px

badge_font_size_selector:
options:
- 7px
- 8px
- 9px
- 10px
- 11px

badge_text_transform:
options:
- capitalize
- uppercase
- lowercase

footer_direction:
options:
Expand Down
8 changes: 5 additions & 3 deletions packages/homekit_infused/hki_input_text.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ input_text:
room_19:
room_20:

button_name_font_size:
button_state_font_size:
button_label_font_size:
font_family:

frost_protection_temperature:
heat_all_temperature:
Expand Down Expand Up @@ -178,6 +176,10 @@ input_text:
sensor_weather:

house_calendar_entity:
person_1_calendar_entity:
person_2_calendar_entity:
person_3_calendar_entity:
person_4_calendar_entity:

name_button_custom_a:
sensor_button_custom_a:
Expand Down

0 comments on commit 113f33f

Please sign in to comment.